Table of Contents

Class BackOfficeAuthenticationBuilder

Namespace
Umbraco.Cms.Web.BackOffice.Security
Assembly
Umbraco.Web.BackOffice.dll

Custom AuthenticationBuilder used to associate external logins with umbraco external login options

public class BackOfficeAuthenticationBuilder : AuthenticationBuilder
Inheritance
BackOfficeAuthenticationBuilder
Inherited Members

Constructors

BackOfficeAuthenticationBuilder(IServiceCollection, Action<BackOfficeExternalLoginProviderOptions>?)

public BackOfficeAuthenticationBuilder(IServiceCollection services, Action<BackOfficeExternalLoginProviderOptions>? loginProviderOptions = null)

Parameters

services IServiceCollection
loginProviderOptions Action<BackOfficeExternalLoginProviderOptions>

Methods

AddRemoteScheme<TOptions, THandler>(string, string?, Action<TOptions>?)

Overridden to track the final authenticationScheme being registered for the external login

public override AuthenticationBuilder AddRemoteScheme<TOptions, THandler>(string authenticationScheme, string? displayName, Action<TOptions>? configureOptions) where TOptions : RemoteAuthenticationOptions, new() where THandler : RemoteAuthenticationHandler<TOptions>

Parameters

authenticationScheme string
displayName string
configureOptions Action<TOptions>

Returns

AuthenticationBuilder

Type Parameters

TOptions
THandler

SchemeForBackOffice(string)

public string? SchemeForBackOffice(string scheme)

Parameters

scheme string

Returns

string