Skip to content

Commit

Permalink
Revert #1535. (#1556)
Browse files Browse the repository at this point in the history
  • Loading branch information
mattwhisenhunt authored and dwsupplee committed Dec 14, 2018
1 parent 8213cb8 commit dee3a8b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
10 changes: 6 additions & 4 deletions src/Google/Client.php
Expand Up @@ -125,7 +125,7 @@ public function __construct(array $config = array())
'login_hint' => '',
'request_visible_actions' => '',
'access_type' => 'online',
'approval_prompt' => 'consent',
'approval_prompt' => 'auto',

// Task Runner retry configuration
// @see Google_Task_Runner
Expand Down Expand Up @@ -569,9 +569,8 @@ public function setAccessType($accessType)

/**
* @param string $approvalPrompt Possible values for approval_prompt include:
* {@code "none"} Do not display any authentication or consent screens. Must not be specified with other values.
* {@code "consent"} Prompt the user for consent.
* {@code "select_account"} Prompt the user to select an account.
* {@code "force"} to force the approval UI to appear.
* {@code "auto"} to request auto-approval when possible. (This is the default value)
*/
public function setApprovalPrompt($approvalPrompt)
{
Expand Down Expand Up @@ -638,6 +637,9 @@ public function setHostedDomain($hd)
* If no value is specified and the user has not previously authorized
* access, then the user is shown a consent screen.
* @param $prompt string
* {@code "none"} Do not display any authentication or consent screens. Must not be specified with other values.
* {@code "consent"} Prompt the user for consent.
* {@code "select_account"} Prompt the user to select an account.
*/
public function setPrompt($prompt)
{
Expand Down
2 changes: 1 addition & 1 deletion tests/Google/ClientTest.php
Expand Up @@ -224,7 +224,7 @@ public function testPrepareService()
. '&redirect_uri=http%3A%2F%2Flocalhost%2F'
. '&state=xyz'
. '&scope=http%3A%2F%2Ftest.com%20scope2'
. '&approval_prompt=consent',
. '&approval_prompt=auto',

$client->createAuthUrl()
);
Expand Down

0 comments on commit dee3a8b

Please sign in to comment.