codeigniter-oauth2 icon indicating copy to clipboard operation
codeigniter-oauth2 copied to clipboard

RefreshToken class missing (or How to refresh token)

Open benjamindavid opened this issue 11 years ago • 3 comments

Hey there, I'm willing to implement refresh token with Google. I've managed to exchange the autorisation token for an access token but can't manage to make it work with refresh token.

From what I see in OAuth 2 provider, the token factory is gonna try to load Token/Refresh.php which doesn't exists.

Am I taking this the wrong way or is this something codeigniter-oauth2 doesn't supports ?

Would love to see a refresh example if possible.

Thanks a lot !

benjamindavid avatar Apr 06 '13 10:04 benjamindavid

I am too interested in knowing the same... There has to be an automated refresh token functionality... not just an on call one...

I however see a grant_type options array missing which doing this

$token = $provider->access($_GET['code']);

If we do a

$token = $provider->access($_GET['code'], array('grant_type'=>'refresh_token'));

It might just be the solution.

Cheers!

pushpinderbagga avatar Nov 15 '13 04:11 pushpinderbagga

you guys solved that problem ? Am interested in it too

radaniba avatar Nov 27 '13 23:11 radaniba

Have you solved it ? am also getting same error .

Sonal824 avatar Feb 28 '14 11:02 Sonal824