Package io.micronaut.security.token
package io.micronaut.security.token
Token authentication.
- Since:
- 1.0
- Author:
- Graeme Rocher
-
ClassDescriptionAbstract implementation of
TokenAuthenticationFactorywhich creates an authentication for a set of claims.Authentication claims.Utility class to compare claims.Default implementation ofRolesFinder.Utility class to compare issuers, such as theissclaim of a token against the issuer expected for a key set or an OpenID client.Retrieves roles from token claims.Creates anAuthenticationobject from a token.Attempts to retrieve a token form theHttpRequestand if existing validated.Resolves the name token based authentication gives to a user on later requests from theAuthenticationa token is issued for, the wayAbstractTokenAuthenticationFactoryresolves it from the claims of the token: theTokenConfiguration.getNameKey()claim, falling back to thesubclaim, which is the principal name.