@Requires(property="micronaut.security.token.jwt.bearer.enabled", notEquals="false") @Primary @Singleton public class AccessRefreshTokenLoginHandler extends java.lang.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 |
---|---|
io.micronaut.http.HttpResponse |
loginFailed(AuthenticationFailed authenticationFailed) |
io.micronaut.http.HttpResponse |
loginSuccess(UserDetails userDetails,
io.micronaut.http.HttpRequest<?> request) |
protected final AccessRefreshTokenGenerator accessRefreshTokenGenerator
public AccessRefreshTokenLoginHandler(AccessRefreshTokenGenerator accessRefreshTokenGenerator)
accessRefreshTokenGenerator
- AccessRefresh Token generatorpublic io.micronaut.http.HttpResponse loginSuccess(UserDetails userDetails, io.micronaut.http.HttpRequest<?> request)
loginSuccess
in interface LoginHandler
userDetails
- Authenticated user's representation.request
- The HttpRequest
being executedpublic io.micronaut.http.HttpResponse loginFailed(AuthenticationFailed authenticationFailed)
loginFailed
in interface LoginHandler
authenticationFailed
- Object encapsulates the Login failure