Accessing jsonapi resource gives 403 using access_token

Created on 28 August 2024, 3 months ago
Updated 29 August 2024, 3 months ago

Problem/Motivation

When I am trying to access a jsonapi resource using access_token, it's giving 403. Also, I think in this module, resource tests are faked with a controller rather than actual resources.

Steps to reproduce

Create a new Functional test and try to access vocabulary resource using jsonapi, it gives 403

{
  "jsonapi": {
    "version": "1.0",
    "meta": {
      "links": {
        "self": {
          "href": "http://jsonapi.org/format/1.0/"
        }
      }
    }
  },
  "errors": [
    {
      "title": "Forbidden",
      "status": "403",
      "detail": "The current user is not allowed to GET the selected resource. The following permissions are required: 'access taxonomy overview' OR 'administer taxonomy'.",
      "links": {
        "via": {
          "href": "http://127.0.0.1:8080/jsonapi/taxonomy_vocabulary/taxonomy_vocabulary/76aa9473-c00b-47f8-9e33-4ef66540bac0"
        },
        "info": {
          "href": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html#sec10.4.4"
        }
      },
      "source": {
        "pointer": "/data"
      }
    }
  ]
}
🐛 Bug report
Status

Closed: works as designed

Version

6.0

Component

Code

Created by

🇮🇳India chandu7929 Pune

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024