File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -117,7 +117,7 @@ var (
117117 // ApprovalForce forces the users to view the consent dialog
118118 // and confirm the permissions request at the URL returned
119119 // from AuthCodeURL, even if they've already done so.
120- ApprovalForce AuthCodeOption = SetAuthURLParam ("approval_prompt " , "force " )
120+ ApprovalForce AuthCodeOption = SetAuthURLParam ("prompt " , "consent " )
121121)
122122
123123// An AuthCodeOption is passed to Config.AuthCodeURL.
Original file line number Diff line number Diff line change @@ -43,7 +43,7 @@ func newConf(url string) *Config {
4343func TestAuthCodeURL (t * testing.T ) {
4444 conf := newConf ("server" )
4545 url := conf .AuthCodeURL ("foo" , AccessTypeOffline , ApprovalForce )
46- const want = "server/auth?access_type=offline&approval_prompt=force& client_id=CLIENT_ID&redirect_uri=REDIRECT_URL&response_type=code&scope=scope1+scope2&state=foo"
46+ 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"
4747 if got := url ; got != want {
4848 t .Errorf ("got auth code URL = %q; want %q" , got , want )
4949 }
You can’t perform that action at this time.
0 commit comments