ueberauth / ueberauth_google

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

How do I get scopes which are not under userinfo? #80

Closed camjw closed 3 years ago

camjw commented 3 years ago

Sorry this is probably an obvious question but how would I request an OAuth token with scopes which are not under userinfo? For instance, the drive scope? I've tried sticking drive in the default scopes and messing around with the userinfo_endpoint parameter but neither of these seem to work. Both of these give 400 errors on the Google side.

Is this library only designed to give the userinfo scopes and I'm missing something fundamental about how OAuth is intended to work?

Thanks in advance and sorry for the stupid questions!