@Requires(property="micronaut.security.authentication", value="cookie") @Singleton public class JwtCookieLoginHandler extends CookieLoginHandler
Modifier and Type | Field and Description |
---|---|
protected AccessRefreshTokenGenerator |
accessRefreshTokenGenerator |
protected AccessTokenConfiguration |
accessTokenConfiguration |
jwtCookieConfiguration, loginFailure, loginSuccess, priorToLoginPersistence, refresh
Constructor and Description |
---|
JwtCookieLoginHandler(JwtCookieConfiguration jwtCookieConfiguration,
AccessTokenConfiguration accessTokenConfiguration,
AccessRefreshTokenGenerator accessRefreshTokenGenerator)
|
JwtCookieLoginHandler(RedirectConfiguration redirectConfiguration,
JwtCookieConfiguration jwtCookieConfiguration,
AccessTokenConfiguration accessTokenConfiguration,
AccessRefreshTokenGenerator accessRefreshTokenGenerator,
PriorToLoginPersistence priorToLoginPersistence) |
Modifier and Type | Method and Description |
---|---|
protected java.util.List<io.micronaut.http.cookie.Cookie> |
getCookies(AccessRefreshToken accessRefreshToken,
io.micronaut.http.HttpRequest<?> request)
Return the cookies for the given parameters.
|
protected java.util.List<io.micronaut.http.cookie.Cookie> |
getCookies(UserDetails userDetails,
io.micronaut.http.HttpRequest<?> request) |
protected java.util.List<io.micronaut.http.cookie.Cookie> |
getCookies(UserDetails userDetails,
java.lang.String refreshToken,
io.micronaut.http.HttpRequest<?> request) |
applyCookies, createRefreshResponse, createSuccessResponse, loginFailed, loginRefresh, loginSuccess
protected final AccessRefreshTokenGenerator accessRefreshTokenGenerator
protected final AccessTokenConfiguration accessTokenConfiguration
@Deprecated public JwtCookieLoginHandler(JwtCookieConfiguration jwtCookieConfiguration, AccessTokenConfiguration accessTokenConfiguration, AccessRefreshTokenGenerator accessRefreshTokenGenerator)
JwtCookieLoginHandler(RedirectConfiguration, JwtCookieConfiguration, AccessTokenConfiguration, AccessRefreshTokenGenerator, PriorToLoginPersistence)
instead.jwtCookieConfiguration
- JWT Cookie ConfigurationaccessTokenConfiguration
- JWT Generator ConfigurationaccessRefreshTokenGenerator
- Access Refresh Token Generator@Inject public JwtCookieLoginHandler(RedirectConfiguration redirectConfiguration, JwtCookieConfiguration jwtCookieConfiguration, AccessTokenConfiguration accessTokenConfiguration, AccessRefreshTokenGenerator accessRefreshTokenGenerator, @Nullable PriorToLoginPersistence priorToLoginPersistence)
redirectConfiguration
- Redirect configurationjwtCookieConfiguration
- JWT Cookie ConfigurationaccessTokenConfiguration
- JWT Generator ConfigurationaccessRefreshTokenGenerator
- Access Refresh Token GeneratorpriorToLoginPersistence
- Prior To Login Persistence Mechanismprotected java.util.List<io.micronaut.http.cookie.Cookie> getCookies(UserDetails userDetails, io.micronaut.http.HttpRequest<?> request)
getCookies
in class CookieLoginHandler
protected java.util.List<io.micronaut.http.cookie.Cookie> getCookies(UserDetails userDetails, java.lang.String refreshToken, io.micronaut.http.HttpRequest<?> request)
getCookies
in class CookieLoginHandler
protected java.util.List<io.micronaut.http.cookie.Cookie> getCookies(AccessRefreshToken accessRefreshToken, io.micronaut.http.HttpRequest<?> request)
accessRefreshToken
- The access refresh tokenrequest
- The current request