Permalink
Browse files

OAuth2 was still redirecting when it should have been returning.

  • Loading branch information...
1 parent 1af52c3 commit 69235264ae007266faa8cfdc58d91de3ce254676 Phil Sturgeon committed Jun 10, 2012
Showing with 1 addition and 3 deletions.
  1. +1 −3 classes/provider.php
@@ -136,15 +136,13 @@ public function authorize($options = array())
$state = md5(uniqid(rand(), TRUE));
Session::set('state', $state);
- $url = $this->url_authorize().'?'.http_build_query(array(
+ return $this->url_authorize().'?'.http_build_query(array(
'client_id' => $this->client_id,
'redirect_uri' => \Arr::get($options, 'redirect_uri', $this->redirect_uri),
'state' => $state,
'scope' => is_array($this->scope) ? implode($this->scope_seperator, $this->scope) : $this->scope,
'response_type' => 'code',
));
-
- Response::redirect($url);
}
/*

0 comments on commit 6923526

Please sign in to comment.