From d6d10ceec8cf703bb88c8201867bacdee238fa04 Mon Sep 17 00:00:00 2001 From: Bobby DeSimone Date: Mon, 8 Apr 2019 20:29:41 -0700 Subject: [PATCH] params should be listed in alphabetical order --- oauth2_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/oauth2_test.go b/oauth2_test.go index 6cc24be..b7975e1 100644 --- a/oauth2_test.go +++ b/oauth2_test.go @@ -43,7 +43,7 @@ func newConf(url string) *Config { func TestAuthCodeURL(t *testing.T) { conf := newConf("server") url := conf.AuthCodeURL("foo", AccessTypeOffline, ApprovalForce) - const want = "server/auth?access_type=offline&prompt=consent&client_id=CLIENT_ID&redirect_uri=REDIRECT_URL&response_type=code&scope=scope1+scope2&state=foo" + const want = "server/auth?access_type=offline&client_id=CLIENT_ID&prompt=consent&redirect_uri=REDIRECT_URL&response_type=code&scope=scope1+scope2&state=foo" if got := url; got != want { t.Errorf("got auth code URL = %q; want %q", got, want) }