public class RestLoginFailureHandler extends AbstractRestHandlerBase implements LoginFailureHandler
LoginFailureHandler for REST based applications,
which returns a 401 UNAUTHORIZED status with a the authentication exception message.responseWriter| Constructor and Description |
|---|
RestLoginFailureHandler() |
| Modifier and Type | Method and Description |
|---|---|
void |
handle(org.craftercms.commons.http.RequestContext context,
AuthenticationException e)
Handles the request after a failed authentication
|
sendErrorMessage, sendMessage, sendObject, setResponseWriterpublic void handle(org.craftercms.commons.http.RequestContext context,
AuthenticationException e)
throws SecurityProviderException,
IOException
LoginFailureHandlerhandle in interface LoginFailureHandlercontext - the request contexte - the exception that caused the login to fail.SecurityProviderExceptionIOExceptionCopyright © 2023 CrafterCMS. All rights reserved.