When revoking an access token, the OAuth2 library expects the storage class to implement unsetAccessToken().
However, Drupal\oauth2_server\OAuth2Storage does not implement this method, resulting in a runtime exception:

RuntimeException: Token storage Drupal\oauth2_server\OAuth2Storage must implement unsetAccessToken method in OAuth2\ResponseType\AccessToken->revokeToken()

Proposed solution:

  • Implement the missing unsetAccessToken() method in OAuth2Storage
  • Use existing storage logic to load and delete the token
CommentFileSizeAuthor
revoke_access_token.patch960 bytesalchenemy
Command icon 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

alchenemy created an issue.