ClientIdMetadataDocument

An OAuth Client ID Metadata Document (SEP-991) a client hosts at its HTTPS-URL client_id. The authorization server fetches this document to learn the client's metadata (name, redirect URIs, auth method) without any prior registration. clientId MUST equal the document's own URL.

@safe
struct ClientIdMetadataDocument {
string clientId;
string clientName;
string clientUri;
string[] redirectUris;
string[] grantTypes;
string[] responseTypes;
string tokenEndpointAuthMethod;
string scope_;
}

Members

Functions

toJson
Json toJson()

Serialize to the JSON document hosted at the client_id URL. client_id and redirect_uris are always present (per SEP-991 minimum fields); optional fields are emitted only when set.