- 🇮🇳India magendiran
Thanks @rankun203 This is #5 💬 League\OAuth2\Server\Exception\OAuthServerException: The resource owner or authorization server denied the request Closed: won't fix working fine.
Drupal 8.7.1 reported the following error when issuing a GET request to: /oauth/debug?_format=json with valid token:
League\OAuth2\Server\Exception\OAuthServerException: The resource owner or authorization server denied the request. in League\OAuth2\Server\Exception\OAuthServerException::accessDenied() (line 223 of /var/www/vendor/league/oauth2-server/src/Exception/OAuthServerException.php).
As a result, the request:
curl -X GET \
'http://localhost:8080/oauth/debug?_format=json' \
-H 'Accept: */*' \
-H 'Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsImp0aSI6ImQ0ZmZmYzk1MGZlZGJiOWRhNmQ4NTJiYzZkNmVmNDIyZjIzZTgwNWM0NGQyYjgyN2VhNWQ2NGZiYjRiMzdkZWI2OTc0MTE3ZTZhNjg2YjBjIn0.eyJhdWQiOiIwMmRjNTkwMS1kNjMzLTQ5YmMtYjkzNi1hN2U3MjQ5Y2Q2YjEiLCJqdGkiOiJkNGZmZmM5NTBmZWRiYjlkYTZkODUyYmM2ZDZlZjQyMmYyM2U4MDVjNDRkMmI4MjdlYTVkNjRmYmI0YjM3ZGViNjk3NDExN2U2YTY4NmIwYyIsImlhdCI6MTU1ODU0NjE0NywibmJmIjoxNTU4NTQ2MTQ3LCJleHAiOjE1NTg5MDYxNDcsInN1YiI6IjIyIiwic2NvcGVzIjpbImF1dGhlbnRpY2F0ZWQiLCJiYXNpY19lZGl0b3IiLCJqc29uX2FwaV90ZXN0ZXIiXX0.XqQ8Bj8vLoEBvtEjVNAW9_OiwPkw5QoN8WVld0Go4QA6FLMDi4ApuLn4aWGN7p_NV1Z5RlcEQ31Rycg1ZwdZIdOb241AF8YfHMuqEZN7RgUkkFtygbXWdju0AS163coyz92R7zQ_mlvsSP1jbS9spBR_5E9NEydX6Gt503t8bJZ7tYQDpL2hlUIcFR72wDeQ5pBLbAx_x2V4UObHvuz-BN22lkm69H9zN-EGe6J0N71BEC9c-PaExkQsgQONsR1-lORPSxEIRagiT1zZ8CgGyRF0qziEKY00XRUa1a89KPJntKLwJiBhUYoKDt4vKiwqr5-KS8vFL_A2C-Z5Vi3I_g' \
-H 'Cache-Control: no-cache' \
-H 'Connection: keep-alive' \
-H 'Host: localhost:8080' \
-H 'Postman-Token: 42eced47-89fd-4eb8-8643-2df241675c48,b4c66098-ace8-48ab-b6d1-8844df23c249' \
-H 'User-Agent: PostmanRuntime/7.13.0' \
-H 'accept-encoding: gzip, deflate' \
-H 'cache-control: no-cache'
always returns:
{
"token": [
"eyJ0eXAiOiJKV1QiLCJhbGci...."
],
"id": 0,
"roles": [
"anonymous"
],
.....
I have the RESTUI module installed and have the attached resources enabled, but still getting the same error message is the log.
Closed: won't fix
3.0
Code
Not all content is available!
It's likely this issue predates Contrib.social: some issue and comment data are missing.
Thanks @rankun203 This is #5 💬 League\OAuth2\Server\Exception\OAuthServerException: The resource owner or authorization server denied the request Closed: won't fix working fine.