Package io.micronaut.security.handlers
Interface LoginHandler<I,O>
- Type Parameters:
I- RequestO- Response
- All Known Subinterfaces:
RedirectingLoginHandler<I,O>
- All Known Implementing Classes:
AccessRefreshTokenLoginHandler,CookieLoginHandler,IdTokenLoginHandler,SessionLoginHandler,TokenCookieLoginHandler
public interface LoginHandler<I,O>
Defines how to respond to a successful or failed login attempt.
- Since:
- 1.0
- Author:
- Sergio del Amo
-
Method Summary
Modifier and TypeMethodDescriptionloginFailed(AuthenticationResponse authenticationResponse, I request) loginRefresh(Authentication authentication, String refreshToken, I request) loginSuccess(Authentication authentication, I request)
-
Method Details
-
loginSuccess
- Parameters:
authentication- Authenticated user's representation.request- The HTTP Request being executed- Returns:
- An HTTP Response. Eg. a redirect or an JWT token rendered to the response
-
loginRefresh
- Parameters:
authentication- Authenticated user's representation.refreshToken- The refresh tokenrequest- The HTTP Request being executed- Returns:
- An HTTP Response. Eg. a redirect or an JWT token rendered to the response
-
loginFailed
- Parameters:
authenticationResponse- Object encapsulates the Login failurerequest- The HTTP Request being executed- Returns:
- An HTTP Response. Eg. a redirect or 401 response
-