Class OidcReactiveOAuth2UserService

    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      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.
      reactor.core.publisher.Mono<org.springframework.security.oauth2.core.oidc.user.OidcUser> loadUser​(OidcUserRequest userRequest)
      Returns an OAuth2User after obtaining the user attributes of the End-User from the UserInfo Endpoint.
      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.
      void setOauth2UserService​(ReactiveOAuth2UserService<OAuth2UserRequest,​org.springframework.security.oauth2.core.user.OAuth2User> oauth2UserService)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • OidcReactiveOAuth2UserService

        public OidcReactiveOAuth2UserService()
    • 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
      • loadUser

        public reactor.core.publisher.Mono<org.springframework.security.oauth2.core.oidc.user.OidcUser> loadUser​(OidcUserRequest userRequest)
                                                                                                          throws org.springframework.security.oauth2.core.OAuth2AuthenticationException
        Description copied from interface: ReactiveOAuth2UserService
        Returns an OAuth2User after obtaining the user attributes of the End-User from the UserInfo Endpoint.
        Specified by:
        loadUser in interface ReactiveOAuth2UserService<OidcUserRequest,​org.springframework.security.oauth2.core.oidc.user.OidcUser>
        Parameters:
        userRequest - the user request
        Returns:
        an OAuth2User
        Throws:
        org.springframework.security.oauth2.core.OAuth2AuthenticationException - if an error occurs while attempting to obtain the user attributes from the UserInfo Endpoint
      • 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