google / oauth2l

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

no longer receiving identity token #119

Closed willsalz closed 3 years ago

willsalz commented 3 years ago

I know this isn't the best place to post this, but I'm not sure where else to start out.

At some point in the past [ 6 months + ] I could use oauth2l with my GCP project and out would come an id_token field when I requested with OIDC scopes e.g.

$ oauth2l fetch --scope='openid,email,profile' --type=oauth --output_format=json

would produce JSON with an id_token field.

Now when I run oauth2l version 1.2.0 for the same project, I only see the following fields:

Is this a change in oauth2l? a change with GCP Auth? Maybe something with my account? Any help in tracking down the issue would be appreciated.

willsalz commented 3 years ago

I just pulled down the source at v1.1.0, built and ran the binary and the id_token is now showing up; looks like a possible regression?

shinfan commented 3 years ago

It seems like a regression introduced in https://github.com/google/oauth2l/pull/117.

I will create a PR to fix this.