forked from remote/oauth2
oauth2: rename SetParam to SetAuthURLParam
SetParam is quite vague to represent an Option that sets the auth URL query parameters. Renaming it for explicitness. Fixes #108. Change-Id: Ic9f0181097820ee83404c9432451d71658dd8c67 Reviewed-on: https://go-review.googlesource.com/8491 Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
This commit is contained in:
@@ -63,7 +63,7 @@ func TestAuthCodeURL(t *testing.T) {
|
||||
|
||||
func TestAuthCodeURL_CustomParam(t *testing.T) {
|
||||
conf := newConf("server")
|
||||
param := SetParam("foo", "bar")
|
||||
param := SetAuthURLParam("foo", "bar")
|
||||
url := conf.AuthCodeURL("baz", param)
|
||||
if url != "server/auth?client_id=CLIENT_ID&foo=bar&redirect_uri=REDIRECT_URL&response_type=code&scope=scope1+scope2&state=baz" {
|
||||
t.Errorf("Auth code URL doesn't match the expected, found: %v", url)
|
||||
|
||||
Reference in New Issue
Block a user