-
Notifications
You must be signed in to change notification settings - Fork 378
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
fix: gittar remove skipAuth #1856
fix: gittar remove skipAuth #1856
Conversation
Codecov Report
@@ Coverage Diff @@
## master #1856 +/- ##
==========================================
+ Coverage 14.79% 14.82% +0.03%
==========================================
Files 1128 1130 +2
Lines 113494 113925 +431
==========================================
+ Hits 16787 16893 +106
- Misses 94816 95125 +309
- Partials 1891 1907 +16
|
86f2362
to
6227b64
Compare
@@ -453,3 +446,11 @@ func getOrgIDV3(c *webcontext.Context, orgName string) (int64, error) { | |||
} | |||
return orgID, nil | |||
} | |||
|
|||
// isGitProtocolRequest if request like git clone,git push... return true | |||
func isGitProtocolRequest(c *webcontext.Context) bool { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
add unit test for this function.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
modules/gittar/auth/auth.go
Outdated
return | ||
} | ||
logrus.Infof("repo: %s userId: %v, username: %s", repoName, userIdStr, userInfoDto.Username) | ||
//校验通过缓存5分钟结果 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
use english
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
29ac3bb
to
bacccf7
Compare
bacccf7
to
ff40be8
Compare
/approve |
/cherry-pick release/1.3 |
* fix: remove skipAuth * polish the code and add unit test
/cherry-pick release/1.3 |
Automated cherry pick failed, please resolve the confilcts and create PR manually.
|
What type of this PR
/kind feature
What this PR does / why we need it:
fix: gittar remove skipAuth
Which issue(s) this PR fixes:
【gittar】鉴权取消skipAuth
Specified Reviewers:
/assign @sfwn
ChangeLog
Need cherry-pick to release versions?
Add comment like
/cherry-pick release/1.0
when this PR is merged.