What you get
A standards-based authorization server inside your app, so you do not need a separate identity product to let other software connect.
-
Authorization code with PKCE
The flow browsers and native apps use to sign in, with a consent screen generated into your portal.
-
Device sign-in
The device authorization grant for tools without a browser: the command-line tool shows a code, the user confirms it in the portal.
-
Client credentials
For server-to-server integrations that act as a client rather than as a person.
-
Discovery and keys
OpenID configuration, authorization server metadata, protected resource metadata, a JWKS endpoint and userinfo, so standard client libraries just work.
-
Client registration
Dynamic client registration and client ID metadata documents, so clients such as AI assistants can register themselves. Users can see and revoke the applications they connected.
-
Token revocation
Tokens can be revoked, and expired authorization codes are cleaned up.
How it works
The OAuth2 module builds on Authentication. Once installed, your application issues signed access tokens itself and publishes the keys to verify them. Every token carries the user's account and roles, so whatever a client does with it is limited to what that user may do.
This is what the generated command-line tool uses to log in, and what the MCP module relies on: an AI assistant connects through the same consent screen as any other application and works with the user's own permissions. Read more on the security page.