File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -125,7 +125,7 @@ public function __construct(array $config = array())
125
125
'login_hint ' => '' ,
126
126
'request_visible_actions ' => '' ,
127
127
'access_type ' => 'online ' ,
128
- 'approval_prompt ' => 'auto ' ,
128
+ 'approval_prompt ' => 'consent ' ,
129
129
130
130
// Task Runner retry configuration
131
131
// @see Google_Task_Runner
@@ -569,8 +569,9 @@ public function setAccessType($accessType)
569
569
570
570
/**
571
571
* @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.
574
575
*/
575
576
public function setApprovalPrompt ($ approvalPrompt )
576
577
{
Original file line number Diff line number Diff line change @@ -224,7 +224,7 @@ public function testPrepareService()
224
224
. '&redirect_uri=http%3A%2F%2Flocalhost%2F '
225
225
. '&state=xyz '
226
226
. '&scope=http%3A%2F%2Ftest.com%20scope2 '
227
- . '&approval_prompt=auto ' ,
227
+ . '&approval_prompt=consent ' ,
228
228
229
229
$ client ->createAuthUrl ()
230
230
);
You can’t perform that action at this time.
0 commit comments