New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add in the Microsoft.IdentityModel.Tokens.Jwt library #945
Comments
library was added |
Is it safe to assume that |
Hi @mafurman @brentschmaltz, any insight into the above? |
@EatonZ JwtSecurityTokenHandler was modeled after the existing System.IdentityModel.SecurityTokenHandler. There were some compromises that we had to make, such as using System.Security.ClaimsIdentity as the type to build the JWS or JWE when using SecurityTokenDescriptor. ValidateToken had an out parameter of type SecurityToken, which doesn't for async. We saw performance improvements of up to 100% in some scenarios. |
Observação Importante! JsonWebTokenHandler é melhor que JwtSecurityTokenHandler AzureAD/azure-activedirectory-identitymodel-extensions-for-dotnet#945
The library should meet the following requirements:
• Remove automatic short-to-long claim type mapping that occurs when tokens are created.
• Prepare a framework for future work that will involve asynchronous token validation and creation.
• Improve the speed of JWT token validation and creation.
• Simplify the way in which JWT tokens are stored and dealt with.
• Provide a single extensibility model using delegates. Previous models provided two models: virtual methods and delegates.
The text was updated successfully, but these errors were encountered: