keycloak
|
静的公開メンバ関数 | |
static ProtocolMapperModel | create (String realmRolePrefix, String name, String tokenClaimName, boolean accessToken, boolean idToken) |
static ProtocolMapperModel | create (String realmRolePrefix, String name, String tokenClaimName, boolean accessToken, boolean idToken, boolean multiValued) |
static Stream< RoleModel > | getAllUserRolesStream (UserModel user) |
静的公開変数類 | |
static final String | PROVIDER_ID = "oidc-usermodel-realm-role-mapper" |
static final String | TOKEN_MAPPER_CATEGORY = "Token mapper" |
限定公開メンバ関数 | |
void | setClaim (IDToken token, ProtocolMapperModel mappingModel, UserSessionModel userSession) |
void | setClaim (IDToken token, ProtocolMapperModel mappingModel, UserSessionModel userSession, KeycloakSession keycloakSession) |
静的限定公開メンバ関数 | |
static void | setClaim (IDToken token, ProtocolMapperModel mappingModel, UserSessionModel userSession, Predicate< RoleModel > restriction, String prefix) |
静的関数 | |
[static initializer] | |
静的非公開変数類 | |
static final List< ProviderConfigProperty > | CONFIG_PROPERTIES = new ArrayList<>() |
Allows mapping of user realm role mappings to an ID and Access Token claim.
|
inlinestaticpackage |
|
inlineinherited |
org.keycloak.provider.Providerを実装しています。
|
inlineinherited |
|
inlinestatic |
|
inlinestatic |
|
inlinestaticinherited |
Returns a stream with roles that come from:
user | User to enumerate the roles for |
|
inline |
org.keycloak.provider.ConfiguredProviderを実装しています。
|
inline |
org.keycloak.protocol.ProtocolMapperを実装しています。
|
inline |
org.keycloak.protocol.ProtocolMapperを実装しています。
|
inline |
|
inline |
org.keycloak.provider.ProviderFactory< T extends Provider >を実装しています。
|
inlineinherited |
org.keycloak.protocol.ProtocolMapperを実装しています。
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineprotected |
|
inlinestaticprotectedinherited |
Retrieves all roles of the current user based on direct roles set to the user, its groups and their parent groups. Then it recursively expands all composite roles, and restricts according to the given predicate
. If the current client sessions is restricted (i.e. no client found in active user session has full scope allowed), the final list of roles is also restricted by the client scope. Finally, the list is mapped to the token into a claim.
token | |
mappingModel | |
userSession | |
restriction | |
prefix |
|
inlineprotectedinherited |
Intended to be overridden in ProtocolMapper implementations to add claims to an token.
token | |
mappingModel | |
userSession | |
keycloakSession |
|
inherited |
|
inlineinherited |
|
inherited |
|
inlineinherited |
|
inherited |
|
inlineinherited |
|
inlineinherited |
Called when instance of mapperModel is created/updated for this protocolMapper through admin endpoint
session | |
realm | |
client | client or clientTemplate |
mapperModel |
ProtocolMapperConfigException | if configuration provided in mapperModel is not valid |
org.keycloak.protocol.saml.mappers.ScriptBasedMapper, org.keycloak.protocol.oidc.mappers.ScriptBasedOIDCProtocolMapper, org.keycloak.protocol.oidc.mappers.AbstractPairwiseSubMapperで実装されています。
|
staticprivate |
|
static |
|
staticinherited |