Skip to content

check_api_key operation is not returning 401 error code in expired apiKeys #725

@leoraba

Description

@leoraba

Description

Operation POST /o/check_api_key is expected to check if an apiKey is valid or not. It should return an error whenever an apiKey is not valid or is expired.

Expected Behaviour

Returns a 401 Unauthorized when using an expired apiKey

Actual Behaviour

returns a 200 OK with exp field 0
e.g.
{ "user_name": "[email protected]", "client_id": "song", **"exp": 0**, "scope": [ "song.READ", "song.WRITE" ] }

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions