Python Forum
Need to sign JWT token with JWK key
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Need to sign JWT token with JWK key
#1
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.
Reply
#2
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
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Does @ at sign used for tother than decorators? ggpython000 1 550 Oct-12-2023, 09:08 AM
Last Post: buran
  Refresh token for Wyze SDK duckredbeard 0 1,119 May-16-2022, 04:33 AM
Last Post: duckredbeard
  i making a terminal sign up website thing Kenrichppython 1 1,713 Nov-04-2021, 03:57 AM
Last Post: bowlofred
  Python requests oauth2 access token herobpv 6 3,941 Sep-27-2021, 06:54 PM
Last Post: herobpv
  unexpected token < in json at position 0 Frodoxzibit 5 2,817 Jul-10-2021, 09:33 AM
Last Post: Larz60+
  Style question on adherence to PEP 8 with whitespace near an "=" sign nilesh 6 3,965 Jan-12-2021, 11:11 PM
Last Post: snippsat
  Syntax Error with = sign and more Kathleen57 3 2,667 May-03-2020, 03:52 AM
Last Post: buran
  / token in function parameterlist tpourjalali 1 1,881 Apr-12-2020, 07:05 PM
Last Post: deanhystad
  Getting an "Unexpected Token" Error and don't know why... NotAHackusator 1 1,855 Nov-20-2019, 03:00 PM
Last Post: buran
  get and reuse the token value with huawei modem Reims 1 4,591 Oct-02-2019, 04:29 AM
Last Post: Reims

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020