Class OpenIdConfiguration.Builder
java.lang.Object
org.eclipse.jetty.security.openid.OpenIdConfiguration.Builder
- Enclosing class:
OpenIdConfiguration
Builder for OpenIdConfiguration
.
The only required parameters are issuer
, clientId
and clientSecret
.
The authorizationEndpoint
, tokenEndpoint
and endSessionEndpoint
will be retrieved
from the OpenID metadata at .well-known/openid-configuration if they are not explicitly specified.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionauthenticateNewUsers
(boolean authenticateNewUsers) authenticationMethod
(String authenticationMethod) authorizationEndpoint
(String authorizationEndpoint) build()
clientSecret
(String clientSecret) endSessionEndpoint
(String endSessionEndpoint) httpClient
(HttpClient httpClient) logoutWhenIdTokenIsExpired
(boolean logoutWhenIdTokenIsExpired) tokenEndpoint
(String tokenEndpoint)
-
Constructor Details
-
Builder
public Builder()Create a Builder for an OpenID Configuration. -
Builder
public Builder(@Name("issuer") String issuer, @Name("clientId") String clientId, @Name("clientSecret") String clientSecret) Create a Builder for an OpenID Configuration.- Parameters:
issuer
- The URL of the OpenID provider.clientId
- OAuth 2.0 Client Identifier valid at the OpenID provider.clientSecret
- The client secret known only by the Client and the OpenID provider.
-
-
Method Details
-
issuer
- Parameters:
issuer
- The URL of the OpenID provider.
-
clientId
- Parameters:
clientId
- OAuth 2.0 Client Identifier valid at the OpenID provider.
-
clientSecret
- Parameters:
clientSecret
- The client secret known only by the Client and the OpenID provider.
-
authorizationEndpoint
- Parameters:
authorizationEndpoint
- the URL of the OpenID provider's authorization endpoint if configured.
-
tokenEndpoint
- Parameters:
tokenEndpoint
- the URL of the OpenID provider's token endpoint if configured.
-
endSessionEndpoint
- Parameters:
endSessionEndpoint
- the URL of the OpenID provider's end session endpoint if configured.
-
authenticationMethod
- Parameters:
authenticationMethod
- Authentication method to use with the Token Endpoint.
-
httpClient
- Parameters:
httpClient
- TheHttpClient
instance to use.
-
authenticateNewUsers
- Parameters:
authenticateNewUsers
- Whether to authenticate new users.
-
scopes
- Parameters:
scopes
- The scopes to request.
-
logoutWhenIdTokenIsExpired
- Parameters:
logoutWhenIdTokenIsExpired
- Whether to logout when the ID token is expired.
-
build
- Returns:
- a new
OpenIdConfiguration
instance.
-