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

Ignore case of auth scheme in request header #1951

Merged
merged 1 commit into from Aug 10, 2021

Conversation

philippthun
Copy link
Contributor

Some clients send an authorization header containing the bearer keyword in lower case. This led to echo responding with missing or malformed jwt.

Request.BasicAuth (net/http) ignores the basic auth scheme's case since a while: https://go-review.googlesource.com/c/go/+/111516/

Some clients send an authorization header containing the "bearer"
keyword in lower case. This led to echo responding with "missing or
malformed jwt".

Request.BasicAuth (net/http) ignores the basic auth scheme's case since
a while: https://go-review.googlesource.com/c/go/+/111516/
@codecov
Copy link

codecov bot commented Aug 9, 2021

Codecov Report

Merging #1951 (4d0f2cb) into master (fcda0e8) will not change coverage.
The diff coverage is 100.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #1951   +/-   ##
=======================================
  Coverage   90.99%   90.99%           
=======================================
  Files          32       32           
  Lines        2799     2799           
=======================================
  Hits         2547     2547           
  Misses        161      161           
  Partials       91       91           
Impacted Files Coverage Δ
middleware/jwt.go 90.26% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update fcda0e8...4d0f2cb. Read the comment docs.

@aldas aldas merged commit 499097e into labstack:master Aug 10, 2021
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.

None yet

2 participants