Update Management/Security/ClientAuthMiddleware.cs
All checks were successful
Management / build-deploy (push) Successful in 6m39s
All checks were successful
Management / build-deploy (push) Successful in 6m39s
This commit is contained in:
@@ -277,7 +277,11 @@ public sealed class ClientAuthMiddleware
|
|||||||
var validationParams = new TokenValidationParameters
|
var validationParams = new TokenValidationParameters
|
||||||
{
|
{
|
||||||
ValidateIssuer = true,
|
ValidateIssuer = true,
|
||||||
ValidIssuers = new[] { $"{instance.TrimEnd('/')}/{tenantId}/v2.0" },
|
ValidIssuers = new[]
|
||||||
|
{
|
||||||
|
$"https://login.microsoftonline.com/{tenantId}/v2.0",
|
||||||
|
$"https://sts.windows.net/{tenantId}/"
|
||||||
|
},
|
||||||
ValidateAudience = true,
|
ValidateAudience = true,
|
||||||
ValidAudiences = new[] { clientId, $"api://{clientId}" },
|
ValidAudiences = new[] { clientId, $"api://{clientId}" },
|
||||||
ValidateLifetime = true,
|
ValidateLifetime = true,
|
||||||
|
|||||||
Reference in New Issue
Block a user