Invalid token throws OAuthServerException

Created on 9 February 2020, almost 5 years ago
Updated 10 March 2023, over 1 year ago

When using and Invalid token a 401 error is thrown (but not catched). As a result drupal default error page is returned and two errors are rasised in the log.

League\OAuth2\Server\Exception\OAuthServerException: The resource owner or authorization server denied the request. en League\OAuth2\Server\Exception\OAuthServerException::accessDenied() (linea 223 de /var/www/html/xxx/vendor/league/oauth2-server/src/Exception/OAuthServerException.php).

Symfony\Component\HttpKernel\Exception\HttpException: Access token could not be verified en Drupal\simple_oauth\Authentication\Provider\SimpleOauthAuthenticationProvider->authenticate() (linea 81 de /var/www/html/xxx/web/modules/contrib/simple_oauth/src/Authentication/Provider/SimpleOauthAuthenticationProvider.php).

🐛 Bug report
Status

Closed: duplicate

Version

4.3

Component

Code

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