View Source
Interface IMemberTwoFactorLoginService
A member specific Two factor service, that ensures the member exists before doing the job.
Assembly: Umbraco.Core.dll
Syntax
public interface IMemberTwoFactorLoginService
Methods
View Source
DisableAsync(Guid, String)
Disables a specific two factor provider on a specific member.
Declaration
Task<Attempt<TwoFactorOperationStatus>> DisableAsync(Guid memberKey, string providerName)
Parameters
| Type |
Name |
Description |
| Guid |
memberKey |
|
| System.String |
providerName |
|
Returns
View Source
DisableByCodeAsync(String, Guid, String)
Declaration
Task<Attempt<TwoFactorOperationStatus>> DisableByCodeAsync(string providerName, Guid memberKey, string code)
Parameters
| Type |
Name |
Description |
| System.String |
providerName |
|
| Guid |
memberKey |
|
| System.String |
code |
|
Returns
View Source
GetProviderNamesAsync(Guid)
Gets the two factor providers on a specific member.
Declaration
Task<Attempt<IEnumerable<UserTwoFactorProviderModel>, TwoFactorOperationStatus>> GetProviderNamesAsync(Guid memberKey)
Parameters
| Type |
Name |
Description |
| Guid |
memberKey |
|
Returns
View Source
GetSetupInfoAsync(Guid, String)
Declaration
Task<Attempt<ISetupTwoFactorModel, TwoFactorOperationStatus>> GetSetupInfoAsync(Guid memberKey, string providerName)
Parameters
| Type |
Name |
Description |
| Guid |
memberKey |
|
| System.String |
providerName |
|
Returns
View Source
ValidateAndSaveAsync(String, Guid, String, String)
Declaration
Task<Attempt<TwoFactorOperationStatus>> ValidateAndSaveAsync(string providerName, Guid memberKey, string modelSecret, string modelCode)
Parameters
| Type |
Name |
Description |
| System.String |
providerName |
|
| Guid |
memberKey |
|
| System.String |
modelSecret |
|
| System.String |
modelCode |
|
Returns