| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
DefaultKeyAuthConfig sets KeyLookup to "header:Authorization:Bearer " in v5, but the KeyAuthConfig.KeyLookup comment still shows the v4 default of "header:Authorization". Update the comment to match. Signed-off-by: leestana01 <leestana01@naver.com>
Codecov Report✅ All modified and coverable lines are covered by tests. @@ Coverage Diff @@
## master #2992 +/- ##
==========================================
- Coverage 93.17% 93.17% -0.01%
==========================================
Files 43 43
Lines 4501 4499 -2
==========================================
- Hits 4194 4192 -2
Misses 189 189
Partials 118 118 ☔ View full report in Codecov by Harness.
|
Sorry, something went wrong.
There was a problem hiding this comment.
LGTM
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
The KeyLookup field comment in KeyAuthConfig documents the default as "header:Authorization", but the default applied by DefaultKeyAuthConfig is:
which evaluates to "header:Authorization:Bearer " (also the value ToMiddleware falls back to when KeyLookup is empty). The :Bearer cut-prefix trims the scheme from the header value, exactly as the same comment block describes.
The comment was correct in v4, where AuthScheme: "Bearer" was a separate field. In v5 AuthScheme was folded into KeyLookup, but this comment was left showing the old default.
Doc comment only — no behavior change.