Skip to content

Commit

Permalink
update wilson version and add key issuer validation (#2325)
Browse files Browse the repository at this point in the history
  • Loading branch information
westin-m authored Jul 13, 2023
1 parent bd99dcd commit bbd6a73
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@
</PropertyGroup>

<PropertyGroup Label="Common dependency versions">
<IdentityModelVersion>6.30.0</IdentityModelVersion>
<IdentityModelVersion>6.32.0</IdentityModelVersion>
<MicrosoftIdentityClientVersion>4.54.1</MicrosoftIdentityClientVersion>
<FxCopAnalyzersVersion>3.3.0</FxCopAnalyzersVersion>
<SystemTextEncodingsWebVersion>4.7.2</SystemTextEncodingsWebVersion>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
using Microsoft.Extensions.Options;
using Microsoft.Identity.Web.Resource;
using Microsoft.IdentityModel.Tokens;
using Microsoft.IdentityModel.Validators;

namespace Microsoft.Identity.Web
{
Expand Down Expand Up @@ -216,6 +217,8 @@ private static void AddMicrosoftIdentityWebApiImplementation(
microsoftIdentityIssuerValidatorFactory.GetAadIssuerValidator(options.Authority).Validate;
}

mergedOptions.TokenValidationParameters.EnableAadSigningKeyIssuerValidation();

// If you provide a token decryption certificate, it will be used to decrypt the token
// TODO use the credential loader
if (mergedOptions.TokenDecryptionCredentials != null)
Expand Down

0 comments on commit bbd6a73

Please sign in to comment.