Skip to content

feat(auth): add proxy-server authentication#3877

Merged
appleboy merged 1 commit into
gin-gonic:masterfrom
EndlessParadox1:dev
Mar 11, 2024
Merged

feat(auth): add proxy-server authentication#3877
appleboy merged 1 commit into
gin-gonic:masterfrom
EndlessParadox1:dev

Conversation

@EndlessParadox1

Copy link
Copy Markdown
Contributor

Function BasicAuth is not suitable for proxy-server authentication, so I add a brand new function BasicAuthForProxy in auth.go and test it.

@codecov

codecov Bot commented Mar 11, 2024

Copy link
Copy Markdown

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 99.36%. Comparing base (3dc1cd6) to head (bd0dd5d).
Report is 13 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #3877      +/-   ##
==========================================
+ Coverage   99.21%   99.36%   +0.15%     
==========================================
  Files          42       43       +1     
  Lines        3182     2689     -493     
==========================================
- Hits         3157     2672     -485     
+ Misses         17        9       -8     
  Partials        8        8              
Flag Coverage Δ
?
-race ∅ <ø> (?)
-tags "sonic avx" 99.36% <100.00%> (?)
-tags go_json 99.36% <100.00%> (?)
-tags nomsgpack 99.35% <100.00%> (?)
go-1.18 99.29% <100.00%> (+0.17%) ⬆️
go-1.19 99.36% <100.00%> (+0.15%) ⬆️
go-1.20 99.36% <100.00%> (+0.15%) ⬆️
go-1.21 99.36% <100.00%> (+0.15%) ⬆️
go-1.22 99.36% <100.00%> (?)
macos-latest 99.36% <100.00%> (+0.15%) ⬆️
ubuntu-latest 99.36% <100.00%> (+0.15%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@appleboy appleboy changed the title add BasicAuthForProxy feat(auth): add proxy-server authentication Mar 11, 2024
@appleboy appleboy added this to the v1.10 milestone Mar 11, 2024
@appleboy appleboy merged commit 5f458dd into gin-gonic:master Mar 11, 2024
@EndlessParadox1 EndlessParadox1 deleted the dev branch March 12, 2024 05:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants