using Microsoft.Extensions.DependencyInjection; namespace Umbraco.Cms.Api.Management.Security; /// /// Used to add back office login providers /// public class BackOfficeExternalLoginsBuilder { private readonly IServiceCollection _services; public BackOfficeExternalLoginsBuilder(IServiceCollection services) => _services = services; /// /// Add a back office login provider with options /// /// /// /// public BackOfficeExternalLoginsBuilder AddBackOfficeLogin( Action build, Action? loginProviderOptions = null) { build(new BackOfficeAuthenticationBuilder(_services, loginProviderOptions)); return this; } }