delete the method of getting security context of specific user

This commit is contained in:
Wenkai Yin 2017-07-19 18:05:50 +08:00
parent 75c4d4a60a
commit 603d15671a

View File

@ -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) {