From decda4b1a80bbd73d46da4658a9ec243fe3d0851 Mon Sep 17 00:00:00 2001
From: Andrew White
services.AddMultiTenant()... // Setup host and strategy...
WithRemoteAuthentication(). // Important!
- WithPerTenantOptions((options, tenantInfo) =>
+ WithPerTenantOptions<AuthenticationOptions>((options, tenantInfo) =>
{
// Allow each tenant to have a different default challenge scheme.
if (tenantInfo.Items.TryGetValue("ChallengeScheme", out object challengeScheme))
@@ -74,7 +74,7 @@ else
options.DefaultChallengeScheme = (string)challengeScheme;
}
}).
- WithPerTenantOptions((options, tenantInfo) =>
+ WithPerTenantOptions<CookieAuthenticationOptions>((options, tenantInfo) =>
{
// Set a unique cookie name for this tenant.
options.Cookie.Name = tenantInfo.Id + "-cookie";
diff --git a/samples/ASP.NET Core 2/BasePathStrategySample/BasePathStrategySample.csproj b/samples/ASP.NET Core 2/BasePathStrategySample/BasePathStrategySample.csproj
index 48f0a0b3..6df6109e 100644
--- a/samples/ASP.NET Core 2/BasePathStrategySample/BasePathStrategySample.csproj
+++ b/samples/ASP.NET Core 2/BasePathStrategySample/BasePathStrategySample.csproj
@@ -6,10 +6,10 @@
-
+
-
+
\ No newline at end of file
diff --git a/samples/ASP.NET Core 2/DataIsolationSample/DataIsolationSample.csproj b/samples/ASP.NET Core 2/DataIsolationSample/DataIsolationSample.csproj
index ed9a4373..5446ec09 100644
--- a/samples/ASP.NET Core 2/DataIsolationSample/DataIsolationSample.csproj
+++ b/samples/ASP.NET Core 2/DataIsolationSample/DataIsolationSample.csproj
@@ -7,10 +7,10 @@
-
+
-
+
diff --git a/samples/ASP.NET Core 2/DelegateStrategySample/DelegateStrategySample.csproj b/samples/ASP.NET Core 2/DelegateStrategySample/DelegateStrategySample.csproj
index 74d14754..93bd19ca 100644
--- a/samples/ASP.NET Core 2/DelegateStrategySample/DelegateStrategySample.csproj
+++ b/samples/ASP.NET Core 2/DelegateStrategySample/DelegateStrategySample.csproj
@@ -6,10 +6,10 @@
-
+
-
+
diff --git a/samples/ASP.NET Core 2/EFCoreStoreSample/EFCoreStoreSample.csproj b/samples/ASP.NET Core 2/EFCoreStoreSample/EFCoreStoreSample.csproj
index cd761536..a7476f1c 100644
--- a/samples/ASP.NET Core 2/EFCoreStoreSample/EFCoreStoreSample.csproj
+++ b/samples/ASP.NET Core 2/EFCoreStoreSample/EFCoreStoreSample.csproj
@@ -7,10 +7,10 @@
-
+
-
+
diff --git a/samples/ASP.NET Core 2/FallbackStrategySample/FallbackStrategySample.csproj b/samples/ASP.NET Core 2/FallbackStrategySample/FallbackStrategySample.csproj
index ab3577bb..93bd19ca 100644
--- a/samples/ASP.NET Core 2/FallbackStrategySample/FallbackStrategySample.csproj
+++ b/samples/ASP.NET Core 2/FallbackStrategySample/FallbackStrategySample.csproj
@@ -6,6 +6,10 @@
-
+
+
+
+
+
diff --git a/samples/ASP.NET Core 2/HostStrategySample/HostStrategySample.csproj b/samples/ASP.NET Core 2/HostStrategySample/HostStrategySample.csproj
index 07ca7554..1b262af8 100644
--- a/samples/ASP.NET Core 2/HostStrategySample/HostStrategySample.csproj
+++ b/samples/ASP.NET Core 2/HostStrategySample/HostStrategySample.csproj
@@ -6,11 +6,11 @@
-
+
-
+
diff --git a/samples/ASP.NET Core 2/IdentityDataIsolationSample/IdentityDataIsolationSample.csproj b/samples/ASP.NET Core 2/IdentityDataIsolationSample/IdentityDataIsolationSample.csproj
index 8b5babb1..b571a609 100644
--- a/samples/ASP.NET Core 2/IdentityDataIsolationSample/IdentityDataIsolationSample.csproj
+++ b/samples/ASP.NET Core 2/IdentityDataIsolationSample/IdentityDataIsolationSample.csproj
@@ -8,11 +8,11 @@
-
+
-
+
diff --git a/samples/ASP.NET Core 2/RouteStrategySample/RouteStrategySample.csproj b/samples/ASP.NET Core 2/RouteStrategySample/RouteStrategySample.csproj
index 74d14754..93bd19ca 100644
--- a/samples/ASP.NET Core 2/RouteStrategySample/RouteStrategySample.csproj
+++ b/samples/ASP.NET Core 2/RouteStrategySample/RouteStrategySample.csproj
@@ -6,10 +6,10 @@
-
+
-
+
diff --git a/samples/ASP.NET Core 2/SharedLoginSample/SharedLoginSample.csproj b/samples/ASP.NET Core 2/SharedLoginSample/SharedLoginSample.csproj
index d54e40f0..139110aa 100644
--- a/samples/ASP.NET Core 2/SharedLoginSample/SharedLoginSample.csproj
+++ b/samples/ASP.NET Core 2/SharedLoginSample/SharedLoginSample.csproj
@@ -8,11 +8,11 @@
-
+
-
+
diff --git a/samples/ASP.NET Core 2/StaticStrategySample/StaticStrategySample.csproj b/samples/ASP.NET Core 2/StaticStrategySample/StaticStrategySample.csproj
index 74d14754..93bd19ca 100644
--- a/samples/ASP.NET Core 2/StaticStrategySample/StaticStrategySample.csproj
+++ b/samples/ASP.NET Core 2/StaticStrategySample/StaticStrategySample.csproj
@@ -6,10 +6,10 @@
-
+
-
+
diff --git a/samples/ASP.NET Core 3/AuthenticationOptionsSample/AuthenticationOptionsSample.csproj b/samples/ASP.NET Core 3/AuthenticationOptionsSample/AuthenticationOptionsSample.csproj
index c8cdc935..3e78ac25 100644
--- a/samples/ASP.NET Core 3/AuthenticationOptionsSample/AuthenticationOptionsSample.csproj
+++ b/samples/ASP.NET Core 3/AuthenticationOptionsSample/AuthenticationOptionsSample.csproj
@@ -9,10 +9,10 @@
-
+
-
+
diff --git a/samples/ASP.NET Core 3/AuthenticationOptionsSample/Views/Home/Index.cshtml b/samples/ASP.NET Core 3/AuthenticationOptionsSample/Views/Home/Index.cshtml
index 91962b8a..1f49c19a 100644
--- a/samples/ASP.NET Core 3/AuthenticationOptionsSample/Views/Home/Index.cshtml
+++ b/samples/ASP.NET Core 3/AuthenticationOptionsSample/Views/Home/Index.cshtml
@@ -66,7 +66,7 @@ else
services.AddMultiTenant()... // Setup host and strategy...
WithRemoteAuthentication(). // Important!
- WithPerTenantOptions((options, tenantInfo) =>
+ WithPerTenantOptions<AuthenticationOptions>((options, tenantInfo) =>
{
// Allow each tenant to have a different default challenge scheme.
if (tenantInfo.Items.TryGetValue("ChallengeScheme", out object challengeScheme))
@@ -74,7 +74,7 @@ else
options.DefaultChallengeScheme = (string)challengeScheme;
}
}).
- WithPerTenantOptions((options, tenantInfo) =>
+ WithPerTenantOptions<CookieAuthenticationOptions>((options, tenantInfo) =>
{
// Set a unique cookie name for this tenant.
options.Cookie.Name = tenantInfo.Id + "-cookie";
diff --git a/samples/ASP.NET Core 3/BasePathStrategySample/BasePathStrategySample.csproj b/samples/ASP.NET Core 3/BasePathStrategySample/BasePathStrategySample.csproj
index cd80c468..90f4a570 100644
--- a/samples/ASP.NET Core 3/BasePathStrategySample/BasePathStrategySample.csproj
+++ b/samples/ASP.NET Core 3/BasePathStrategySample/BasePathStrategySample.csproj
@@ -5,10 +5,10 @@
-
+
-
+
\ No newline at end of file
diff --git a/samples/ASP.NET Core 3/DataIsolationSample/DataIsolationSample.csproj b/samples/ASP.NET Core 3/DataIsolationSample/DataIsolationSample.csproj
index dc85393f..53d5ebdd 100644
--- a/samples/ASP.NET Core 3/DataIsolationSample/DataIsolationSample.csproj
+++ b/samples/ASP.NET Core 3/DataIsolationSample/DataIsolationSample.csproj
@@ -6,10 +6,10 @@
-
+
-
+
diff --git a/samples/ASP.NET Core 3/DelegateStrategySample/DelegateStrategySample.csproj b/samples/ASP.NET Core 3/DelegateStrategySample/DelegateStrategySample.csproj
index fbd364c8..68495314 100644
--- a/samples/ASP.NET Core 3/DelegateStrategySample/DelegateStrategySample.csproj
+++ b/samples/ASP.NET Core 3/DelegateStrategySample/DelegateStrategySample.csproj
@@ -5,10 +5,10 @@
-
+
-
+
diff --git a/samples/ASP.NET Core 3/EFCoreStoreSample/EFCoreStoreSample.csproj b/samples/ASP.NET Core 3/EFCoreStoreSample/EFCoreStoreSample.csproj
index 58296e27..21650905 100644
--- a/samples/ASP.NET Core 3/EFCoreStoreSample/EFCoreStoreSample.csproj
+++ b/samples/ASP.NET Core 3/EFCoreStoreSample/EFCoreStoreSample.csproj
@@ -7,10 +7,10 @@
-
+
-
+
diff --git a/samples/ASP.NET Core 3/HostStrategySample/HostStrategySample.csproj b/samples/ASP.NET Core 3/HostStrategySample/HostStrategySample.csproj
index 07b2928b..0a8c8029 100644
--- a/samples/ASP.NET Core 3/HostStrategySample/HostStrategySample.csproj
+++ b/samples/ASP.NET Core 3/HostStrategySample/HostStrategySample.csproj
@@ -5,11 +5,11 @@
-
+
-
+
diff --git a/samples/ASP.NET Core 3/HttpRemoteStoreSample/HttpRemoteStoreSample/HttpRemoteStoreSample.csproj b/samples/ASP.NET Core 3/HttpRemoteStoreSample/HttpRemoteStoreSample/HttpRemoteStoreSample.csproj
index e08c28c9..cd65ed83 100644
--- a/samples/ASP.NET Core 3/HttpRemoteStoreSample/HttpRemoteStoreSample/HttpRemoteStoreSample.csproj
+++ b/samples/ASP.NET Core 3/HttpRemoteStoreSample/HttpRemoteStoreSample/HttpRemoteStoreSample.csproj
@@ -6,10 +6,10 @@
-
+
-
+
diff --git a/samples/ASP.NET Core 3/HttpRemoteStoreSample/HttpRemoteStoreSampleServer/HttpRemoteStoreSampleServer.csproj b/samples/ASP.NET Core 3/HttpRemoteStoreSample/HttpRemoteStoreSampleServer/HttpRemoteStoreSampleServer.csproj
index 70b1efd2..02f9e8dc 100644
--- a/samples/ASP.NET Core 3/HttpRemoteStoreSample/HttpRemoteStoreSampleServer/HttpRemoteStoreSampleServer.csproj
+++ b/samples/ASP.NET Core 3/HttpRemoteStoreSample/HttpRemoteStoreSampleServer/HttpRemoteStoreSampleServer.csproj
@@ -5,11 +5,11 @@
-
+
-
+
diff --git a/samples/ASP.NET Core 3/IdentityDataIsolationSample/IdentityDataIsolationSample.csproj b/samples/ASP.NET Core 3/IdentityDataIsolationSample/IdentityDataIsolationSample.csproj
index 0348e5df..efe4a613 100644
--- a/samples/ASP.NET Core 3/IdentityDataIsolationSample/IdentityDataIsolationSample.csproj
+++ b/samples/ASP.NET Core 3/IdentityDataIsolationSample/IdentityDataIsolationSample.csproj
@@ -10,10 +10,10 @@
-
+
-
+
diff --git a/samples/ASP.NET Core 3/RouteStrategySample/RouteStrategySample.csproj b/samples/ASP.NET Core 3/RouteStrategySample/RouteStrategySample.csproj
index fbd364c8..68495314 100644
--- a/samples/ASP.NET Core 3/RouteStrategySample/RouteStrategySample.csproj
+++ b/samples/ASP.NET Core 3/RouteStrategySample/RouteStrategySample.csproj
@@ -5,10 +5,10 @@
-
+
-
+
diff --git a/samples/ASP.NET Core 3/StaticStrategySample/StaticStrategySample.csproj b/samples/ASP.NET Core 3/StaticStrategySample/StaticStrategySample.csproj
index fbd364c8..68495314 100644
--- a/samples/ASP.NET Core 3/StaticStrategySample/StaticStrategySample.csproj
+++ b/samples/ASP.NET Core 3/StaticStrategySample/StaticStrategySample.csproj
@@ -5,10 +5,10 @@
-
+
-
+