Search Results for

    Show / Hide Table of Contents
    View Source

    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 Source

    BackOfficeExternalLoginProviders(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 Source

    GetAsync(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>
    View Source

    GetBackOfficeProvidersAsync()

    Get all registered BackOfficeExternalLoginProvider

    Declaration
    public Task<IEnumerable<BackOfficeExternaLoginProviderScheme>> GetBackOfficeProvidersAsync()
    Returns
    Type Description
    Task<IEnumerable<BackOfficeExternaLoginProviderScheme>>
    View Source

    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
    View Source

    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()
    • Edit this page
    • View Source
    In this article
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX