Skip to content

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

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": "john.doe@example.com", "client_id": "song", **"exp": 0**, "scope": [ "song.READ", "song.WRITE" ] }

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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