The OAuth server bundle turns Contao into an OAuth 2.1 authorization server based on league/oauth2-server. Back end users can grant third-party clients (e.g. MCP clients) access to protected resources, which then authenticate with bearer tokens.
Supports the authorization code grant with PKCE and refresh tokens, client registration via Client ID Metadata Documents and the authorization server and protected resource metadata endpoints (RFC 8414, RFC 9728).
This bundle is experimental. Experimental features are not covered by Contao’s backwards compatibility promise and may change or be removed in any release.
Contao is an Open Source PHP Content Management System for people who want a professional website that is easy to maintain. Visit the project website for more information.
composer require contao/oauth-server-bundleThis repository is a READ-ONLY subtree split. See https://github.com/contao/contao to create issues or submit pull requests.
Contao is licensed under the terms of the LGPLv3.
Visit the support page to learn about the available support options.