Search Results for

    Show / Hide Table of Contents
    View Source

    Interface ITwoFactorProvider

    A two factor provider

    Namespace: Umbraco.Cms.Core.Security
    Assembly: Umbraco.Core.dll
    Syntax
    public interface ITwoFactorProvider

    Properties

    View Source

    ProviderName

    A unique name for this provider.

    Declaration
    string ProviderName { get; }
    Property Value
    Type Description
    System.String

    Methods

    View Source

    GetSetupDataAsync(Guid, String)

    Gets the data needed to setup this provider. Using the marker interface ISetupTwoFactorModel.

    Declaration
    Task<ISetupTwoFactorModel> GetSetupDataAsync(Guid userOrMemberKey, string secret)
    Parameters
    Type Name Description
    Guid userOrMemberKey
    System.String secret
    Returns
    Type Description
    Task<ISetupTwoFactorModel>
    View Source

    ValidateTwoFactorPIN(String, String)

    Validates the 2FA login token for the user identified by the supplied secret.

    Declaration
    bool ValidateTwoFactorPIN(string secret, string token)
    Parameters
    Type Name Description
    System.String secret
    System.String token
    Returns
    Type Description
    System.Boolean
    View Source

    ValidateTwoFactorSetup(String, String)

    Validates the 2FA setup token for the user identified by the supplied secret.

    Declaration
    bool ValidateTwoFactorSetup(string secret, string token)
    Parameters
    Type Name Description
    System.String secret
    System.String token
    Returns
    Type Description
    System.Boolean
    Remarks

    Called to confirm the setup of two factor on the user.

    • Improve this Doc
    • View Source
    In This Article
    • Properties
      • ProviderName
    • Methods
      • GetSetupDataAsync(Guid, String)
      • ValidateTwoFactorPIN(String, String)
      • ValidateTwoFactorSetup(String, String)
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX