@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 |
protected RefreshTokenCookieConfiguration |
refreshTokenCookieConfiguration |
accessTokenCookieConfiguration, jwtCookieConfiguration, loginFailure, loginSuccess, priorToLoginPersistence, refresh
Constructor and Description |
---|
JwtCookieLoginHandler(JwtCookieConfiguration jwtCookieConfiguration,
AccessTokenConfiguration accessTokenConfiguration,
AccessRefreshTokenGenerator accessRefreshTokenGenerator)
|
JwtCookieLoginHandler(RedirectConfiguration redirectConfiguration,
AccessTokenCookieConfiguration accessTokenCookieConfiguration,
RefreshTokenCookieConfiguration refreshTokenCookieConfiguration,
AccessTokenConfiguration accessTokenConfiguration,
AccessRefreshTokenGenerator accessRefreshTokenGenerator,
PriorToLoginPersistence priorToLoginPersistence) |
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 RefreshTokenCookieConfiguration refreshTokenCookieConfiguration
protected final AccessTokenConfiguration accessTokenConfiguration
@Deprecated public JwtCookieLoginHandler(JwtCookieConfiguration jwtCookieConfiguration, AccessTokenConfiguration accessTokenConfiguration, AccessRefreshTokenGenerator accessRefreshTokenGenerator)
JwtCookieLoginHandler(RedirectConfiguration, AccessTokenCookieConfiguration, RefreshTokenCookieConfiguration, AccessTokenConfiguration, AccessRefreshTokenGenerator, PriorToLoginPersistence)
instead.jwtCookieConfiguration
- JWT Cookie ConfigurationaccessTokenConfiguration
- JWT Generator ConfigurationaccessRefreshTokenGenerator
- Access Refresh Token Generator@Deprecated public JwtCookieLoginHandler(RedirectConfiguration redirectConfiguration, JwtCookieConfiguration jwtCookieConfiguration, AccessTokenConfiguration accessTokenConfiguration, AccessRefreshTokenGenerator accessRefreshTokenGenerator, @Nullable PriorToLoginPersistence priorToLoginPersistence)
JwtCookieLoginHandler(RedirectConfiguration, AccessTokenCookieConfiguration, RefreshTokenCookieConfiguration, AccessTokenConfiguration, AccessRefreshTokenGenerator, PriorToLoginPersistence)
instead.redirectConfiguration
- Redirect configurationjwtCookieConfiguration
- JWT Cookie ConfigurationaccessTokenConfiguration
- JWT Generator ConfigurationaccessRefreshTokenGenerator
- Access Refresh Token GeneratorpriorToLoginPersistence
- Prior To Login Persistence Mechanism@Inject public JwtCookieLoginHandler(RedirectConfiguration redirectConfiguration, AccessTokenCookieConfiguration accessTokenCookieConfiguration, RefreshTokenCookieConfiguration refreshTokenCookieConfiguration, AccessTokenConfiguration accessTokenConfiguration, AccessRefreshTokenGenerator accessRefreshTokenGenerator, @Nullable PriorToLoginPersistence priorToLoginPersistence)
redirectConfiguration
- Redirect configurationaccessTokenCookieConfiguration
- JWT Access Token Cookie ConfigurationrefreshTokenCookieConfiguration
- Refresh Token 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