diff --git a/build/releaseBuild.yml b/build/releaseBuild.yml index b63231c728..c85792847a 100644 --- a/build/releaseBuild.yml +++ b/build/releaseBuild.yml @@ -105,7 +105,8 @@ jobs: command: 'custom' projects: 'wilson.sln' custom: 'msbuild' - arguments: '/r:True /p:Configuration=$(BuildConfiguration) /p:Platform="Any CPU" /verbosity:m /p:SourceLinkCreate=true /p:RunApiCompat=true' + arguments: '/r:True /p:Configuration=$(BuildConfiguration) /p:Platform="Any CPU" /verbosity:m /p:SourceLinkCreate=true' +# arguments: '/r:True /p:Configuration=$(BuildConfiguration) /p:Platform="Any CPU" /verbosity:m /p:SourceLinkCreate=true /p:RunApiCompat=true' - task: PowerShell@2 displayName: 'Run Tests' diff --git a/src/Microsoft.IdentityModel.JsonWebTokens/JwtTokenUtilities.cs b/src/Microsoft.IdentityModel.JsonWebTokens/JwtTokenUtilities.cs index 1fee751f1e..568cbbfcb3 100644 --- a/src/Microsoft.IdentityModel.JsonWebTokens/JwtTokenUtilities.cs +++ b/src/Microsoft.IdentityModel.JsonWebTokens/JwtTokenUtilities.cs @@ -529,13 +529,12 @@ internal static string GetStringClaimValueType(string str) // In a System.Security.Claims.Claim, JsonObjects and JsonArrays will need to be serialized as Json, and the ClaimValueType set to JsonArray or Json. // A C# type can also be returned, we will return a List representing the JsonArray or an object representing the JsonObject. // This will allow for constant time lookup for both scenarios if we store the results in dictionaries. - + // We need to have the JwtPayload, JwtHeader, JsonClaimSet all share the same call graph for consistency. // We need a shared model for adding claims from object for JsonWebToken and JwtSecurityToken // From getting ClaimValueTypes to setting object types internal static IDictionary CreateClaimsDictionary(byte[] bytes, int length) { - string utf8 = Encoding.UTF8.GetString(bytes); Dictionary claims = new(); Span utf8Span = bytes; Utf8JsonReader reader = new(utf8Span.Slice(0,length));