How to use JWK format with PyJWT lib

All other Source.Python topics and issues.
koletmp
Junior Member
Posts: 2
Joined: Wed Mar 16, 2022 10:18 am

How to use JWK format with PyJWT lib

Postby koletmp » Wed Mar 16, 2022 10:37 am

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?
koletmp
Junior Member
Posts: 2
Joined: Wed Mar 16, 2022 10:18 am

Re: How to use JWK format with PyJWT lib

Postby koletmp » Fri Mar 18, 2022 4:53 pm

Got a way to do it, Python code can be found here.

Return to “General Discussion”

Who is online

Users browsing this forum: No registered users and 16 guests