public final class ClientRegistrations
extends java.lang.Object
ClientRegistration.Builder
from an
OpenID Provider Configuration.Modifier and Type | Method and Description |
---|---|
static ClientRegistration.Builder |
fromOidcIssuerLocation(java.lang.String issuer)
Creates a
ClientRegistration.Builder using the provided
Issuer by making an
OpenID Provider
Configuration Request and using the values in the
OpenID
Provider Configuration Response to initialize the ClientRegistration.Builder . |
public static ClientRegistration.Builder fromOidcIssuerLocation(java.lang.String issuer)
ClientRegistration.Builder
using the provided
Issuer by making an
OpenID Provider
Configuration Request and using the values in the
OpenID
Provider Configuration Response to initialize the ClientRegistration.Builder
.
For example, if the issuer provided is "https://example.com", then an "OpenID Provider Configuration Request" will be made to "https://example.com/.well-known/openid-configuration". The result is expected to be an "OpenID Provider Configuration Response".
Example usage:
ClientRegistration registration = ClientRegistrations.fromOidcIssuerLocation("https://example.com") .clientId("client-id") .clientSecret("client-secret") .build();
issuer
- the IssuerClientRegistration.Builder
that was initialized by the OpenID Provider Configuration.