View Source
Class UmbExternalLoginController
Inheritance
System.Object
Assembly: Umbraco.Web.Website.dll
Syntax
public class UmbExternalLoginController : SurfaceController
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 |
ILogger<UmbExternalLoginController> |
logger |
|
IUmbracoContextAccessor |
umbracoContextAccessor |
|
IUmbracoDatabaseFactory |
databaseFactory |
|
ServiceContext |
services |
|
AppCaches |
appCaches |
|
IProfilingLogger |
profilingLogger |
|
IPublishedUrlProvider |
publishedUrlProvider |
|
IMemberSignInManager |
memberSignInManager |
|
IMemberManager |
memberManager |
|
ITwoFactorLoginService |
twoFactorLoginService |
|
IOptions<SecuritySettings> |
securitySettings |
|
Methods
View Source
Disassociate(String, String, String)
Declaration
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<IActionResult> |
|
View Source
ExternalLinkLoginCallback(String)
Declaration
public async Task<IActionResult> ExternalLinkLoginCallback(string returnUrl)
Parameters
Type |
Name |
Description |
System.String |
returnUrl |
|
Returns
Type |
Description |
Task<IActionResult> |
|
View Source
ExternalLogin(String, String)
Endpoint used to redirect to a specific login provider. This endpoint is used from the Login snippet.
Declaration
public ActionResult ExternalLogin(string provider, string returnUrl = null)
Parameters
Type |
Name |
Description |
System.String |
provider |
|
System.String |
returnUrl |
|
Returns
Type |
Description |
ActionResult |
|
View Source
ExternalLoginCallback(String)
Endpoint used my the login provider to call back to our solution.
Declaration
public async Task<IActionResult> ExternalLoginCallback(string returnUrl)
Parameters
Type |
Name |
Description |
System.String |
returnUrl |
|
Returns
Type |
Description |
Task<IActionResult> |
|
View Source
LinkLogin(String, String)
Declaration
public IActionResult LinkLogin(string provider, string returnUrl = null)
Parameters
Type |
Name |
Description |
System.String |
provider |
|
System.String |
returnUrl |
|
Returns
Type |
Description |
IActionResult |
|