Skip to content

Releases: AzureAD/azure-activedirectory-identitymodel-extensions-for-dotnet

6.27.0

23 Feb 17:45
6217459
Compare
Choose a tag to compare

Servicing release
Set maximum depth for Newtonsoft parsing.
#2024
Improve metadata failure message.
#2010
Validate size of symmetric signatures.
#2008
Added property TokenEndpoint to BaseConfiguration.
#1998

6.26.1

07 Feb 19:53
1fae270
Compare
Choose a tag to compare

Releasing a Hotfix for Wilson 6.26.0 that reverts async/await changes made in #1996 to address a performance reduction issue.

  • Changes are in #2015

  • Root cause analysis and fix will be tracked in #2017

6.26.0

20 Jan 18:51
716124a
Compare
Choose a tag to compare

Servicing release
Introducing a new boolean TokenValidationParameter LogTokenId.
#2002
Update System.Text.Encodings.Web
#1997
Update ValidateToken call stack fully async
#1996
JsonWebTokenHandler to return the JsonWebToken on validation failure
#1989
Update documentation of DefaultTokenLifetimeInMinutes
#1988

6.25.1

01 Dec 18:31
Compare
Choose a tag to compare

Servicing release
.net was throwing when JWT tokens contained claims that used escaped characters.
#1975
Fixed Typo in comments
#1971
Added inner exception to help diagnose when reading JWT tokens fails.
#1968
Updated comments to improve understanding of RoleClaimTypeRetriever and NameClaimTypeRetriever
#1960

6.25.0

28 Oct 18:18
Compare
Choose a tag to compare

Add Instance property bag that is cleared when Clone is called.
Added comments to JsonWebTokenHandler and JwtSecurityTokenHandler to emphasize that ReadToken does not validate the token.
#1952
#1954

6.24.0

14 Oct 18:11
Compare
Choose a tag to compare

Single feature to control if exceptions are logged for Audience and Issuer failures.
Sometimes multiple policies are used, when a subsequent policy succeeds the upper layer can decide if previous exceptions should be logged.
#1949

6.23.1

08 Sep 23:59
Compare
Choose a tag to compare

A simple 'dot' release to fix an issue where JsonWebTokenHandler virtual CreateClaimsIdentity was not called.
#1940

6.23.0

06 Sep 22:50
Compare
Choose a tag to compare

#1934 JsonWebToken and JsonWebTokenHandler use System.Text.Json for JSON parsing for targets Net61+.
String splits have been removed and much of the duplicated string copying and processing has been removed resulting in a 20-25% performance increase.

#1924 This delegate will be called just before a token has the SignatureValidated. This allows for preprocessing of the token prior to signature validation. This is currently only used by the JsonWebTokenHandler.

6.22.1

26 Aug 17:21
0aa5338
Compare
Choose a tag to compare

New Features:

Microsoft.IdentityModel has two assemblies to manipulate JWT tokens:

System.IdentityModel.Tokens.Jwt, which is the legacy assembly. It defines JwtSecurityTokenHandler class to manipulate JWT tokens.
Microsoft.IdentityModel.JsonWebTokens, which defines the JsonWebToken class and JsonWebTokenHandler, more modern, and more efficient.
When using JwtSecurityTokenHandler, the short named claims (oid, tid), used to be transformed into the long named claims (with a namespace). With JsonWebTokenHandler this is no longer the case, but when you migrate your application from using JwtSecurityTokenHandler to JsonWebTokenHandler (or use a framework that does), you will only get original claims sent by the IdP. This is more efficient, and occupies less space, but might trigger a lot of changes in your application. In order to make it easier for people to migrate without changing their app too much, this release offers extensibility to re-add the claims mapping.

Bug Fixes:

(#1933) Wrong parameter order when calling ValidateLifetimeAndIssuerAfterSignatureNotValidatedJwt

6.22.0

27 Jul 16:47
eadc870
Compare
Choose a tag to compare

New Features:

Unmasked non-PII properties in log messages -
In Microsoft.IdentityModel logs, previously only system metadata (DateTime, class name, httpmethod etc.) was displayed in clear text. For all other log arguments, the type was being logged to prevent Personally Identifiable Information (PII) from being displayed when ShowPII flag is turned OFF. To improve troubleshooting experience non-PII properties - Issuer, Audience, Key location, Key Id (kid) and some SAML constants will now be displayed in clear text. See issue #1903 for more details.

Prefix Wilson header message to the first log message -
To always log the Wilson header (Version, DateTime, PII ON/OFF message), EventLogLevel.LogAlways was mapped to LogLevel.Critical in Microsoft.IdentityModel.LoggingExtensions.IdentityLoggerAdapter class which caused confusion on why header was being displayed as a fatal log.
To address this, header is now prefixed to the first message logged by Wilson and separated with a newline. EventLogLevel.LogAlways has been remapped to LogLevel.Trace. See issue #1907 for more details.

Bug Fixes:

Copy the IssuerSigningKeyResolverUsingConfiguration delegate in Clone() #1909