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

Invalid token (base64 error) isn't mapped to an RFC6749Error error #727

Open
3 of 6 tasks
Philio opened this issue Dec 19, 2022 · 0 comments
Open
3 of 6 tasks

Invalid token (base64 error) isn't mapped to an RFC6749Error error #727

Philio opened this issue Dec 19, 2022 · 0 comments
Labels
bug Something is not working.

Comments

@Philio
Copy link

Philio commented Dec 19, 2022

Preflight checklist

Describe the bug

When the access token is invalid base64 (it was accidentally prefixed with a $ sign), the resulting error is "The error is unrecognizable".

Error is base64.CorruptInputError

It seems like it would be benefitial to map this to a more obvious error response (e.g. invalid_token)

Reproducing the bug

Prefix a valid access token with a '$' (or probably other non-base64 character) and send request to the server.

Relevant log output

No response

Relevant configuration

No response

Version

v0.43.0

On which operating system are you observing this issue?

macOS

In which environment are you deploying?

Kubernetes

Additional Context

No response

@Philio Philio added the bug Something is not working. label Dec 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something is not working.
Projects
None yet
Development

No branches or pull requests

1 participant