Skip to main content
drupalreleases

Use direct release data with your AI assistant.

Learn more

Simple OAuth Token Exchange

Security covered Under active development 2 sites

This module adds support for the OAuth 2.0 Token Exchange standard to the Simple OAuth module. It allows you to exchange an existing access token for a new one with different permissions, which is useful when a client application needs a token with a more limited scope for specific tasks.

Implements the OAuth 2.0 Token Exchange (RFC 8693) for the Simple OAuth module.

Key Features

  • Allows for exchanging an existing access token for another one with different scopes
  • Provides a new grant type for Token Exchange
  • Useful when a token with a narrower scope is needed for another context in the same client

Example Use Case

Given a frontend application that uses BFF (Backend for Frontend) to communicate with Drupal. The BFF holds the access token with all needed privileges for the user to interface with Drupal.

But in some scenarios, like handling large file uploads, proxying the upload through the BFF might not be preferred or even possible (e.g. Vercel Serverless Functions have a max body size of 4.5 MB).

In such a case a new access token with only the scope permitting the file upload can be requested using the existing access token from the BFF. This access token can then be given to the browser to be used in the file upload.

Ask your assistant about Simple OAuth Token Exchange

Check compatibility with your Drupal and PHP version, maintenance and security coverage, from current release data. How it works

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

Tracked releases
2
Tracked since
Jan 2025
Latest release
1 year ago
Releases (12 mo)
0 ▼ from 2
Maintenance
Dormant

Releases

Version Type Core PHP Release date
1.0.0-rc1 Pre-release 10–11 Jan 15, 2025
1.x-dev Dev 10–11 Jan 15, 2025