Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

OAuth controller $_oauth_client_id => $_oauth_client, create_client()…

… corrected to Model_OAuth2_Client
  • Loading branch information...
commit a96cb6e30fb5eecf0e04d1dcb73a3f0e94995402 1 parent adee2a1
@rafi authored
View
2  classes/kohana/model/oauth2/client.php
@@ -65,7 +65,7 @@ public static function find_client($client_id, $client_secret = NULL)
*/
public static function create_client($redirect_uri = NULL, $user_id = NULL)
{
- $client = new Model_OAuth2_Access_Token(
+ $client = new Model_OAuth2_Client(
array(
'data' => array(
'user_id' => $user_id,
View
8 classes/kohana/oauth2/controller.php
@@ -17,9 +17,9 @@
protected $_oauth;
/**
- * @var string Client ID
+ * @var Model_OAuth2_Client
*/
- protected $_oauth_client_id = NULL;
+ protected $_oauth_client;
/**
* @var string User ID
@@ -47,9 +47,9 @@ protected function _oauth_verify_token($scope = NULL)
{
try
{
- list($client_id, $user_id) = $this->_oauth->verify_token($scope);
+ list($client, $user_id) = $this->_oauth->verify_token($scope);
- $this->_oauth_client_id = $client_id;
+ $this->_oauth_client = $client;
$this->_oauth_user_id = $user_id;
}
catch (OAuth2_Exception_InvalidToken $e)

0 comments on commit a96cb6e

Please sign in to comment.
Something went wrong with that request. Please try again.