Session management
Get the OAuth 2.0 authorisation server metadata.
Gets the OAuth 2.0 authorisation server metadata, as defined in RFC 8414, including the endpoint URLs and the supported parameters that can be used by the clients.
This endpoint definition includes only the fields that are meaningful in the context of the Matrix specification. The full list of possible fields is available in the OAuth Authorisation Server Metadata registry, and normative definitions of them are available in their respective RFCs.
NOTE: The authorisation server metadata is relatively large and may change over time. Clients should:
- Cache the metadata appropriately based on HTTP caching headers
- Refetch the metadata if it is stale
get/_matrix/client/v1/auth_metadata
Request
- Base URLhttps://matrix.org
- Authnone declared
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Response
The OAuth 2.0 authorisation server metadata.
Example response
{
"account_management_actions_supported": [
"org.matrix.profile",
"org.matrix.devices_list",
"org.matrix.device_view",
"org.matrix.device_delete",
"org.matrix.account_deactivate",
"org.matrix.cross_signing_reset"
],
"account_management_uri": "https://account.example.com/manage",
"authorization_endpoint": "https://account.example.com/oauth2/auth",
"code_challenge_methods_supported": [
"S256"
],
"device_authorization_endpoint": "https://account.example.com/oauth2/device",
"grant_types_supported": [
"authorization_code",
"refresh_token",
"urn:ietf:params:oauth:grant-type:device_code"
],
"issuer": "https://account.example.com/",
"registration_endpoint": "https://account.example.com/oauth2/clients/register",
"response_modes_supported": [
"query",
"fragment"
],
"response_types_supported": [
"code"
],
"revocation_endpoint": "https://account.example.com/oauth2/revoke",
"token_endpoint": "https://account.example.com/oauth2/token"
}Changes
No recorded changes to this operation across all 1 revision of this API.