Page 1 of 1

How to use JWK format with PyJWT lib

Posted: Wed Mar 16, 2022 10:37 am
by koletmp
I want to use PyJWT module to generate JWT token. The token should be signed by a private key. Problem is I don't have the RSA key in standard format. The private key was given to me in JWK format. I am not able to find any example code where PyJWT is used with JWK key. Is it even supported?

Re: How to use JWK format with PyJWT lib

Posted: Fri Mar 18, 2022 4:53 pm
by koletmp
Got a way to do it, Python code can be found here.