Incorrect responses with incorrect token

Hello, it seems there is an issue with processing incorrect Auth tokens.

  1. Request:
curl --location 'https://community.gcp.gnrg-osdu.projects.epam.com/api/oetp-client/v2/dataspaces' \
--header 'data-partition-id: osdu' \
--header 'Authorization: Bearer <correct_token>'

Response: 200 OK

  1. Incorrect token:
'Authorization: Bearer <incorrect_token>'

Response: 500 ISE

{ "description": "Unknown Error" }

Expected: 401

  1. Without token:

Response: 403 Forbidden

{ "statusCode": 403, "message": "Forbidden resource", "error": "Forbidden" }

Expected: 401

Assignee Loading
Time tracking Loading