Skip to content

Commit

Permalink
Merge pull request #8 from donaldpiret/patch-1
Browse files Browse the repository at this point in the history
Allow the extra_parameters to override the response_type for getAuthentic
  • Loading branch information
adoy committed Oct 27, 2011
2 parents 9b7ae0f + f9cb9f8 commit 8a9de3e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Client.php
Expand Up @@ -182,11 +182,11 @@ public function getClientSecret()
*/
public function getAuthenticationUrl($auth_endpoint, $redirect_uri, array $extra_parameters = array())
{
$parameters = array_merge($extra_parameters, array(
$parameters = array_merge(array(
'response_type' => 'code',
'client_id' => $this->client_id,
'redirect_uri' => $redirect_uri
));
), $extra_parameters);
return $auth_endpoint . '?' . http_build_query($parameters, null, '&');
}

Expand Down

0 comments on commit 8a9de3e

Please sign in to comment.