Class OpenIDConnectProviderConfiguration


  • @Singleton
    public class OpenIDConnectProviderConfiguration
    extends Object
    Service for getting the configuration of the OpenId Connect provider.
    Since:
    12.0.0
    • Constructor Detail

      • OpenIDConnectProviderConfiguration

        @Inject
        public OpenIDConnectProviderConfiguration​(OAuth2ProviderSettingsFactory providerSettingsFactory,
                                                  OAuth2UrisFactory urisFactory)
        Constructs a new OpenIDConnectProviderConfiguration.
        Parameters:
        providerSettingsFactory - An instance of the OAuth2ProviderSettingsFactory.
        urisFactory - An instance of OAuth2UrisFactory.
    • Method Detail

      • getConfiguration

        public org.forgerock.json.JsonValue getConfiguration​(OAuth2Request request)
                                                      throws OAuth2Exception
        Gets the OpenId configuration for the OpenId Connect provider.
        Parameters:
        request - The OAuth2 request.
        Returns:
        A JsonValue representation of the OpenId configuration.
        Throws:
        UnsupportedResponseTypeException - If the requested response type is not supported by either the client or the OAuth2 provider.
        ServerException - If any internal server error occurs.
        OAuth2Exception