Commit 74f38d97 authored by liugaoling's avatar liugaoling

authorization

parent 6e220efb
...@@ -70,9 +70,9 @@ func HttpAuth(authReqInfo authz.AuthRequestInfo) bool { ...@@ -70,9 +70,9 @@ func HttpAuth(authReqInfo authz.AuthRequestInfo) bool {
authReqInfo.Account = "wln" authReqInfo.Account = "wln"
authReqInfo.Name = "wln/apple" authReqInfo.Name = "wln/apple"
authReqInfo.Service = "wln" authReqInfo.Service = "wln"
fmt.Println(authReqInfo)
bytesData, _ := json.Marshal(authReqInfo) bytesData, _ := json.Marshal(authReqInfo)
fmt.Println(bytesData) fmt.Println(bytesData)
fmt.Println(authReqInfo)
req, _ := http.NewRequest("POST", authUrl, bytes.NewReader(bytesData)) req, _ := http.NewRequest("POST", authUrl, bytes.NewReader(bytesData))
resp, _ := client.Do(req) resp, _ := client.Do(req)
......
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