From 38af8956d1e32e90c10dd1efd27c0ade68725260 Mon Sep 17 00:00:00 2001 From: maliming Date: Mon, 30 Nov 2020 15:40:28 +0800 Subject: [PATCH 1/2] Add Dynamic external login provider system. --- docs/en/Migration-Guides/Abp-4_0.md | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/docs/en/Migration-Guides/Abp-4_0.md b/docs/en/Migration-Guides/Abp-4_0.md index b48e441332..5ec42f092d 100644 --- a/docs/en/Migration-Guides/Abp-4_0.md +++ b/docs/en/Migration-Guides/Abp-4_0.md @@ -244,7 +244,7 @@ public class MyService : ITransientDependency public async Task DoItAsync() { await _options.SetAsync(); - + var requiredLength = _options.Value.Password.RequiredLength; } } @@ -257,6 +257,16 @@ Please make sure that the injected `IOptions` service and the s In order to solve the problem of async over sync, `ILdapManager` uses async method instead of sync. And use [`ldap4net`](https://github.com/flamencist/ldap4net) to replace [`Novell.Directory.Ldap.NETStandard`](https://github.com/dsbenghe/Novell.Directory.Ldap.NETStandard) package. +### Dynamic external login provider system + +You need to change the `WithDynamicOptions` method and pass the `Handler` class of the external login provider. +Use the `goto definition` function in Visual Studio or Rider to check `Hanler` in the extension method like `AddGoogle`. + +```csharp +- WithDynamicOptions() ++ WithDynamicOptions() +```` + ## ASP.NET Core MVC / Razor Pages UI See the [ASP.NET Core MVC / Razor Pages UI Migration Guide](Abp-4_0-MVC-Razor-Pages.md). From 863203e89d305e6e8c93d2fd813c34631ce71a61 Mon Sep 17 00:00:00 2001 From: maliming Date: Mon, 30 Nov 2020 15:41:50 +0800 Subject: [PATCH 2/2] Update Abp-4_0.md --- docs/en/Migration-Guides/Abp-4_0.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/en/Migration-Guides/Abp-4_0.md b/docs/en/Migration-Guides/Abp-4_0.md index 5ec42f092d..9e1bd4e816 100644 --- a/docs/en/Migration-Guides/Abp-4_0.md +++ b/docs/en/Migration-Guides/Abp-4_0.md @@ -260,7 +260,7 @@ In order to solve the problem of async over sync, `ILdapManager` uses async meth ### Dynamic external login provider system You need to change the `WithDynamicOptions` method and pass the `Handler` class of the external login provider. -Use the `goto definition` function in Visual Studio or Rider to check `Hanler` in the extension method like `AddGoogle`. +Use the `goto definition` function in Visual Studio or Rider to check `Handler` in the extension method like `AddGoogle`. ```csharp - WithDynamicOptions()