tegiv jha

tegiv jha

  • 1.4k
  • 301
  • 452

Secret Base64 Encoded jwt.io

Aug 8 2024 9:21 AM

Good Day Team

I am requesting for assistance on something I am trying here. I am trying to generate a jwt token using C#. I have been checking a few places, all of which do help with the generation of the token, however using the token, I always get a token_invalid error.

The funny thing is that when I use the jwt.io side, and I add the issuer and secret, then I click on the checkbox (secret base64 encoded), the token generated there is valid and I can call the external applications successfully.

I am not understanding why when the checkbox is clicked, the token generated works and how to actually replicate the same thing from .Net C#. Can anyone maybe share some code, or maybe explain what I might be missing?

I am open to any assistance


Answers (2)