So, I have a Java-script and a .NET backend. In the Javascript i fetch the Google ID token when the user log in and the I would like to pass this to the backend and: 1) Validate the token 2) Extract the email, username etc.
This is explained in documentation for java: https://developers.google.com/identity/sign-in/web/backend-auth
The main thing is:
GoogleIdToken idToken = verifier.verify(idTokenString);
And:
String email = payload.getEmail();
So simple in Java! But what to do in .NET? I cannot find the documentation! I found the following thread, but it seems like a quite complicated solution. Is that really the most easy way?
Cheers, Mattias