Problem/Motivation
With https://www.drupal.org/project/consumers/issues/3310801 we made the 'client_id' field available on the Consumer entity, it's also being used in SimpleOauthAuthenticationProvider, which sets the client_id value on the X-Consumer-ID header. But the consumer Negotiator is still assuming it's the uuid instead of the client_id.
Initial issue reported: https://www.drupal.org/project/simple_oauth/issues/3343744
Proposed resolution
Update the Negotiator to load the consumer entity by client_id.
Issue fork consumers-3348681
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #3
bojan_dev commentedComment #6
eojthebraveThe code here looks good. And because in #3310801: Add client_id field to the consumer entity we already provided an update hook that populates the client_id field with the consumer UUID this is just fixing a bug and doesn't require any kind of data update. So ... looks good to me. Thanks @bojan_dev. I'll work on getting a new release out ASAP.