I'm trying to parse a JWT from Xero for SSO. Xero documentation states "The JWT is a JSON payload signed with your client secret and the RS256 signing algorithm". I can get the JWT from Xero. I know my "client secret" (string).
How do put it together to setSigningKey to verify the response for RS256? using Java. Thanks
your goal is to just see the data in the id_token correct?
However, if what your looking for is just the data contained within (email, first name, last name) you can simply decode the JWT with this lib. Or checkout the decode function to roll your own (it will programmatically lookup hashing algo and decode it for you)
https://github.com/auth0/java-jwt#decode-a-token