Class BackOfficeExternalLoginProviders
Supports all classes in the .NET class hierarchy and provides low-level services to derived classes. This is the ultimate base class of all .NET classes; it is the root of the type hierarchy.
Inheritance
object
Namespace: Umbraco.Cms.Api.Management.Security
Assembly: Umbraco.Cms.Api.Management.dll
Syntax
public class BackOfficeExternalLoginProviders : IBackOfficeExternalLoginProviders, ILocalLoginSettingProvider
Constructors
View SourceBackOfficeExternalLoginProviders(IEnumerable<BackOfficeExternalLoginProvider>, IAuthenticationSchemeProvider, IKeyValueService, IExternalLoginWithKeyService, ILogger<BackOfficeExternalLoginProviders>)
Declaration
public BackOfficeExternalLoginProviders(IEnumerable<BackOfficeExternalLoginProvider> externalLogins, IAuthenticationSchemeProvider authenticationSchemeProvider, IKeyValueService keyValueService, IExternalLoginWithKeyService externalLoginWithKeyService, ILogger<BackOfficeExternalLoginProviders> logger)
Parameters
| Type | Name | Description |
|---|---|---|
| IEnumerable<BackOfficeExternalLoginProvider> | externalLogins | |
| IAuthenticationSchemeProvider | authenticationSchemeProvider | |
| IKeyValueService | keyValueService | |
| IExternalLoginWithKeyService | externalLoginWithKeyService | |
| ILogger<BackOfficeExternalLoginProviders> | logger |
Methods
View SourceGetAsync(string)
Get the BackOfficeExternalLoginProvider for the specified scheme
Declaration
public Task<BackOfficeExternaLoginProviderScheme?> GetAsync(string authenticationType)
Parameters
| Type | Name | Description |
|---|---|---|
| string | authenticationType |
Returns
| Type | Description |
|---|---|
| Task<BackOfficeExternaLoginProviderScheme> |
GetBackOfficeProvidersAsync()
Get all registered BackOfficeExternalLoginProvider
Declaration
public Task<IEnumerable<BackOfficeExternaLoginProviderScheme>> GetBackOfficeProvidersAsync()
Returns
| Type | Description |
|---|---|
| Task<IEnumerable<BackOfficeExternaLoginProviderScheme>> |
HasDenyLocalLogin()
Returns true if there is any external provider that has the Deny Local Login option configured
Declaration
public bool HasDenyLocalLogin()
Returns
| Type | Description |
|---|---|
| bool |
InvalidateSessionsIfExternalLoginProvidersChanged()
Used during startup to see if the configured external login providers is different from the persisted information. If they are different, this will invalidate backoffice sessions and clear external logins for removed providers if the external login provider setup has changed.
Declaration
public void InvalidateSessionsIfExternalLoginProvidersChanged()