Invalid X-Consumer-ID header value

Created on 22 February 2023, over 1 year ago
Updated 17 March 2023, over 1 year ago

Problem/Motivation

The SimpleOauthAuthenticationProvider sets the X-Consumer-ID header after a successful authentication.

However, the Provider uses the client id for the header value, but the Negotiator of the consumers module expects the X-Consumer-ID to be the UUID of the consumer entity.

This breaks implementations that rely on negotiating the current consumer from the current request after authenticating via simple_oauth.

Steps to reproduce

  1. Successfully authenticate via simple_oauth and a consumer which is not marked as default
  2. Negotiate the current consumer via the consumer.negotiator service
  3. The negotiated consumer will always be the default consumer

This applies to the latest versions of simple_oauth (6.0.0-beta3) and consumers (1.16.0).

Proposed resolution

Use the consumer UUID for the X-Consumer-ID header value.

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Closed: duplicate

Version

6.0

Component

Code

Created by

🇦🇹Austria chfoidl Salzburg

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024