Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Request zonder JWT geeft 403 Permission denied i.p.v. 401 Unauthorized #1495

Open
stevenbal opened this issue Dec 2, 2019 · 0 comments
Open
Labels
bug Iets werkt niet zoals bedoeld Prio M Prioriteit Medium

Comments

@stevenbal
Copy link
Collaborator

Bug

Als ik een request doe op een endpoint waar authenticatie op zit (bijv. https://zaken-api.vng.cloud/api/v1/zaken) en ik geen JWT token meegeef, dan zou ik een 401 Unauthorized verwachten, maar ik krijg een 403 Permission denied:

{
    "type": "https://zaken-api.vng.cloud/ref/fouten/PermissionDenied/",
    "code": "permission_denied",
    "title": "Je hebt geen toestemming om deze actie uit te voeren.",
    "status": 403,
    "detail": "Je hebt geen toestemming om deze actie uit te voeren.",
    "instance": "urn:uuid:9a905ec7-b566-408d-8a13-fa3d8069c714"
}

Een soortgelijk probleem geldt als ik wel een JWT meegeef, maar met een client_id dat niet herkent wordt door het component wat ik probeer aan te spreken, ook daar zou ik een 401 verwachten:

{
    "type": "https://zaken-api.vng.cloud/ref/fouten/PermissionDenied/",
    "code": "invalid-client-identifier",
    "title": "Je hebt geen toestemming om deze actie uit te voeren.",
    "status": 403,
    "detail": "Client identifier bestaat niet",
    "instance": "urn:uuid:3e766966-405c-45db-a9e3-4833fd86834d"
}
@stevenbal stevenbal added the bug Iets werkt niet zoals bedoeld label Dec 2, 2019
@stevenbal stevenbal added this to Backlog (nog) geen Prio in 2. Scrum ZGW Voorbereiding via automation Dec 2, 2019
@Hugo-ter-Doest Hugo-ter-Doest added the Prio M Prioriteit Medium label Jan 16, 2020
@Hugo-ter-Doest Hugo-ter-Doest moved this from Backlog (nog) geen Prio to Backlog Prio M in 2. Scrum ZGW Voorbereiding Jan 16, 2020
@michielverhoef michielverhoef added this to Bug in Overzicht Jan 7, 2021
@michielverhoef michielverhoef removed their assignment Mar 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Iets werkt niet zoals bedoeld Prio M Prioriteit Medium
Projects
2. Scrum ZGW Voorbereiding
  
Backlog Prio M
Development

No branches or pull requests

5 participants