public class ConfigurationRequestHandler extends Object
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.
In an implementation of configuration endpoint, call handle() method
and use the response as the response from the endpoint to the client application.
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 |
|---|
ConfigurationRequestHandler(com.authlete.common.api.AuthleteApi api)
Constructor with an implementation of
AuthleteApi interface. |
| Modifier and Type | Method and Description |
|---|---|
protected com.authlete.jaxrs.AuthleteApiCaller |
getApiCaller() |
javax.ws.rs.core.Response |
handle()
Handle a request to an OpenID Provider configuration endpoint.
|
javax.ws.rs.core.Response |
handle(boolean pretty)
Handle a request to an OpenID Provider configuration endpoint.
|
protected javax.ws.rs.InternalServerErrorException |
unexpected(String message,
Throwable cause) |
public ConfigurationRequestHandler(com.authlete.common.api.AuthleteApi api)
AuthleteApi interface.api - Implementation of AuthleteApi interface.public javax.ws.rs.core.Response handle()
throws javax.ws.rs.WebApplicationException
handle(true).javax.ws.rs.WebApplicationException - An error occurred.public javax.ws.rs.core.Response handle(boolean pretty)
throws javax.ws.rs.WebApplicationException
/api/service/configuration
API.pretty - true to return the output JSON in pretty format.javax.ws.rs.WebApplicationException - An error occurred.protected com.authlete.jaxrs.AuthleteApiCaller getApiCaller()
Copyright © 2016. All rights reserved.