@Requires(property="micronaut.security.token.jwt.bearer.enabled", notEquals="false") @Singleton public class AccessRefreshTokenLoginHandler extends Object implements LoginHandler
LoginHandler
for Token Based Authentication.Modifier and Type | Field and Description |
---|---|
protected AccessRefreshTokenGenerator |
accessRefreshTokenGenerator |
Constructor and Description |
---|
AccessRefreshTokenLoginHandler(AccessRefreshTokenGenerator accessRefreshTokenGenerator) |
Modifier and Type | Method and Description |
---|---|
HttpResponse |
loginFailed(AuthenticationFailed authenticationFailed) |
HttpResponse |
loginSuccess(UserDetails userDetails,
HttpRequest<?> request) |
protected final AccessRefreshTokenGenerator accessRefreshTokenGenerator
public AccessRefreshTokenLoginHandler(AccessRefreshTokenGenerator accessRefreshTokenGenerator)
accessRefreshTokenGenerator
- AccessRefresh Token generatorpublic HttpResponse loginSuccess(UserDetails userDetails, HttpRequest<?> request)
loginSuccess
in interface LoginHandler
userDetails
- Authenticated user's representation.request
- The HttpRequest
being executedpublic HttpResponse loginFailed(AuthenticationFailed authenticationFailed)
loginFailed
in interface LoginHandler
authenticationFailed
- Object encapsulates the Login failure