The
SlingSessionProvider is a Jackrabbit WebDAV server
SessionProvider which returns the session stored as the
javax.jcr.Session request attribute. This request attribute is set by the Sling Authenticator when the request is authenticated. If the request is not authenticated, the request attribute is not set and hence no session is returned.
This class expects an authenticated request, which is identified by the request authentication type to not be null. Otherwise the {@link #getSession(HttpServletRequest,Repository,String)} method throws aLoginException to force authentication.