@Requires(property="micronaut.security.authentication", value="bearer") @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.MutableHttpResponse<?> |
loginFailed(AuthenticationResponse authenticationFailed,
io.micronaut.http.HttpRequest<?> request) |
io.micronaut.http.MutableHttpResponse<?> |
loginRefresh(UserDetails userDetails,
java.lang.String refreshToken,
io.micronaut.http.HttpRequest<?> request) |
io.micronaut.http.MutableHttpResponse<?> |
loginSuccess(UserDetails userDetails,
io.micronaut.http.HttpRequest<?> request) |
protected final AccessRefreshTokenGenerator accessRefreshTokenGenerator
public AccessRefreshTokenLoginHandler(AccessRefreshTokenGenerator accessRefreshTokenGenerator)
accessRefreshTokenGenerator
- AccessRefresh Token generatorpublic io.micronaut.http.MutableHttpResponse<?> 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.MutableHttpResponse<?> loginRefresh(UserDetails userDetails, java.lang.String refreshToken, io.micronaut.http.HttpRequest<?> request)
loginRefresh
in interface LoginHandler
userDetails
- Authenticated user's representation.refreshToken
- The refresh tokenrequest
- The HttpRequest
being executedpublic io.micronaut.http.MutableHttpResponse<?> loginFailed(AuthenticationResponse authenticationFailed, io.micronaut.http.HttpRequest<?> request)
loginFailed
in interface LoginHandler
authenticationFailed
- Object encapsulates the Login failurerequest
- The HttpRequest
being executed