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

Handle invalid json in authorization header #16

Merged
merged 5 commits into from
Apr 26, 2022
Merged

Conversation

intothefire
Copy link
Contributor

If an app uses HTTP basic auth anywhere in its application (e.g. using Sidekiq web interface with HTTP basic auth protection), the middleware errors out due to the HTTP_AUTHORIZATION header not being valid JSON. This prevents access to these routes, in my case preventing access to the Sidekiq Web UI which we use a great deal.

Added simple error handling, in this case, to prevent the middleware from blocking requests unnecessarily.

if an app uses HTTP basic auth anywhere in its application (e.g. using Sidwkiq web interface with HTTP basic auth protection), the middleware errors out due to the HTTP_AUTHORIZATION header not being valid JSON. Added error handling in this case to prevent the middleware blocking requests
if an app uses HTTP basic auth anywhere in its application (e.g. using Sidwkiq web interface with HTTP basic auth protection), the middleware errors out due to the HTTP_AUTHORIZATION header not being valid JSON. Added error handling in this case to prevent the middleware blocking requests
@agis
Copy link
Member

agis commented Apr 26, 2022

This looks good, thanks for tackling it @intothefire!

@agis agis merged commit a3c6659 into clerk:main Apr 26, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants