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