View Source
Class UmbExternalLoginController
Inheritance
System.Object
Microsoft.AspNetCore.Mvc.ControllerBase
Microsoft.AspNetCore.Mvc.Controller
Assembly: Umbraco.Web.Website.dll
Syntax
[UmbracoMemberAuthorize]
public class UmbExternalLoginController : SurfaceController, IActionFilter, IAsyncActionFilter, IFilterMetadata, IDisposable
Constructors
View Source
UmbExternalLoginController(ILogger<UmbExternalLoginController>, IUmbracoContextAccessor, IUmbracoDatabaseFactory, ServiceContext, AppCaches, IProfilingLogger, IPublishedUrlProvider, IMemberSignInManager, IMemberManager, ITwoFactorLoginService, IOptions<SecuritySettings>)
Declaration
public UmbExternalLoginController(ILogger<UmbExternalLoginController> logger, IUmbracoContextAccessor umbracoContextAccessor, IUmbracoDatabaseFactory databaseFactory, ServiceContext services, AppCaches appCaches, IProfilingLogger profilingLogger, IPublishedUrlProvider publishedUrlProvider, IMemberSignInManager memberSignInManager, IMemberManager memberManager, ITwoFactorLoginService twoFactorLoginService, IOptions<SecuritySettings> securitySettings)
Parameters
Type |
Name |
Description |
Microsoft.Extensions.Logging.ILogger<UmbExternalLoginController> |
logger |
|
IUmbracoContextAccessor |
umbracoContextAccessor |
|
IUmbracoDatabaseFactory |
databaseFactory |
|
ServiceContext |
services |
|
AppCaches |
appCaches |
|
IProfilingLogger |
profilingLogger |
|
IPublishedUrlProvider |
publishedUrlProvider |
|
IMemberSignInManager |
memberSignInManager |
|
IMemberManager |
memberManager |
|
ITwoFactorLoginService |
twoFactorLoginService |
|
Microsoft.Extensions.Options.IOptions<SecuritySettings> |
securitySettings |
|
Methods
View Source
Disassociate(String, String, String)
Declaration
[HttpPost]
[ValidateAntiForgeryToken]
public async Task<IActionResult> Disassociate(string provider, string providerKey, string returnUrl = null)
Parameters
Type |
Name |
Description |
System.String |
provider |
|
System.String |
providerKey |
|
System.String |
returnUrl |
|
Returns
Type |
Description |
Task<Microsoft.AspNetCore.Mvc.IActionResult> |
|
View Source
ExternalLinkLoginCallback(String)
Declaration
[HttpGet]
public async Task<IActionResult> ExternalLinkLoginCallback(string returnUrl)
Parameters
Type |
Name |
Description |
System.String |
returnUrl |
|
Returns
Type |
Description |
Task<Microsoft.AspNetCore.Mvc.IActionResult> |
|
View Source
ExternalLogin(String, String)
Endpoint used to redirect to a specific login provider. This endpoint is used from the Login Macro snippet.
Declaration
[HttpPost]
[AllowAnonymous]
[ValidateAntiForgeryToken]
public ActionResult ExternalLogin(string provider, string returnUrl = null)
Parameters
Type |
Name |
Description |
System.String |
provider |
|
System.String |
returnUrl |
|
Returns
Type |
Description |
Microsoft.AspNetCore.Mvc.ActionResult |
|
View Source
ExternalLoginCallback(String)
Endpoint used my the login provider to call back to our solution.
Declaration
[HttpGet]
[AllowAnonymous]
public async Task<IActionResult> ExternalLoginCallback(string returnUrl)
Parameters
Type |
Name |
Description |
System.String |
returnUrl |
|
Returns
Type |
Description |
Task<Microsoft.AspNetCore.Mvc.IActionResult> |
|
View Source
LinkLogin(String, String)
Declaration
[HttpPost]
[ValidateAntiForgeryToken]
public IActionResult LinkLogin(string provider, string returnUrl = null)
Parameters
Type |
Name |
Description |
System.String |
provider |
|
System.String |
returnUrl |
|
Returns
Type |
Description |
Microsoft.AspNetCore.Mvc.IActionResult |
|