/oauth/debug?_format=json always yields results for the anonymous user.

Created on 7 August 2017, over 7 years ago
Updated 2 August 2023, over 1 year ago

Good afternoon,

Using Drupal 8.36 and/or the Reservoir build from Acquia I'm fairly stuck. For whatever reason after creating a token (with a variety of scopes both created when adding the client, and during the token creation POST step) I am not authenticating as a user. I get a token, but when I run GET with it set to Authorization: Bearer {token goes here} it returns user 0. When I attempt to debug at /oauth/debug?_format=json it shows the credentials as user id 0 (anonymous) with the newly created token above it as expected "token": [ {token shown here} ],. This is leading to 403's on everything except GET requests. I am unsure how to go about debugging and was wondering if anyone out there might provide some advice.

I had this working about a month ago, but blew away the D8 instance after testing.... foolish me haha.

Thanks!

Best,
Shawn

πŸ’¬ Support request
Status

Fixed

Component

Miscellaneous

Created by

πŸ‡ΊπŸ‡ΈUnited States shawnmatthews

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024