uafrica / oauth-server

OAuth Server
Other
51 stars 51 forks source link

Issue new auth token with not yet expired auth token using the refresh token #24

Closed klickagent closed 8 years ago

klickagent commented 8 years ago

I am not sure either it is an issue of your plugin or the oauth2-Server plugin of phpleague... Hopefully you can tell me.

Shouldn't it be possible to issue a new auth token using the refresh token whenever I like to? I am not quite sure about the protocol. In another tested OAuth implementation (not in cakephp obviously ;) ) this works fine.

The problem occurs in the RefreshTokenGrant.php on line 135, where getSession is not defined on a non-object.

Thanks for your help!

klickagent commented 8 years ago

I fixed the issue in https://github.com/uafrica/oauth-server/pull/25