Browse Source

Merge pull request #22429 from abpframework/account-pro-external-login-settings

Update Social / External Logins document.
pull/22434/head
liangshiwei 1 year ago
committed by GitHub
parent
commit
de15f01595
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. BIN
      docs/en/images/account-pro-external-login-settings.png
  2. 16
      docs/en/modules/account-pro.md

BIN
docs/en/images/account-pro-external-login-settings.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 17 KiB

After

Width:  |  Height:  |  Size: 485 KiB

16
docs/en/modules/account-pro.md

@ -155,7 +155,7 @@ The application startup template comes with **Twitter**, **Google** and **Micros
![account-pro-external-login-settings](../images/account-pro-external-login-settings.png)
The social/External login system is compatible with the multi-tenancy. Each tenant can configure their own provider settings if your application is multi-tenant.
The social/External login system is compatible with the multi-tenancy. Each tenant can enable or disable the external login provider and configure their own provider settings if your application is multi-tenant.
### Install a new External Login
@ -179,7 +179,7 @@ context.Services.AddAuthentication()
facebook.Scope.Add("public_profile");
})
.WithDynamicOptions<FacebookOptions>(
FacebookDefaults.AuthenticationScheme,
FacebookDefaults.AuthenticationScheme, // Facebook
options =>
{
options.WithProperty(x => x.AppId);
@ -191,6 +191,18 @@ context.Services.AddAuthentication()
* `AddFacebook()` is the standard method that you can set hard-coded configuration.
* `WithDynamicOptions<FacebookOptions>` is provided by the Account Module which makes possible to configure the provided properties on the UI.
#### Localize Provider Properties
You can add following translation to localize the properties of the external login providers:
`en.json`:
````json
"ExternalProvider:Facebook": "Facebook",
"ExternalProvider:Facebook:AppId": "App ID",
"ExternalProvider:Facebook:AppSecret": "App Secret",
````
### IPostConfigureAccountExternalProviderOptions
Some external logins may be initialized based on dynamic properties. You can implement an `IPostConfigureAccountExternalProviderOptions` to initialize again after dynamic properties are initialized.

Loading…
Cancel
Save