public class GroupMembershipMapper extends AbstractOIDCProtocolMapper implements OIDCAccessTokenMapper, OIDCIDTokenMapper, UserInfoTokenMapper
Modifier and Type | Field and Description |
---|---|
static String |
PROVIDER_ID |
TOKEN_MAPPER_CATEGORY
Constructor and Description |
---|
GroupMembershipMapper() |
Modifier and Type | Method and Description |
---|---|
static ProtocolMapperModel |
create(String name,
String tokenClaimName,
boolean consentRequired,
String consentText,
boolean accessToken,
boolean idToken) |
List<ProviderConfigProperty> |
getConfigProperties() |
String |
getDisplayCategory() |
String |
getDisplayType() |
String |
getHelpText() |
String |
getId() |
protected void |
setClaim(IDToken token,
ProtocolMapperModel mappingModel,
UserSessionModel userSession)
Adds the group membership information to the
JsonWebToken.otherClaims . |
static boolean |
useFullPath(ProtocolMapperModel mappingModel) |
close, create, getProtocol, init, postInit, setClaim, setClaim, transformAccessToken, transformAccessTokenResponse, transformIDToken, transformUserInfoToken
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
transformAccessToken
transformIDToken
transformUserInfoToken
getPriority, validateConfig
order
public static final String PROVIDER_ID
public List<ProviderConfigProperty> getConfigProperties()
getConfigProperties
in interface ConfiguredProvider
public String getId()
getId
in interface ProviderFactory<ProtocolMapper>
public String getDisplayType()
getDisplayType
in interface ProtocolMapper
public String getDisplayCategory()
getDisplayCategory
in interface ProtocolMapper
public String getHelpText()
getHelpText
in interface ConfiguredProvider
public static boolean useFullPath(ProtocolMapperModel mappingModel)
protected void setClaim(IDToken token, ProtocolMapperModel mappingModel, UserSessionModel userSession)
JsonWebToken.otherClaims
.setClaim
in class AbstractOIDCProtocolMapper
token
- mappingModel
- userSession
- public static ProtocolMapperModel create(String name, String tokenClaimName, boolean consentRequired, String consentText, boolean accessToken, boolean idToken)
Copyright © 2021 JBoss by Red Hat. All rights reserved.