Skip to main content
drupalreleases

Use direct release data with your AI assistant.

Learn more

Consumers

Security covered Under active development 29,699 sites

This module allows Drupal to register and manage "consumers," which are external applications or clients that interact with your Drupal site. It's primarily used by other modules to provide different features or content variations based on which consumer is making the request, enabling flexible decoupled Drupal setups.

Consumers is a module that does not do much on its own. Instead it's used by other modules to provide functionality for decoupled scenarios. Use this module as a dependency in your custom module to provide per-consumer variations of a feature. Or write a general purpose contrib module like Simple OAuth or Consumer Image Styles.

When is Consumers helpful?

Consumers will allow users to register consumers in Drupal (much like https://developers.facebook.com). It's a module that allows decoupled Drupal set ups to have variations based on the consumer making the request. All these options are gathered under a common umbrella so other projects can make use of them.

What modules are using Consumers?

Simple OAuth
Simple OAuth is the recommended OAuth2 solution for Drupal 8. It uses consumers to configure the different clients this specification needs.
Consumer Image Styles
Consumer Image Styles allows 3rd party application developers to specify the image styles their consumer needs. This module adds the URLs for those image variations when using JSON API.

Consumer negotiation

In order for your consumer to be discovered you will have to provide the Client ID of the consumer entity in the request. You can do so by sending a custom header or a query string parameter.

Use the X-Consumer-ID: 3cf7e37f-f8b6-405e-bf76-7ec37f6caec5 header or the https://โ€ฆ?consumerId=3cf7e37f-f8b6-405e-bf76-7ec37f6caec5 query string parameter to provide context about the consumer that issued the request.

Default Consumer

In 1.7 we introduced the concept of Default Consumer. This consumer will be used whenever no other consumer can be negotiated. Note that you can only have one default consumer in your site.

Contenta CMS

This module is part of the Contenta CMS decoupled distribution and integrates with Contenta JS. Learn more about these projects:

๐Ÿ‘‰ Contenta CMS ๐Ÿ‘ˆ
๐Ÿ”ฅ Contenta JS ๐Ÿ”ฅ

Logo is creative commons: https://pixabay.com/photo-443549/

Drupal 10โ€“11

Ask your assistant about Consumers

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

  • image Drupal core
  • system Drupal core

Required by

8 tracked projects depend on this one

Activity

Tracked releases
8
Tracked since
Mar 2023
Latest release
8 months ago
Releases (12 mo)
3 ▲ from 2
Maintenance
Active

Release Timeline

Releases

Version Type Core PHP Release date
8.x-1.24 Stable 10โ€“11 Feb 11, 2026
8.x-1.23 Stable 10โ€“11 Jan 22, 2026
8.x-1.22 Stable 9โ€“11 Nov 28, 2025
8.x-1.21 Stable 9โ€“11 Sep 28, 2025
8.x-1.20 Stable 9โ€“11 Jul 17, 2025
8.x-1.19 Stable 9โ€“11 PHP 8 Jul 23, 2024
8.x-1.18 Stable 9โ€“11 PHP 8 Jul 22, 2024
8.x-1.17 Stable 8โ€“10 Mar 27, 2023