@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 |
static java.lang.Integer |
ORDER |
Constructor and Description |
---|
JwtCookieTokenReader(AccessTokenCookieConfiguration accessTokenCookieConfiguration) |
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
protected final AccessTokenCookieConfiguration accessTokenCookieConfiguration
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