Get an OpenID token object to verify the requester's identity.
Gets an OpenID token object that the requester may supply to another service to verify their identity in Matrix. The generated token is only valid for exchanging for user information from the federation API for OpenID.
The access token generated is only valid for the OpenID API. It cannot be used to request another OpenID access token or call /sync, for example.
Request
- Base URLhttps://matrix.org
- Auth
- API key in query parameter access_token
- or HTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
The user to request an OpenID token for. Should be the user who is authenticated for the request.
Request body
Example request
{}Response
OpenID token information. This response is nearly compatible with the response documented in the OpenID Connect 1.0 Specification with the only difference being the lack of an id_token. Instead, the Matrix homeserver's name is provided.
Changes
No recorded changes to this operation across all 1 revision of this API.