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

Missing "approval_prompt" in authorization_uri #87

Closed
rems75 opened this issue Feb 26, 2017 · 1 comment
Closed

Missing "approval_prompt" in authorization_uri #87

rems75 opened this issue Feb 26, 2017 · 1 comment
Assignees
Labels
needs more info This issue needs more information from the customer to proceed. type: question Request for information or clarification. Not an issue.

Comments

@rems75
Copy link

rems75 commented Feb 26, 2017

I wrote a Rails app synching with Google Calendar. I'm currently trying to obtain new refresh_tokens from the API as a bug prevented me from saving them in the first place.
I am using approval_prompt: force (or prompt: consent I have tried both), the code is:

google_client = Signet::OAuth2::Client.new({
     client_id: ENV.fetch('GOOGLE_CLIENT_ID'),
     client_secret: ENV.fetch('GOOGLE_CLIENT_SECRET'),
     authorization_uri: 'https://accounts.google.com/o/oauth2/auth',
     scope: Google::Apis::CalendarV3::AUTH_CALENDAR_READONLY,
     redirect_uri: 'http://localhost:8000/google_calendar',
     access_type: "offline",
     approval_prompt: "force"
  })

URI = google_client.authorization_uri.to_s

The URI does not contain the approval_prompt that I would expect (and when I add it manually, I do get prompted for consent). Am I missing something?

@JustinBeckwith JustinBeckwith added 🚨 This issue needs some love. triage me I really want to be triaged. and removed 🚨 labels Jul 30, 2018
@TheRoyalTnetennba TheRoyalTnetennba added the type: question Request for information or clarification. Not an issue. label Aug 20, 2018
@JustinBeckwith JustinBeckwith removed triage me I really want to be triaged. 🚨 This issue needs some love. labels Aug 20, 2018
@TheRoyalTnetennba
Copy link
Contributor

Sorry for the delayed response. I'm having difficulty reproducing. Is this still giving you issues?

@JustinBeckwith JustinBeckwith added the needs more info This issue needs more information from the customer to proceed. label Dec 3, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs more info This issue needs more information from the customer to proceed. type: question Request for information or clarification. Not an issue.
Projects
None yet
Development

No branches or pull requests

3 participants