public class BaseConfigurationEndpoint extends BaseEndpoint
An OpenID Provider that supports OpenID Connect Discovery 1.0 must provide an endpoint that returns its configuration information in a JSON format. Details about the format are described in "3. OpenID Provider Metadata" in OpenID Connect Discovery 1.0.
Note that the URI of an OpenID Provider configuration endpoint is defined in "4.1. OpenID Provider Configuration Request" in OpenID Connect Discovery 1.0. In short, the URI must be:
Issuer Identifier + /.well-known/openid-configuration
Issuer Identifier is a URL to identify an OpenID Provider. For example,
https://example.com. For details about Issuer Identifier, See issuer
in "3. OpenID Provider Metadata" (OpenID Connect Discovery 1.0) and iss in
"2. ID Token"
(OpenID Connect Core 1.0).
You can change the Issuer Identifier of your service using the management console (Service Owner Console). Note that the default value of Issuer Identifier is not appropriate for commercial use, so you should change it.
| Constructor and Description |
|---|
BaseConfigurationEndpoint() |
| Modifier and Type | Method and Description |
|---|---|
javax.ws.rs.core.Response |
handle(com.authlete.common.api.AuthleteApi api)
Handle a request for OpenID Provider configuration.
|
onErrorpublic javax.ws.rs.core.Response handle(com.authlete.common.api.AuthleteApi api)
This method internally creates a ConfigurationRequestHandler
instance and calls its ConfigurationRequestHandler.handle() method.
Then, this method uses the value returned from the handle() method
as a response from this method.
When ConfigurationRequestHandler.handle() method raises a WebApplicationException, this method calls onError() method with the exception. The default implementation of onError()
calls printStackTrace() of the exception and does nothing else. You
can override the method as necessary. After calling onError() method,
this method calls getResponse() method of the exception and uses the
returned value as a response from this method.
api - An implementation of AuthleteApi.Copyright © 2016. All rights reserved.