When trying to authenticate with access token, I noticed that I was getting an internal error. The error was because the $ownerModel was saved as 'client' and not 'oauth_clients'. Adding this code to OAuthAuthenication.php seems to allow me to authenticate with the token:
When trying to authenticate with access token, I noticed that I was getting an internal error. The error was because the $ownerModel was saved as 'client' and not 'oauth_clients'. Adding this code to OAuthAuthenication.php seems to allow me to authenticate with the token:
line 162
See my notes on this comment: https://github.com/uafrica/oauth-server/issues/1#issuecomment-218228803
I changed the url to be: http://localhost:8888/users/alexa/1.json?access_token=3HZra4PSXAWKnnHpjZrmENXIKOk97R0qPttU1z4N
The Question remains, where do I need to put this code:
In a related matter, how can the Auth user to be set after the the token has been verified?
$this->set('user', $this->Auth->user())