Commit 6e220efb authored by liugaoling's avatar liugaoling

authorization

parent eec1caa6
......@@ -11,5 +11,5 @@ func main() {
authRequestInfo.Account = "wln"
authRequestInfo.Name = "wln/apple"
authRequestInfo.Service = "wln"
utils.HttpAuth(*authRequestInfo)
utils.HttpAuth(authRequestInfo)
}
......@@ -64,7 +64,7 @@ func HttpLogin(username string, password string) (bool, error) {
return true, nil
}
func HttpAuth(authReqInfo *authz.AuthRequestInfo) bool {
func HttpAuth(authReqInfo authz.AuthRequestInfo) bool {
client := &http.Client{}
authUrl := "http://47.57.4.97/c3ce/dockerimage/authorization"
authReqInfo.Account = "wln"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment