mirror of
https://github.com/plutov/paypal.git
synced 2025-02-02 15:10:36 +01:00
skip escaping
This commit is contained in:
parent
2f016eafbb
commit
01a9cc8bc9
4
auth.go
4
auth.go
|
@ -21,8 +21,8 @@ func (c *Client) GetAuthorizationCodeURL(redirectURI string, scopes []string) (s
|
|||
}
|
||||
|
||||
return strings.Replace(c.APIBase, "api.", "", -1) + "/webapps/auth/protocol/openidconnect/v1/authorize?client_id=" +
|
||||
url.QueryEscape(c.ClientID) + "&response_type=code&scope=" + strings.Join(scopes, "+") +
|
||||
"&redirect_uri=" + url.QueryEscape(redirectURI), nil
|
||||
c.ClientID + "&response_type=code&scope=" + strings.Join(scopes, "+") +
|
||||
"&redirect_uri=" + redirectURI, nil
|
||||
}
|
||||
|
||||
// GetAccessToken returns struct of TokenResponse
|
||||
|
|
|
@ -15,4 +15,7 @@ func main() {
|
|||
fmt.Println("ERROR: " + err.Error())
|
||||
os.Exit(1)
|
||||
}
|
||||
|
||||
url, err := client.GetAuthorizationCodeURL("http://test.com", []string{})
|
||||
fmt.Println("DEBUG: AuthCodeURL=" + url)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user