View Source
Class UmbTwoFactorLoginController
Inheritance
System.Object
Microsoft.AspNetCore.Mvc.ControllerBase
Microsoft.AspNetCore.Mvc.Controller
Assembly: Umbraco.Web.Website.dll
Syntax
[UmbracoMemberAuthorize]
public class UmbTwoFactorLoginController : SurfaceController, IActionFilter, IAsyncActionFilter, IFilterMetadata, IDisposable, IDiscoverable
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
Methods
View Source
Disable(String, String)
Declaration
[HttpPost]
public async Task<IActionResult> Disable(string providerName, string returnUrl = null)
Parameters
| Type |
Name |
Description |
| System.String |
providerName |
|
| System.String |
returnUrl |
|
Returns
| Type |
Description |
| Task<Microsoft.AspNetCore.Mvc.IActionResult> |
|
View Source
Get2FAProviders()
Used to retrieve the 2FA providers for code submission
Declaration
[AllowAnonymous]
public async Task<ActionResult<IEnumerable<string>>> Get2FAProviders()
Returns
| Type |
Description |
| Task<Microsoft.AspNetCore.Mvc.ActionResult<IEnumerable<System.String>>> |
|
View Source
ValidateAndSaveSetup(String, String, String, String)
Declaration
[HttpPost]
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<Microsoft.AspNetCore.Mvc.IActionResult> |
|
View Source
Verify2FACode(Verify2FACodeModel, String)
Declaration
[AllowAnonymous]
public async Task<IActionResult> Verify2FACode(Verify2FACodeModel model, string returnUrl = null)
Parameters
Returns
| Type |
Description |
| Task<Microsoft.AspNetCore.Mvc.IActionResult> |
|