New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Google backend authenticate failure, base64 decoding fails at GoogleIdTokenVerifier.verify #1403
Comments
Hey @yerzhik thanks for the report. I will investigate. |
@yerzhik how are you getting |
I downgraded the library version and the same code worked
…On Sat, Nov 23, 2019 at 6:39 Cody Oss ***@***.***> wrote:
@yerzhik <https://github.com/yerzhik> how are you getting googleToken?
Are you still having this issue?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#1403?email_source=notifications&email_token=ABE7BLOWZRG7L4KCT2PZZ53QVBGRXA5CNFSM4JF4I54KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEE66KHQ#issuecomment-557704478>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABE7BLOG5DDX5MTSEQL4APDQVBGRXANCNFSM4JF4I54A>
.
|
What version? I tried several and doesn't work... |
I just followed official tutorial/example codes. I can put it here later today if needed. |
@yerzhik could you share what version worked, and did not work for you? This verify code seems like it has been pretty stable so if there is something going on here I think it is in one of the dependencies of the lib. |
Looks like setAudience(Collections.singletonList(clientId)) is broken. Comment this code to verify the token. For example, |
I have tried to reproduce this on master, but was unsuccessful. Closing for now. If you are still having issues please reopen with more details. Thanks. |
@codyoss I encountered same issue as this. I used google-api-client-1.30.9.jar. Please help me. I need to fix this ASAP. |
@codyoss In frontend side, it's working fine but the problem is on verifying the id token. This is my code: if (StringUtils.isNotBlank(idtoken) && idtoken != null) {
This is the error in my CLI: java.lang.IllegalArgumentException: java.io.IOException: Unrecognized character: - I used play-1.4.6 JAVA Framework OS: MACOS Catalina Any thoughts here? @codyoss |
Environment details
Steps to reproduce
Code example
Stack trace
verifier.verify runs up to BaseEncoding.class:
Remote debugger shows: "java.io.IOException: Unrecognized character: -"
External references such as API reference guides
https://developers.google.com/identity/sign-in/web/backend-auth
Any additional information below
At remote tomcat debugger I took token id and used it in
https://oauth2.googleapis.com/tokeninfo?id_token
It showed decoded access token with all correct information.
The text was updated successfully, but these errors were encountered: