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

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

Open
leoraba opened this issue Aug 4, 2023 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@leoraba
Copy link
Contributor

leoraba commented Aug 4, 2023

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" ] }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant