Class OpenIDConnectProviderDiscovery


  • public class OpenIDConnectProviderDiscovery
    extends Object
    Service for discovering the OpenId Connect provider.
    Since:
    12.0.0
    • Constructor Detail

      • OpenIDConnectProviderDiscovery

        public OpenIDConnectProviderDiscovery()
    • Method Detail

      • discover

        public Map<String,​Object> discover​(String resource,
                                                 String rel,
                                                 String deploymentUrl,
                                                 OAuth2Request request)
                                          throws BadRequestException
        Returns the response to a request to discover the OpenId Connect provider.

        The account that the resource names is not looked up. The request is anonymous and the issuer is the same for every account, so an answer that differed for an account that does not exist would only tell the caller which accounts exist.

        Parameters:
        resource - The resource.
        rel - The rel.
        deploymentUrl - The deployment url of the OpenId Connect provider.
        request - The OAuth2 request. Not used; kept so that the signature does not change.
        Returns:
        A Map of the OpenId Connect provider urls.
        Throws:
        BadRequestException - If the request is malformed.