Skip to content

Commit 89b3b8c

Browse files
Update default and doc values for setApprovalPrompt. (googleapis#1535)
* Update default and doc values for setApprovalPrompt.
1 parent 6fe60b1 commit 89b3b8c

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

src/Google/Client.php

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ public function __construct(array $config = array())
125125
'login_hint' => '',
126126
'request_visible_actions' => '',
127127
'access_type' => 'online',
128-
'approval_prompt' => 'auto',
128+
'approval_prompt' => 'consent',
129129

130130
// Task Runner retry configuration
131131
// @see Google_Task_Runner
@@ -569,8 +569,9 @@ public function setAccessType($accessType)
569569

570570
/**
571571
* @param string $approvalPrompt Possible values for approval_prompt include:
572-
* {@code "force"} to force the approval UI to appear.
573-
* {@code "auto"} to request auto-approval when possible. (This is the default value)
572+
* {@code "none"} Do not display any authentication or consent screens. Must not be specified with other values.
573+
* {@code "consent"} Prompt the user for consent.
574+
* {@code "select_account"} Prompt the user to select an account.
574575
*/
575576
public function setApprovalPrompt($approvalPrompt)
576577
{

tests/Google/ClientTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ public function testPrepareService()
224224
. '&redirect_uri=http%3A%2F%2Flocalhost%2F'
225225
. '&state=xyz'
226226
. '&scope=http%3A%2F%2Ftest.com%20scope2'
227-
. '&approval_prompt=auto',
227+
. '&approval_prompt=consent',
228228

229229
$client->createAuthUrl()
230230
);

0 commit comments

Comments
 (0)