Class AdvancedAttributeToRoleMapper

  • All Implemented Interfaces:
    org.keycloak.broker.provider.IdentityProviderMapper, org.keycloak.provider.ConfiguredProvider, org.keycloak.provider.Provider, org.keycloak.provider.ProviderFactory<org.keycloak.broker.provider.IdentityProviderMapper>

    public class AdvancedAttributeToRoleMapper
    extends AbstractAttributeToRoleMapper
    • Constructor Detail

      • AdvancedAttributeToRoleMapper

        public AdvancedAttributeToRoleMapper()
    • Method Detail

      • supportsSyncMode

        public boolean supportsSyncMode​(org.keycloak.models.IdentityProviderSyncMode syncMode)
      • getConfigProperties

        public List<org.keycloak.provider.ProviderConfigProperty> getConfigProperties()
      • getId

        public String getId()
      • getCompatibleProviders

        public String[] getCompatibleProviders()
      • getDisplayCategory

        public String getDisplayCategory()
      • getDisplayType

        public String getDisplayType()
      • getHelpText

        public String getHelpText()
      • applies

        protected boolean applies​(org.keycloak.models.IdentityProviderMapperModel mapperModel,
                                  org.keycloak.broker.provider.BrokeredIdentityContext context)
        Description copied from class: AbstractAttributeToRoleMapper
        This method must be implemented by subclasses and they must return true if their mapping can be applied (i.e. user has the SAML attribute that should be mapped) or false otherwise.
        Specified by:
        applies in class AbstractAttributeToRoleMapper
        Parameters:
        mapperModel - a reference to the IdentityProviderMapperModel.
        context - a reference to the BrokeredIdentityContext.
        Returns:
        true if the mapping can be applied or false otherwise.