Search Results for

    Show / Hide Table of Contents
    View Source

    Class UmbExternalLoginController

    Inheritance
    object
    ControllerBase
    Controller
    PluginController
    SurfaceController
    Namespace: Umbraco.Cms.Web.Website.Controllers
    Assembly: Umbraco.Web.Website.dll
    Syntax
    [UmbracoMemberAuthorize]
    public class UmbExternalLoginController : SurfaceController, IDiscoverable

    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
    [HttpPost]
    [ValidateAntiForgeryToken]
    public Task<IActionResult> Disassociate(string provider, string providerKey, string? returnUrl = null)
    Parameters
    Type Name Description
    string provider
    string providerKey
    string returnUrl
    Returns
    Type Description
    Task<IActionResult>
    View Source

    ExternalLinkLoginCallback(string)

    Declaration
    [HttpGet]
    public Task<IActionResult> ExternalLinkLoginCallback(string returnUrl)
    Parameters
    Type Name Description
    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
    [HttpPost]
    [AllowAnonymous]
    [ValidateAntiForgeryToken]
    public ActionResult ExternalLogin(string provider, string? returnUrl = null)
    Parameters
    Type Name Description
    string provider
    string returnUrl
    Returns
    Type Description
    ActionResult
    View Source

    ExternalLoginCallback(string)

    Endpoint used my the login provider to call back to our solution.

    Declaration
    [HttpGet]
    [AllowAnonymous]
    public Task<IActionResult> ExternalLoginCallback(string returnUrl)
    Parameters
    Type Name Description
    string returnUrl
    Returns
    Type Description
    Task<IActionResult>
    View Source

    LinkLogin(string, string?)

    Declaration
    [HttpPost]
    [ValidateAntiForgeryToken]
    public IActionResult LinkLogin(string provider, string? returnUrl = null)
    Parameters
    Type Name Description
    string provider
    string returnUrl
    Returns
    Type Description
    IActionResult
    • Edit this page
    • View Source
    In this article
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX