Ali Mhanna
Ali Mhanna

Reputation: 397

Access token could not be verified - drupal simple ouath

i'm trying to generate new access token using Simple oauth (v 5.2.3) module in drupal 9 , when I generate private and public keys from module settings , the private and public key files created but the are empty . and when I generate them by another way , this error shows enter image description here

and Drupal Log shows this error message :

League\OAuth2\Server\Exception\OAuthServerException: The resource owner or authorization server denied the request. in League\OAuth2\Server\Exception\OAuthServerException::accessDenied()

Upvotes: 0

Views: 720

Answers (1)

Blagojce
Blagojce

Reputation: 51

This worked for me:

  • Try to add your client's secret again into the OAuth Clients on the following path: /admin/config/services/consumer

  • Clear the Drupal cache

  • Get your new access token using your credentials Access Token

  • Get your data using the new access token Get the data

Upvotes: 0

Related Questions