Table of Contents

Class ExternalLoginModel

Namespace
Fdyay.IdentityServer.UI.Pages.Account
Assembly
Fdyay.IdentityServer.UI.dll

The external sign-in page: challenges an upstream provider, then signs its user in here on the way back.

[AllowAnonymous]
public class ExternalLoginModel : PageModel, IAsyncPageFilter, IPageFilter, IFilterMetadata
Inheritance
ExternalLoginModel
Implements
Inherited Members

Constructors

ExternalLoginModel(IUserSignInService, IIdentityServerInteractionService, IEventService)

public ExternalLoginModel(IUserSignInService signIn, IIdentityServerInteractionService interaction, IEventService events)

Parameters

signIn IUserSignInService
interaction IIdentityServerInteractionService
events IEventService

Remarks

Signs in through IUserSignInService since 0.112.0, as the login page does.

Methods

OnGet(string, string?)

Challenges the external provider and returns the browser to it.

public IActionResult OnGet(string scheme, string? returnUrl)

Parameters

scheme string
returnUrl string

Returns

IActionResult

OnGetCallbackAsync()

Handles the return from the external provider: provisions/links and signs in locally.

public Task<IActionResult> OnGetCallbackAsync()

Returns

Task<IActionResult>

Remarks

The provider is the scheme item of the external sign-in's properties; since 0.178.0 an external identity with none is refused rather than placed by its own idp claim.