View Source
Interface ITwoFactorProvider
Assembly: Umbraco.Core.dll
Syntax
public interface ITwoFactorProvider
Properties
View Source
ProviderName
A unique name for this provider.
Declaration
string ProviderName { get; }
Property Value
Methods
View Source
GetSetupDataAsync(Guid, string)
Declaration
Task<ISetupTwoFactorModel> GetSetupDataAsync(Guid userOrMemberKey, string secret)
Parameters
| Type |
Name |
Description |
| Guid |
userOrMemberKey |
|
| string |
secret |
|
Returns
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 |
| string |
secret |
|
| string |
token |
|
Returns
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 |
| string |
secret |
|
| string |
token |
|
Returns