Class BackOfficeExternalLoginsBuilder
Used to add back office login providers
Inheritance
object
Namespace: Umbraco.Cms.Api.Management.Security
Assembly: Umbraco.Cms.Api.Management.dll
Syntax
public class BackOfficeExternalLoginsBuilder
Constructors
View SourceBackOfficeExternalLoginsBuilder(IServiceCollection)
Initializes a new instance of the BackOfficeExternalLoginsBuilder class for configuring external login providers in the backoffice.
Declaration
public BackOfficeExternalLoginsBuilder(IServiceCollection services)
Parameters
| Type | Name | Description |
|---|---|---|
| IServiceCollection | services | The Microsoft.Extensions.DependencyInjection.IServiceCollection to which external login services will be added. |
Methods
View SourceAddBackOfficeLogin(Action<BackOfficeAuthenticationBuilder>, Action<BackOfficeExternalLoginProviderOptions>?)
Add a back office login provider with options
Declaration
public BackOfficeExternalLoginsBuilder AddBackOfficeLogin(Action<BackOfficeAuthenticationBuilder> build, Action<BackOfficeExternalLoginProviderOptions>? loginProviderOptions = null)
Parameters
| Type | Name | Description |
|---|---|---|
| Action<BackOfficeAuthenticationBuilder> | build | The builder action to configure the authentication scheme. |
| Action<BackOfficeExternalLoginProviderOptions> | loginProviderOptions | Optional configuration for the login provider. |
Returns
| Type | Description |
|---|---|
| BackOfficeExternalLoginsBuilder | The builder for chaining. |