ueberauth / ueberauth_google

Google OAuth2 Strategy for Überauth.
MIT License
164 stars 85 forks source link

Support more configuration options using parameters #29

Closed tsubery closed 7 years ago

tsubery commented 7 years ago

I need to sometime get a refresh token for offline access. I tried using approval_prompt=force parameter as described in the readme and it did not work. I had to use prompt=consent. The documentation only mentions the existence of prompt parameters. Maybe approval_prompt has been deprecated.

Instead of adding another specific parameter for the key "prompt" I made a white-list of parameters that can be configured either at the app level or at for a specific flow. This allows more granular control what the user is accepting. For example, it could allow an app to use typical sign in consent for login and different offline access if the user needs a particular feature.