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

If user inputs an invalid API key it should return the header title/detail when requesting #32

Closed
brown-jason opened this issue Oct 28, 2024 · 1 comment · Fixed by #33
Assignees

Comments

@brown-jason
Copy link
Collaborator

brown-jason commented Oct 28, 2024

If you input an invalid API key ctxR will respond with:
" Please input an API_key!"

Ideally it would respond with one or both of the following messages from the header.
{
"title": "API Key Not Found",
"detail": "Please contact API admin for requesting a valid API key. Key xxxxxxxxxx not found."
}

The only time ctxR should return " Please input an API_key!" is when the user has not specified an api key at all.

@rachmaninoffpk rachmaninoffpk self-assigned this Oct 31, 2024
@rachmaninoffpk
Copy link
Collaborator

I will include the detail portion of the response. That gives a sufficient amount of information.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants