Modifier and Type | Method and Description |
---|---|
void |
LogoutSuccessHandler.handle(org.craftercms.commons.http.RequestContext context)
Handles the request after a successful logout.
|
void |
LoginSuccessHandler.handle(org.craftercms.commons.http.RequestContext context,
Authentication authentication)
Handles the request after a successful authentication.
|
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 |
---|---|
void |
RestLogoutSuccessHandler.handle(org.craftercms.commons.http.RequestContext context) |
void |
LogoutSuccessHandlerImpl.handle(org.craftercms.commons.http.RequestContext context)
Redirects to the target URL.
|
void |
RestLoginSuccessHandler.handle(org.craftercms.commons.http.RequestContext context,
Authentication authentication) |
void |
LoginSuccessHandlerImpl.handle(org.craftercms.commons.http.RequestContext context,
Authentication authentication) |
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.
|
Modifier and Type | Method and Description |
---|---|
void |
AccessDeniedHandler.handle(org.craftercms.commons.http.RequestContext context,
AccessDeniedException e)
Handles the request after access to a resource is denied for a user.
|
Modifier and Type | Method and Description |
---|---|
protected void |
AccessDeniedHandlerImpl.forwardToErrorPage(org.craftercms.commons.http.RequestContext context) |
void |
RestAccessDeniedHandler.handle(org.craftercms.commons.http.RequestContext context,
AccessDeniedException e) |
void |
AccessDeniedHandlerImpl.handle(org.craftercms.commons.http.RequestContext context,
AccessDeniedException e)
Forwards to the error page, but if not error page was specified, a 403 error is sent.
|
Modifier and Type | Class and Description |
---|---|
class |
AccessDeniedException
Thrown when a user doesn't have enough privileges to access a resource.
|
class |
AuthenticationException
General exception thrown by the authentication service.
|
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 |
---|---|
SecurityProviderException |
SecurityExceptionProcessor.findSecurityException(Exception topException) |
Modifier and Type | Method and Description |
---|---|
protected void |
SecurityExceptionProcessor.handleSecurityProviderException(SecurityProviderException e,
org.craftercms.commons.http.RequestContext context) |
Modifier and Type | Method and Description |
---|---|
protected void |
SecurityExceptionProcessor.handleAccessDeniedException(org.craftercms.commons.http.RequestContext context,
AccessDeniedException e)
Handles the specified
AccessDeniedException , by calling the AccessDeniedHandler . |
protected void |
SecurityExceptionProcessor.handleAuthenticationRequiredException(org.craftercms.commons.http.RequestContext context,
AuthenticationRequiredException e) |
protected void |
SecurityExceptionProcessor.handleSecurityProviderException(SecurityProviderException e,
org.craftercms.commons.http.RequestContext context) |
Copyright © 2023 CrafterCMS. All rights reserved.