Fatal Error using Client Credentials Grant type

Created on 15 November 2019, about 5 years ago
Updated 18 November 2024, 6 days ago

Drupal Core: v8.7.9

I was able to use the Password grant type with no issues, but when I tried using the Client Credentials grant type I get the following exception:

The website encountered an unexpected error. Please try again later.</br></br><em class="placeholder">League\OAuth2\Server\Exception\OAuthServerException</em>: Client authentication failed in <em class="placeholder">League\OAuth2\Server\Exception\OAuthServerException::invalidClient()</em> (line <em class="placeholder">138</em> of <em class="placeholder">C:\...\vendor\league\oauth2-server\src\Exception\OAuthServerException.php</em>).

I am able to generate an access_token by POSTing to /oauth/token, but then when I try to actually use the access token I get the above exception. The exception also shows up when trying to debug using /oauth/debug?_format=json.

I have been issuing all of these requests to my localhost with postman.

πŸ› Bug report
Status

Closed: outdated

Version

5.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States neuquen

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