mirror of
https://github.com/element-hq/matrix-authentication-service.git
synced 2026-12-03 15:54:54 +00:00
A new `authorization_grant/skip_consent` entrypoint returns whether an authorization code grant is approved without asking the user. The consent page evaluates it after the violation check, and if it's true, approves the grant and redirects to the client as the Allow button does. The default policy skips consent only when `policy.data.skip_consent` is set and all of these hold: - the grant is an authorization code grant, not a device code grant; - it asks for nothing beyond `openid` and the Matrix C-S API and device scopes, and passes the violation check; - the account was created within `max_account_age_seconds`; - the user has no active sessions; - the client is listed in `client_ids`, when that list is set. Without that data nothing changes. Listing clients is what keeps the code with a known client: an operator sets a static client's redirect URIs, while a dynamically registered client chooses its own. Without the list, any client qualifies. The age and session conditions narrow the skip to the first sign-in right after registering, when the consent screen tells a new user nothing. The entrypoint is required, as the existing ones are, so a custom `policy.wasm` must define it: `default skip_consent := false` is enough. A rule left undefined counts as `false`. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01FqDpJaaUkGGq5GiEbU9G3f
About this documentation
This documentation is intended to give an overview of how the matrix-authentication-service (MAS) works, both from an admin perspective and from a developer perspective.
MAS is an OAuth 2.0 and OpenID Provider server for Matrix. It has been created to support the migration of Matrix to an OpenID Connect (OIDC) based authentication layer as per MSC3861.
The documentation itself is built using mdBook. A hosted version is available at https://element-hq.github.io/matrix-authentication-service/.
How the documentation is organized
This documentation has four main sections:
- The installation guide will guide you through the process of setting up the
matrix-authentication-serviceon your own infrastructure. - The topics sections goes into more details about how the service works, like the policy engine and how authorization sessions are managed.
- The reference documentation covers configuration options, the Admin API, the scopes supported by the service, and the command line interface.
- The developer documentation is intended for people who want to contribute to the project. Developers may also be interested in: