Shreyans
Shreyans

Reputation: 881

how can I decode google's JWT response in python?

I can decode it using this tool by google: https://developers.google.com/commerce/wallet/digital/docs/jwtdecoder

This tells me that the encoding algorithm is RS256, which is not supported by the only python jwt library I've found: https://github.com/progrium/pyjwt

Anyone have an example of how to decode this?

Does the google-python-api-client have something that does this?

Thanks.

Upvotes: 1

Views: 2345

Answers (1)

Joe Gregorio
Joe Gregorio

Reputation: 770

You want oauth2client.client.verify_id_token().

Upvotes: 2

Related Questions