Modifier and Type | Method and Description |
---|---|
void |
LoginFailureHandler.handle(org.craftercms.commons.http.RequestContext context,
AuthenticationException e)
Handles the request after a failed authentication
|
void |
AuthenticationRequiredHandler.handle(org.craftercms.commons.http.RequestContext context,
AuthenticationException e)
Handles the request when authentication is required.
|
Modifier and Type | Method and Description |
---|---|
Authentication |
AuthenticationManager.authenticateUser(Profile profile)
Authenticates a user just with it's profile ID.
|
Authentication |
AuthenticationManager.authenticateUser(Profile profile,
boolean remembered)
Authenticates a user just with it's profile ID.
|
Authentication |
AuthenticationManager.authenticateUser(String[] tenants,
String username,
String password)
Authenticates a user.
|
Authentication |
AuthenticationManager.authenticateUser(String tenant,
String username,
String password)
Authenticates a user.
|
Authentication |
AuthenticationManager.getAuthentication(String ticket,
boolean reloadProfile)
Returns the authentication associated to the given ticket ID
|
void |
AuthenticationManager.invalidateAuthentication(Authentication authentication)
Invalidates the given authentication.
|
Modifier and Type | Method and Description |
---|---|
void |
LoginFailureHandlerImpl.handle(org.craftercms.commons.http.RequestContext context,
AuthenticationException e)
Redirects the response to target URL if target URL is not empty.
|
void |
RestAuthenticationRequiredHandler.handle(org.craftercms.commons.http.RequestContext context,
AuthenticationException e) |
void |
RestLoginFailureHandler.handle(org.craftercms.commons.http.RequestContext context,
AuthenticationException e) |
void |
AuthenticationRequiredHandlerImpl.handle(org.craftercms.commons.http.RequestContext context,
AuthenticationException e)
Saves the current request in the request cache and then redirects to the login form page.
|
protected void |
LoginFailureHandlerImpl.sendError(AuthenticationException e,
org.craftercms.commons.http.RequestContext context) |
protected void |
AuthenticationRequiredHandlerImpl.sendError(AuthenticationException e,
org.craftercms.commons.http.RequestContext context) |
Modifier and Type | Method and Description |
---|---|
protected Authentication |
RememberMeManagerImpl.authenticate(String profileId) |
Authentication |
AuthenticationManagerImpl.authenticateUser(Profile profile) |
Authentication |
AuthenticationManagerImpl.authenticateUser(Profile profile,
boolean remembered) |
Authentication |
AuthenticationManagerImpl.authenticateUser(String[] tenants,
String username,
String password) |
Authentication |
AuthenticationManagerImpl.getAuthentication(String ticket,
boolean reloadProfile) |
protected Profile |
AuthenticationManagerImpl.loadProfile(String ticketId) |
Modifier and Type | Class and Description |
---|---|
class |
AuthenticationRequiredException
Thrown if the user is required to authenticate to access a resource.
|
class |
AuthenticationSystemException
Thrown when something in the authentication system fails.
|
class |
BadCredentialsException
Thrown when user authentication fails because of invalid username/password.
|
class |
DisabledUserException
Thrown if an authentication attempt is performed with a disabled user.
|
class |
OAuth2Exception
Exception used when a OAuth2 provider returns an error on a login attempt.
|
Modifier and Type | Class and Description |
---|---|
class |
CookieTheftException
Thrown when a remember me cookie has been possibly stolen and is being used.
|
class |
InvalidCookieException
Thrown when a remember me cookie provided has an invalid format.
|
class |
RememberMeException
Root exception for remember me related errors.
|
Modifier and Type | Method and Description |
---|---|
protected void |
LoginProcessor.onLoginFailure(org.craftercms.commons.http.RequestContext context,
AuthenticationException e) |
protected void |
LoginProcessor.saveException(javax.servlet.http.HttpServletRequest request,
AuthenticationException e) |
Modifier and Type | Method and Description |
---|---|
Authentication |
ProviderLoginSupport.complete(String tenant,
String providerId,
javax.servlet.http.HttpServletRequest request)
Completes the OAuth authentication, returning the resulting
Authentication object, or null if it
couldn't be completed. |
Authentication |
ProviderLoginSupport.complete(String tenant,
String providerId,
javax.servlet.http.HttpServletRequest request,
Set<String> newUserRoles,
Map<String,Object> newUserAttributes)
Completes the OAuth authentication, returning the resulting
Authentication object, or null if it
couldn't be completed. |
Authentication |
ProviderLoginSupport.complete(String tenant,
String providerId,
javax.servlet.http.HttpServletRequest request,
Set<String> newUserRoles,
Map<String,Object> newUserAttributes,
org.springframework.social.connect.web.ConnectSupport connectSupport)
Completes the OAuth authentication, returning the resulting
Authentication object, or null if it
couldn't be completed. |
String |
ProviderLoginSupport.start(String tenant,
String providerId,
javax.servlet.http.HttpServletRequest request)
Starts the OAuth login process.
|
String |
ProviderLoginSupport.start(String tenant,
String providerId,
javax.servlet.http.HttpServletRequest request,
org.springframework.util.MultiValueMap<String,String> additionalUrlParams)
Starts the OAuth login process.
|
String |
ProviderLoginSupport.start(String tenant,
String providerId,
javax.servlet.http.HttpServletRequest request,
org.springframework.util.MultiValueMap<String,String> additionalUrlParams,
org.springframework.social.connect.web.ConnectSupport connectSupport)
Starts the OAuth login process.
|
Modifier and Type | Method and Description |
---|---|
Authentication |
ProviderLoginSupportImpl.complete(String tenant,
String providerId,
javax.servlet.http.HttpServletRequest request) |
Authentication |
ProviderLoginSupportImpl.complete(String tenant,
String providerId,
javax.servlet.http.HttpServletRequest request,
Set<String> newUserRoles,
Map<String,Object> newUserAttributes) |
Authentication |
ProviderLoginSupportImpl.complete(String tenant,
String providerId,
javax.servlet.http.HttpServletRequest request,
Set<String> newUserRoles,
Map<String,Object> newUserAttributes,
org.springframework.social.connect.web.ConnectSupport connectSupport) |
String |
ProviderLoginSupportImpl.start(String tenant,
String providerId,
javax.servlet.http.HttpServletRequest request) |
String |
ProviderLoginSupportImpl.start(String tenant,
String providerId,
javax.servlet.http.HttpServletRequest request,
org.springframework.util.MultiValueMap<String,String> additionalUrlParams) |
String |
ProviderLoginSupportImpl.start(String tenant,
String providerId,
javax.servlet.http.HttpServletRequest request,
org.springframework.util.MultiValueMap<String,String> additionalUrlParams,
org.springframework.social.connect.web.ConnectSupport connectSupport) |
Copyright © 2023 CrafterCMS. All rights reserved.