Browse Source
Add localization support for external login properties
pull/22429/head
maliming
2 years ago
No known key found for this signature in database
GPG Key ID: A646B9CB645ECEA4
1 changed files with
13 additions and
1 deletions
docs/en/modules/account-pro.md
@ -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.