Commit 2ac50314 authored by root's avatar root
parents 0f48f7d1 3409c980
......@@ -70,9 +70,10 @@ func HttpAuth(authReqInfo authz.AuthRequestInfo) bool {
authReqInfo.Account = "wln"
authReqInfo.Name = "wln/apple"
authReqInfo.Service = "wln"
fmt.Println(authReqInfo)
bytesData, _ := json.Marshal(authReqInfo)
fmt.Println(bytesData)
fmt.Println(authReqInfo)
fmt.Println(string(bytesData))
req, _ := http.NewRequest("POST", authUrl, bytes.NewReader(bytesData))
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