@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, loginFailure, loginSuccess, priorToLoginPersistence, refresh
Constructor and Description |
---|
JwtCookieLoginHandler(RedirectConfiguration redirectConfiguration,
AccessTokenCookieConfiguration accessTokenCookieConfiguration,
RefreshTokenCookieConfiguration refreshTokenCookieConfiguration,
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.
|
java.util.List<io.micronaut.http.cookie.Cookie> |
getCookies(Authentication authentication,
io.micronaut.http.HttpRequest<?> request)
Return the cookies for the given parameters.
|
java.util.List<io.micronaut.http.cookie.Cookie> |
getCookies(Authentication authentication,
java.lang.String refreshToken,
io.micronaut.http.HttpRequest<?> request)
Return the cookies for the given parameters.
|
applyCookies, createRefreshResponse, createSuccessResponse, loginFailed, loginRefresh, loginSuccess
protected final AccessRefreshTokenGenerator accessRefreshTokenGenerator
protected final RefreshTokenCookieConfiguration refreshTokenCookieConfiguration
protected final AccessTokenConfiguration accessTokenConfiguration
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 Mechanismpublic java.util.List<io.micronaut.http.cookie.Cookie> getCookies(Authentication authentication, io.micronaut.http.HttpRequest<?> request)
CookieLoginHandler
getCookies
in class CookieLoginHandler
authentication
- The Authenticated user's representationrequest
- The current requestpublic java.util.List<io.micronaut.http.cookie.Cookie> getCookies(Authentication authentication, java.lang.String refreshToken, io.micronaut.http.HttpRequest<?> request)
CookieLoginHandler
getCookies
in class CookieLoginHandler
authentication
- The Authenticated user's representationrefreshToken
- The access refresh tokenrequest
- The current requestprotected java.util.List<io.micronaut.http.cookie.Cookie> getCookies(AccessRefreshToken accessRefreshToken, io.micronaut.http.HttpRequest<?> request)
accessRefreshToken
- The access refresh tokenrequest
- The current request