Module Description
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 UUID 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/

Project Usage
14997
Creation Date
Changed Date
Security Covered
Covered By Security Advisory
Version Available
Production
Module Summary
Provides functionality for decoupled scenarios by allowing users to register consumers in Drupal and configure variations based on the consumer making the request.
Data Name
consumers

OPENAI CHATBOT

OPENAI CHATBOT

12:25:59
Generic Chatbot
Hi, I'm a Drupal module expert powered by OpenAI, answering your questions about the Drupal module ecosystem. How can I be helpful today? Please note that we will log your question.