Skip to content

Commit

Permalink
Merge pull request #220 from jasonvarga/master
Browse files Browse the repository at this point in the history
Allow approval_prompt to be set through options
  • Loading branch information
ramsey committed Feb 12, 2015
2 parents 09259e9 + 7ec9bf7 commit bb2d4e4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Provider/AbstractProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ public function getAuthorizationUrl($options = [])
'state' => $this->state,
'scope' => is_array($this->scopes) ? implode($this->scopeSeparator, $this->scopes) : $this->scopes,
'response_type' => isset($options['response_type']) ? $options['response_type'] : 'code',
'approval_prompt' => 'auto',
'approval_prompt' => isset($options['approval_prompt']) ? $options['approval_prompt'] : 'auto',
];

return $this->urlAuthorize().'?'.$this->httpBuildQuery($params, '', '&');
Expand Down

0 comments on commit bb2d4e4

Please sign in to comment.