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.

[Question] Performance consideration

See original GitHub issue

I am using the JwtSecurityTokenHandler for encoding and decoding/validating JWT. I use the JWT as SET. I have a high load of JWT, and I have some issues with the current implementation of the handler.

First of all, I have to pass by ClaimPrincipal and Claim which are perfect for the usage of JWT as identity, by useless for other usages. As Claims are basically a key/value string pair, I have to convert back to JSON if the value were a JSON content type. (JSON => string => JSON).

The second performance issue seems to be on the Base64UrlEncoder. Encoding produce a lot of string allocations, mainly due to the Split().

Do you plan to enhance the JWT performance, or even to split the packages (IdentityModel feature on one side, JWT management on the other side) ? Am I using the correct library for my usage (a JWT not for the identity) ?

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
ycrumeyrollecommented, Jun 9, 2017

Maybe something like

public virtual JObject/string ValidateToken(string token, TokenValidationParameters validationParameters) { }

?

Read more comments on GitHub >

github_iconTop Results From Across the Web

25 Smart Performance Review Questions for Your Next ...
Performance Review Questions: Current Role · Which job responsibilities/tasks do you enjoy most? Which do you least enjoy? · How do you think...
Read more >
20 Best Performance Review Questions To Ask Your ...
Is there room for growth within our department? What goals should I work toward? How can I help our team succeed? What would...
Read more >
Looking for Performance Review Questions? We Found ...
30+ Additional Ideas for Performance Review Questions · Are you happy at [our company]? · What special projects have you worked on this...
Read more >
Top Performance Appraisal Questions and Answers for 2023
2: How do you answer employee appraisal questions? You need to review your past performance and future goals. Make a list of accomplishments...
Read more >
25 Smart Performance Review Questions to Improve ...
Questions about an employee's current role · What tasks do you enjoy doing the most? Why? · What tasks do you enjoy doing...
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