@Requires(condition=CookieBasedAuthenticationModeCondition.class) @Requires(property="micronaut.security.token.jwt.cookie.enabled",notEquals="false",defaultValue="true") @Singleton public class JwtCookieTokenReader extends java.lang.Object implements TokenReader
Modifier and Type | Field and Description |
---|---|
protected AccessTokenCookieConfiguration |
accessTokenCookieConfiguration |
protected JwtCookieConfiguration |
jwtCookieConfiguration
Deprecated.
|
static java.lang.Integer |
ORDER |
Constructor and Description |
---|
JwtCookieTokenReader(AccessTokenCookieConfiguration accessTokenCookieConfiguration) |
JwtCookieTokenReader(JwtCookieConfiguration jwtCookieConfiguration)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
java.util.Optional<java.lang.String> |
findToken(io.micronaut.http.HttpRequest<?> request)
Attempts to retrieve a token in a request.
|
int |
getOrder() |
public static final java.lang.Integer ORDER
@Deprecated protected final JwtCookieConfiguration jwtCookieConfiguration
protected final AccessTokenCookieConfiguration accessTokenCookieConfiguration
@Deprecated public JwtCookieTokenReader(JwtCookieConfiguration jwtCookieConfiguration)
JwtCookieTokenReader(AccessTokenCookieConfiguration)
insteadjwtCookieConfiguration
- Configuration properties for JWT Cookie support@Inject public JwtCookieTokenReader(AccessTokenCookieConfiguration accessTokenCookieConfiguration)
accessTokenCookieConfiguration
- Configuration properties for JWT Cookie supportpublic java.util.Optional<java.lang.String> findToken(io.micronaut.http.HttpRequest<?> request)
TokenReader
findToken
in interface TokenReader
request
- The request to look for the token inpublic int getOrder()
getOrder
in interface io.micronaut.core.order.Ordered