question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Questions about JsonWebTokenHandler

See original GitHub issue

Re. https://github.com/AzureAD/azure-activedirectory-identitymodel-extensions-for-dotnet/blob/dev/src/Microsoft.IdentityModel.JsonWebTokens/JsonWebTokenHandler.cs

  1. Is this what you would recommend for creating and consuming JWTs in .NET Core (over previous implementations)?
  2. Where is the sample code?
  3. Where is the formal documentation?
  4. Is it necessarily tied to Azure? Or ActiveDirectory? Can it be used (say) by a .NET Core 3.1 console app?

From spelunking around the web, it would seem that JsonWebTokenHandler was introduced in 2018 but not many people know about it and there’s precious little information about it out there.

E.g. this article from January of this year only shows how to use JwtSecurityTokenHandler. Ditto for many others.

Time to bring JsonWebTokenHandler into the limelight?

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:8 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
Bellarmine-Headcommented, Dec 9, 2020

I have looked in vain (google search) for proper documentation on JsonWebTokenHandler. I’m not sure if it’s bundled in the ASP.NET Core version that’s included with .NET 5. I’m not even sure what package or what namespace it’s supposed to live under in the .NET 5 world. I continue to use https://www.chilkatsoft.com/refdoc/csJwtRef.html until the situation becomes clearer, and the documentation is fully there.

0reactions
udlosecommented, Jun 27, 2022

@brentschmaltz Any update on official MSDN documentation here? I’m still trying to figure out why there’s no WriteToken on JsonWebTokenHandler. I see the ReadToken, but how do I write one to a string?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Frequently asked JWT Interview Questions (2023)
Q: Why JWT is a stateless authentication? Ans: JSON Web Tokens (JWT) are called stateless because the authorizing server doesn't need to keep...
Read more >
.net - Why we have two classes for JWT tokens ...
Why we have two classes for JWT tokens JwtSecurityTokenHandler vs JsonWebTokenHandler? Ask Question. Asked 3 years, 5 months ago.
Read more >
Questions Answered: Are you properly using JWTs?
Questions and answers from our webinar, "Are you properly using JWTs? ... Is it considered safe if the JWT token is validated within...
Read more >
20 JWT Token Interview Questions and Answers - CLIMB
JWT Token Interview Questions and Answers · 1. What is a JWT? · 2. Can you explain what JSON Web Token Authentication is?...
Read more >
JWT Token Expiration and Authorization - Microsoft Q&A
I am working with a JWT in .Net Core 6.0 Web Api. I am struggling with JWT expiration time...not sure if it is...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found