Commit 225a3e65 authored by liugaoling's avatar liugaoling

add cloudam-en env

parent c71c12f4
......@@ -38,7 +38,7 @@ func ArrayContains(array []string, key string) bool {
func HttpLogin(username string, password string) (bool, error) {
client := &http.Client{}
loginUrl := "https://www.cloudam.cn/uaa/oauth/token?scope=ui&grant_type=password&username=" + username + "&password=" + password
loginUrl := "https://www.cloudam.io/uaa/oauth/token?scope=ui&grant_type=password&username=" + username + "&password=" + password
req, err := http.NewRequest("POST", loginUrl, nil)
......@@ -66,7 +66,7 @@ func HttpLogin(username string, password string) (bool, error) {
func HttpAuth(authReqInfo authz.AuthRequestInfo) bool {
client := &http.Client{}
authUrl := "https://www.cloudam.cn/c3ce/dockerimage/authorization"
authUrl := "https://www.cloudam.io/c3ce/dockerimage/authorization"
bytesData, _ := json.Marshal(authReqInfo)
fmt.Println(string(bytesData))
req, _ := http.NewRequest("POST", authUrl, bytes.NewReader(bytesData))
......
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