Interface IBackOfficeExternalLoginProviders
Service to return BackOfficeExternalLoginProvider instances
Namespace: Umbraco.Cms.Api.Management.Security
Assembly: Umbraco.Cms.Api.Management.dll
Syntax
public interface IBackOfficeExternalLoginProviders
Methods
View SourceGetAsync(string)
Get the BackOfficeExternalLoginProvider for the specified scheme
Declaration
Task<BackOfficeExternaLoginProviderScheme?> GetAsync(string authenticationType)
Parameters
| Type | Name | Description |
|---|---|---|
| string | authenticationType | The authentication scheme name. |
Returns
| Type | Description |
|---|---|
| Task<BackOfficeExternaLoginProviderScheme> | The external login provider scheme, or null if not found. |
GetBackOfficeProvidersAsync()
Get all registered BackOfficeExternalLoginProvider
Declaration
Task<IEnumerable<BackOfficeExternaLoginProviderScheme>> GetBackOfficeProvidersAsync()
Returns
| Type | Description |
|---|---|
| Task<IEnumerable<BackOfficeExternaLoginProviderScheme>> | All registered back office external login provider schemes. |
HasDenyLocalLogin()
Returns true if there is any external provider that has the Deny Local Login option configured
Declaration
bool HasDenyLocalLogin()
Returns
| Type | Description |
|---|---|
| bool | True if any provider has deny local login configured. |
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
void InvalidateSessionsIfExternalLoginProvidersChanged()