-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(idtoken): configure validator constructor to use no authentication (
- Loading branch information
Showing
1 changed file
with
5 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
b35900a
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[EDIT: see https://github.com//issues/1842#issuecomment-1421897504 this is working as intended]
This seems to break use cases using an API key.
Consider
NewValidator will append option.WithAPIKey(myGoogleAPIKey), which will trigger the error in settings.go:
google-api-go-client/internal/settings.go
Line 85 in 4b4c9d4
b35900a
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
so, it's a big mistake. when upgrade to this version, you cannot use the idtoken with credentail
b35900a
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actually, check #1842 (comment)
You should not pass an API key for this API.
b35900a
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok, in general, I think maybe need to pass an api key