google-api-go-client
google-api-go-client copied to clipboard
Add ISS validation to the idToken validator
In these docs I found the following line:
The value of iss in the ID token is equal to accounts.google.com or https://accounts.google.com.
I couldn't find this check inside the go client lib.
@anton-kstnk Thanks for reporting this. I agree that it looks like an omission in the idtoken Validator.
@codyoss Is there any reason why we shouldn't add this? Does this library support other issuers?
Closing this in favor of https://github.com/googleapis/google-api-go-client/issues/2422 which goes into a little more detail on other possible validations as well. Thanks for raising this.