Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Go to Latest
class ConfigurationRequestHandler
extends BaseApiRequestHandler<boolean>
import { ConfigurationRequestHandler } from "https://deno.land/x/authlete_deno@v1.2.3/mod.ts";

Handler for requests to an OpenID Provider configuration endpoint.

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.

Methods

handle(pretty: boolean)

Handle a request to a configuration endpoint. This method calls Authlete /api/service/configuration API.