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

no refresh token #18

Open
Ridor opened this issue Feb 27, 2014 · 4 comments
Open

no refresh token #18

Ridor opened this issue Feb 27, 2014 · 4 comments

Comments

@Ridor
Copy link

Ridor commented Feb 27, 2014

Hi,

How i can get refresh_token? i can't get it

thanks

@samdunne
Copy link
Owner

samdunne commented May 9, 2014

Looking into this

@samdunne samdunne added this to the 2.0 milestone May 9, 2014
@samdunne
Copy link
Owner

Doing the following should solve this:

provider :gplus, ENV['GPLUS_KEY'], ENV['GPLUS_SECRET'],  access_type: 'offline'

Closing this unless you have any other issues.

@ryana
Copy link

ryana commented Jun 26, 2014

Hey @samdunne I'm not getting the refresh token even with access_type: 'offline'

I'm using omniauth-gplus (2.0.1) & omniauth (1.1.4), and it doesn't look anything about offline access is being passed to the AccountChooser URL:

"https://accounts.google.com/AccountChooser?service=lso&continue=https://accounts.google.com/o/oauth2/auth?scope=https://www.googleapis.com/auth/userinfo.email&response_type=code&redirect_uri=XXXXX&state=XXXXXX&client_id=XXXXXXX&hl=en&from_login=1&as=1693d8a48de0d10d&btmpl=authsub&hl=en"

@philiphacks
Copy link

Same.. I'm not getting a refresh token using the 'offline' scope

@samdunne samdunne reopened this Sep 25, 2014
@samdunne samdunne added the bug label Sep 25, 2014
@samdunne samdunne modified the milestones: 2.1, 2.0 Sep 25, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants