View Source
Class UmbTwoFactorLoginController
Inheritance
System.Object
Assembly: Umbraco.Web.Website.dll
Syntax
public class UmbTwoFactorLoginController : SurfaceController
Constructors
View Source
UmbTwoFactorLoginController(ILogger<UmbTwoFactorLoginController>, IUmbracoContextAccessor, IUmbracoDatabaseFactory, ServiceContext, AppCaches, IProfilingLogger, IPublishedUrlProvider, IMemberSignInManager, IMemberManager, ITwoFactorLoginService)
Declaration
public UmbTwoFactorLoginController(ILogger<UmbTwoFactorLoginController> logger, IUmbracoContextAccessor umbracoContextAccessor, IUmbracoDatabaseFactory databaseFactory, ServiceContext services, AppCaches appCaches, IProfilingLogger profilingLogger, IPublishedUrlProvider publishedUrlProvider, IMemberSignInManager memberSignInManager, IMemberManager memberManager, ITwoFactorLoginService twoFactorLoginService)
Parameters
Type |
Name |
Description |
ILogger<UmbTwoFactorLoginController> |
logger |
|
IUmbracoContextAccessor |
umbracoContextAccessor |
|
IUmbracoDatabaseFactory |
databaseFactory |
|
ServiceContext |
services |
|
AppCaches |
appCaches |
|
IProfilingLogger |
profilingLogger |
|
IPublishedUrlProvider |
publishedUrlProvider |
|
IMemberSignInManager |
memberSignInManager |
|
IMemberManager |
memberManager |
|
ITwoFactorLoginService |
twoFactorLoginService |
|
Methods
View Source
Disable(String, String)
Declaration
public async Task<IActionResult> Disable(string providerName, string returnUrl = null)
Parameters
Type |
Name |
Description |
System.String |
providerName |
|
System.String |
returnUrl |
|
Returns
Type |
Description |
Task<IActionResult> |
|
View Source
Get2FAProviders()
Used to retrieve the 2FA providers for code submission
Declaration
public async Task<ActionResult<IEnumerable<string>>> Get2FAProviders()
Returns
Type |
Description |
Task<ActionResult<IEnumerable<System.String>>> |
|
View Source
ValidateAndSaveSetup(String, String, String, String)
Declaration
public async Task<IActionResult> ValidateAndSaveSetup(string providerName, string secret, string code, string returnUrl = null)
Parameters
Type |
Name |
Description |
System.String |
providerName |
|
System.String |
secret |
|
System.String |
code |
|
System.String |
returnUrl |
|
Returns
Type |
Description |
Task<IActionResult> |
|
View Source
Verify2FACode(Verify2FACodeModel, String)
Declaration
public async Task<IActionResult> Verify2FACode(Verify2FACodeModel model, string returnUrl = null)
Parameters
Type |
Name |
Description |
Verify2FACodeModel |
model |
|
System.String |
returnUrl |
|
Returns
Type |
Description |
Task<IActionResult> |
|