OAuth2 Server
This module provides OAuth2 server functionality, allowing your Drupal site to act as an authorization server. It supports various grant types and features like automatic client authorization and OpenID Connect integration.
Provides OAuth2 server functionality based on the
oauth2-server-php library.
Dependencies: Entity API, Entity reference, X Autoload.
Important: 7.x-1.0-rc2 is the last version that supports PHP 5.2.
All later versions require PHP 5.3 and X Autoload (due to oauth2-server-php itself requiring PHP 5.3 from version v1.0).
Features
- Entity-based architecture.
- Supports creating multiple exportable servers with own scopes and clients.
- Designed for an unbounded number of scopes.
- Supported grant types:
-
- Authorization code
- Client credentials
- Refresh token
- Password
- JSON Web Token (JWT)
- Support for the implicit flow.
- Support for per-client automatic authorization (skipping the authorization form).
- Services integration (authentication).
- Support for OpenID Connect.
Warning: The Services integration requires Services 3.6 (or newer).
The tests can be used as an example client-side implementation.
See the documentation page for information on getting started.
Depends on
Dependencies of the latest stable release
No dependencies recorded for this project.
Required by
Tracked projects that depend on this one
No tracked projects depend on this one yet.
Activity
Release Timeline
Releases
| Version | Type | Core | Notes | Release date | |
|---|---|---|---|---|---|
| 2.1.1 | Stable | 8–11 | Fix default entity labels | Feb 28, 2025 | |
| 3.0.x-dev | Dev | 8–11 | Consistent issuer and JWK url change. | Feb 26, 2025 | |
| 2.1.0 | Stable | 8–11 | Honour the server entity status | Feb 26, 2025 | |
| 2.1.x-dev | Dev | 8–11 | Client auto-config support. | Dec 10, 2024 | |
| 2.0.0 | Stable | 8–11 | Stable release with minor bug fixes. | Dec 10, 2024 |