mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2026-01-19 17:51:45 +08:00
Allowing AAD login from any tenant in Orchard.OpenId (otherwise without Orchard modifications logins from no AAD tenant would work)
This commit is contained in:
@@ -92,9 +92,12 @@ namespace Orchard.OpenId.OwinMiddlewares {
|
||||
return Task.FromResult(0);
|
||||
}
|
||||
}
|
||||
|
||||
};
|
||||
|
||||
// Allowing login from all AAD tenants (so with any Microsoft ID). We'd need to list all possible AAD tenants
|
||||
// here otherwise.
|
||||
openIdOptions.TokenValidationParameters.ValidateIssuer = false;
|
||||
|
||||
if (azureWebSiteProtectionEnabled) {
|
||||
middlewares.Add(new OwinMiddlewareRegistration {
|
||||
Priority = "9",
|
||||
|
||||
Reference in New Issue
Block a user