Auth: GoogleIdTokenVerifier fails to validate token from Identity Platform #2094
Labels
api: cloudidentity
Issues related to the Cloud Identity API.
priority: p2
Moderately-important priority. Fix may not be included in next release.
type: feature request
‘Nice-to-have’ improvement, new feature or different behavior or design.
Environment details
Steps to reproduce
Hello,
https://cloud.google.com/identity-platform/docs/reference/rest says that "we recommend that you use the Google-provided client libraries.", so I'm tring to leverage
GoogleIdTokenVerifier
to verify accessToken generated when usingIdentity Platform
. I use the following code:Verification fails because this line returns
false
because it was not able to verify signature here. When I use debug and dive inside, I see thatsun.security.rsa.RSASignature
throws insidejavax.crypto.BadPaddingException: Decryption error
.How do I obtain the token? I have used sample websites from https://github.com/firebase/firebaseui-web#starting-the-sign-in-flow (with configured initialization snippet from my Identity Platform account).
I am using
google-api-client
version1.35.1
.Where is the mistake? Should I configured different public keys?
Thanks in advance for help!
The text was updated successfully, but these errors were encountered: