google / oauth2l

oauth2l ("oauth tool") is a simple CLI for interacting with Google API authentication.
Apache License 2.0
643 stars 81 forks source link

userinfo.emil does not convert to https://www.googleapis.com/auth/userinfo.email anymore #89

Closed bgy36ww closed 4 years ago

bgy36ww commented 4 years ago

I recently re-downloaded the oauth2l, and trying to get token for userinfo.email

But it keep complaining:

Error 400: invalid_scope Some requested scopes were invalid. {invalid=[userinfo.email]}

andyrzhao commented 4 years ago

Hi there, this is a known issue. The problem was introduced by fixing https://github.com/google/oauth2l/issues/71, and was discussed in https://github.com/google/oauth2l/issues/88.

We need another fix to re-enable appending the prefix to "userinfo.email" (and not "email"). In the meantime, please use "--scope email" or the full scope name as workarounds. Sorry for the inconvenience!

bgy36ww commented 4 years ago

Thank you for the quick response. I will use --scope email in the mean time.