mirror of
https://github.com/goharbor/harbor.git
synced 2024-10-01 06:47:33 +02:00
delete the method of getting security context of specific user
This commit is contained in:
parent
75c4d4a60a
commit
603d15671a
@ -144,11 +144,6 @@ func GetAuthCtx(client *http.Client, url, token string) (*AuthContext, error) {
|
||||
return get(client, url, token)
|
||||
}
|
||||
|
||||
// GetAuthCtxOfUser returns the auth context of the specific user
|
||||
func GetAuthCtxOfUser(client *http.Client, url, token string, username string) (*AuthContext, error) {
|
||||
return get(client, url, token, username)
|
||||
}
|
||||
|
||||
// get the user's auth context, if the username is not provided
|
||||
// get the default auth context of the token
|
||||
func get(client *http.Client, url, token string, username ...string) (*AuthContext, error) {
|
||||
|
Loading…
Reference in New Issue
Block a user