Class OidcUserService

    • Constructor Detail

      • OidcUserService

        public OidcUserService()
    • Method Detail

      • createDefaultClaimTypeConverters

        public static java.util.Map<java.lang.String,​org.springframework.core.convert.converter.Converter<java.lang.Object,​?>> createDefaultClaimTypeConverters()
        Returns the default Converter's used for type conversion of claim values for an OidcUserInfo.
        Returns:
        a Map of Converter's keyed by claim name
        Since:
        5.2
      • setClaimTypeConverterFactory

        public final void setClaimTypeConverterFactory​(java.util.function.Function<ClientRegistration,​org.springframework.core.convert.converter.Converter<java.util.Map<java.lang.String,​java.lang.Object>,​java.util.Map<java.lang.String,​java.lang.Object>>> claimTypeConverterFactory)
        Sets the factory that provides a Converter used for type conversion of claim values for an OidcUserInfo. The default is ClaimTypeConverter for all clients.
        Parameters:
        claimTypeConverterFactory - the factory that provides a Converter used for type conversion of claim values for a specific client
        Since:
        5.2
      • setAccessibleScopes

        public final void setAccessibleScopes​(java.util.Set<java.lang.String> accessibleScopes)
        Sets the scope(s) that allow access to the user info resource. The default is profile, email, address and phone. The scope(s) are checked against the "granted" scope(s) associated to the access token to determine if the user info resource is accessible or not. If there is at least one match, the user info resource will be requested, otherwise it will not.
        Parameters:
        accessibleScopes - the scope(s) that allow access to the user info resource
        Since:
        5.2