Authlete
|
Handler for requests to a configuration endpoint. More...
Public Member Functions | |
ConfigurationRequestHandler (IAuthleteApi api) | |
Constructor. More... | |
async Task< HttpResponseMessage > | Handle () |
Handle a request to a configuration endpoint. This method is an alias of Handle(true) . More... | |
async Task< HttpResponseMessage > | Handle (bool pretty) |
Handle a request to a configuration endpoint. This method calls Authlete's /api/service/configuration API. More... | |
![]() | |
BaseRequestHandler (IAuthleteApi api) | |
Constructor with an implementation of the IAuthleteApi interface. The given value can be referred to as the value of the Api property later. More... | |
Additional Inherited Members | |
![]() | |
HttpResponseMessage | UnknownAction (string apiPath) |
A utility method to generate an HttpResponseMessage instance with "500 Internal Server Error" and an error message in JSON. This method is expected to be used when the value of the "action" parameter in a response from an Authlete API holds an unexpected value. More... | |
![]() | |
IAuthleteApi | Api [get] |
The implementation of the IAuthleteApi interface. It is the value given to the constructor. More... | |
Handler for requests to a configuration endpoint.
An OpenID Provider that supports OpenID Connect Discovery 1.0 provides an endpoint that returns its configuration information in JSON format. Details about the format are described in 3. OpenID Provider Metadata of 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 short, the URI must be:
{Issuer-Identifier}
is a URL to identify an OpenID Provider. For example, https://example.com
. For details about Issuer Identifier, see the description about the "issuer"
metadata defined in 3. OpenID Provider Metadata (OpenID Conect Discovery 1.0) and the "iss"
claim in (2. ID Token (OpenID Connect Core 1.0).
You can change the Issuer Identifier of your service by using the management console (Service Owner Console). Note that the default value of Issuer Identifier is not appropriate for production use, so you should change it.
|
inline |
Constructor.
api | An implementation of the IAuthleteApi interface. |
|
inline |
Handle a request to a configuration endpoint. This method is an alias of Handle(true)
.
AuthleteApiException |
|
inline |
Handle a request to a configuration endpoint. This method calls Authlete's /api/service/configuration
API.
pretty | true to format the output JSON in a more human-readable way. |
AuthleteApiException |