Class OpenIdConfiguration

    • Constructor Detail

      • OpenIdConfiguration

        public OpenIdConfiguration​(java.lang.String provider,
                                   java.lang.String clientId,
                                   java.lang.String clientSecret)
        Create an OpenID configuration for a specific OIDC provider.
        Parameters:
        provider - The URL of the OpenID provider.
        clientId - OAuth 2.0 Client Identifier valid at the Authorization Server.
        clientSecret - The client secret known only by the Client and the Authorization Server.
      • OpenIdConfiguration

        public OpenIdConfiguration​(java.lang.String issuer,
                                   java.lang.String authorizationEndpoint,
                                   java.lang.String tokenEndpoint,
                                   java.lang.String clientId,
                                   java.lang.String clientSecret,
                                   HttpClient httpClient)
        Create an OpenID configuration for a specific OIDC provider.
        Parameters:
        issuer - The URL of the OpenID provider.
        authorizationEndpoint - the URL of the OpenID provider's authorization endpoint if configured.
        tokenEndpoint - the URL of the OpenID provider's token endpoint if configured.
        clientId - OAuth 2.0 Client Identifier valid at the Authorization Server.
        clientSecret - The client secret known only by the Client and the Authorization Server.
        httpClient - The HttpClient instance to use.
      • OpenIdConfiguration

        public OpenIdConfiguration​(java.lang.String issuer,
                                   java.lang.String authorizationEndpoint,
                                   java.lang.String tokenEndpoint,
                                   java.lang.String clientId,
                                   java.lang.String clientSecret,
                                   java.lang.String authMethod,
                                   HttpClient httpClient)
        Create an OpenID configuration for a specific OIDC provider.
        Parameters:
        issuer - The URL of the OpenID provider.
        authorizationEndpoint - the URL of the OpenID provider's authorization endpoint if configured.
        tokenEndpoint - the URL of the OpenID provider's token endpoint if configured.
        clientId - OAuth 2.0 Client Identifier valid at the Authorization Server.
        clientSecret - The client secret known only by the Client and the Authorization Server.
        authMethod - Authentication method to use with the Token Endpoint.
        httpClient - The HttpClient instance to use.
    • Method Detail

      • doStart

        protected void doStart()
                        throws java.lang.Exception
        Description copied from class: ContainerLifeCycle
        Starts the managed lifecycle beans in the order they were added.
        Overrides:
        doStart in class ContainerLifeCycle
        Throws:
        java.lang.Exception
      • getHttpClient

        public HttpClient getHttpClient()
      • getAuthEndpoint

        public java.lang.String getAuthEndpoint()
      • getClientId

        public java.lang.String getClientId()
      • getClientSecret

        public java.lang.String getClientSecret()
      • getIssuer

        public java.lang.String getIssuer()
      • getTokenEndpoint

        public java.lang.String getTokenEndpoint()
      • getAuthMethod

        public java.lang.String getAuthMethod()
      • addScopes

        public void addScopes​(java.lang.String... scopes)
      • getScopes

        public java.util.List<java.lang.String> getScopes()