@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 |
protected io.micronaut.http.context.ServerContextPathProvider |
serverContextPathProvider |
accessTokenCookieConfiguration, loginFailure, loginSuccess, priorToLoginPersistence, refresh
Constructor and Description |
---|
JwtCookieLoginHandler(RedirectConfiguration redirectConfiguration,
AccessTokenCookieConfiguration accessTokenCookieConfiguration,
RefreshTokenCookieConfiguration refreshTokenCookieConfiguration,
AccessTokenConfiguration accessTokenConfiguration,
AccessRefreshTokenGenerator accessRefreshTokenGenerator,
PriorToLoginPersistence priorToLoginPersistence)
Deprecated.
Use
JwtCookieLoginHandler(RedirectService ,RedirectConfiguration,AccessTokenCookieConfiguration,RefreshTokenCookieConfiguration,AccessTokenConfiguration,PriorToLoginPersistence, ServerContextPathProvider) instead. |
JwtCookieLoginHandler(RedirectService redirectService,
RedirectConfiguration redirectConfiguration,
AccessTokenCookieConfiguration accessTokenCookieConfiguration,
RefreshTokenCookieConfiguration refreshTokenCookieConfiguration,
AccessTokenConfiguration accessTokenConfiguration,
AccessRefreshTokenGenerator accessRefreshTokenGenerator,
PriorToLoginPersistence priorToLoginPersistence)
Deprecated.
Use
JwtCookieLoginHandler(RedirectService ,RedirectConfiguration,AccessTokenCookieConfiguration,RefreshTokenCookieConfiguration,AccessTokenConfiguration,PriorToLoginPersistence, ServerContextPathProvider) instead. |
JwtCookieLoginHandler(RedirectService redirectService,
RedirectConfiguration redirectConfiguration,
AccessTokenCookieConfiguration accessTokenCookieConfiguration,
RefreshTokenCookieConfiguration refreshTokenCookieConfiguration,
AccessTokenConfiguration accessTokenConfiguration,
AccessRefreshTokenGenerator accessRefreshTokenGenerator,
PriorToLoginPersistence priorToLoginPersistence,
io.micronaut.http.context.ServerContextPathProvider serverContextPathProvider) |
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
@Nullable protected io.micronaut.http.context.ServerContextPathProvider serverContextPathProvider
@Deprecated public JwtCookieLoginHandler(RedirectConfiguration redirectConfiguration, AccessTokenCookieConfiguration accessTokenCookieConfiguration, RefreshTokenCookieConfiguration refreshTokenCookieConfiguration, AccessTokenConfiguration accessTokenConfiguration, AccessRefreshTokenGenerator accessRefreshTokenGenerator, @Nullable PriorToLoginPersistence priorToLoginPersistence)
JwtCookieLoginHandler(RedirectService ,RedirectConfiguration,AccessTokenCookieConfiguration,RefreshTokenCookieConfiguration,AccessTokenConfiguration,PriorToLoginPersistence, ServerContextPathProvider)
instead.redirectConfiguration
- Redirect configurationaccessTokenCookieConfiguration
- JWT Access Token Cookie ConfigurationrefreshTokenCookieConfiguration
- Refresh Token Cookie ConfigurationaccessTokenConfiguration
- JWT Generator ConfigurationaccessRefreshTokenGenerator
- Access Refresh Token GeneratorpriorToLoginPersistence
- Prior To Login Persistence Mechanism@Deprecated public JwtCookieLoginHandler(RedirectService redirectService, RedirectConfiguration redirectConfiguration, AccessTokenCookieConfiguration accessTokenCookieConfiguration, RefreshTokenCookieConfiguration refreshTokenCookieConfiguration, AccessTokenConfiguration accessTokenConfiguration, AccessRefreshTokenGenerator accessRefreshTokenGenerator, @Nullable PriorToLoginPersistence priorToLoginPersistence)
JwtCookieLoginHandler(RedirectService ,RedirectConfiguration,AccessTokenCookieConfiguration,RefreshTokenCookieConfiguration,AccessTokenConfiguration,PriorToLoginPersistence, ServerContextPathProvider)
instead.redirectService
- Redirection ServiceredirectConfiguration
- Redirect configurationaccessTokenCookieConfiguration
- JWT Access Token Cookie ConfigurationrefreshTokenCookieConfiguration
- Refresh Token Cookie ConfigurationaccessTokenConfiguration
- JWT Generator ConfigurationaccessRefreshTokenGenerator
- Access Refresh Token GeneratorpriorToLoginPersistence
- Prior To Login Persistence Mechanism@Inject public JwtCookieLoginHandler(RedirectService redirectService, RedirectConfiguration redirectConfiguration, AccessTokenCookieConfiguration accessTokenCookieConfiguration, RefreshTokenCookieConfiguration refreshTokenCookieConfiguration, AccessTokenConfiguration accessTokenConfiguration, AccessRefreshTokenGenerator accessRefreshTokenGenerator, @Nullable PriorToLoginPersistence priorToLoginPersistence, @Nullable io.micronaut.http.context.ServerContextPathProvider serverContextPathProvider)
redirectService
- Redirection ServiceredirectConfiguration
- Redirect configurationaccessTokenCookieConfiguration
- JWT Access Token Cookie ConfigurationrefreshTokenCookieConfiguration
- Refresh Token Cookie ConfigurationaccessTokenConfiguration
- JWT Generator ConfigurationaccessRefreshTokenGenerator
- Access Refresh Token GeneratorpriorToLoginPersistence
- Prior To Login Persistence MechanismserverContextPathProvider
- Server Context Path providerpublic 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