Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RefreshToken class missing (or How to refresh token) #49

Open
benjamindavid opened this issue Apr 6, 2013 · 3 comments
Open

RefreshToken class missing (or How to refresh token) #49

benjamindavid opened this issue Apr 6, 2013 · 3 comments

Comments

@benjamindavid
Copy link

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 !

@pushpinderbagga
Copy link

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!

@radaniba
Copy link

you guys solved that problem ? Am interested in it too

@Sonal824
Copy link

Have you solved it ? am also getting same error .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants