Python Forum

Full Version: Need to sign JWT token with JWK key
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I am using PyJWT. I have given public & private keys in JWK format. I need to sign the JWT token. But I didn't see any example where PyJWT is supporting JWK format. Is it possible? My preference is using PyJWT. But I am open to use any other python module if you have one.
Found a solution using PyJWT. Took time to search. Sharing it here, maybe someone will also look for it. Sample python code is given https://www.w3spot.com/2022/01/signing-j...pyjwt.html