public interface TokenConfiguration
extends io.micronaut.core.util.Toggleable
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
DEFAULT_NAME_KEY |
static java.lang.String |
DEFAULT_ROLES_NAME |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getNameKey()
Authentication attributes map key for the user's name. |
java.lang.String |
getRolesName()
Key which will be used in the
Authentication.getAttributes() for the User`s roles. |
static final java.lang.String DEFAULT_ROLES_NAME
static final java.lang.String DEFAULT_NAME_KEY
@NonNull java.lang.String getRolesName()
Authentication.getAttributes()
for the User`s roles. Default value "roles".@NonNull java.lang.String getNameKey()
Authentication
attributes map key for the user's name. Default value "username".