ExternalLoginInfo Class

Summary

Represents login information, source and externally source principal for a user record

Syntax

public class ExternalLoginInfo : UserLoginInfo

GitHub

View on GitHub

class Microsoft.AspNet.Identity.ExternalLoginInfo

Constructors

ExternalLoginInfo(System.Security.Claims.ClaimsPrincipal, System.String, System.String, System.String)

Creates a new instance of Microsoft.AspNet.Identity.ExternalLoginInfo

Arguments:
  • externalPrincipal (System.Security.Claims.ClaimsPrincipal) – The System.Security.Claims.ClaimsPrincipal to associate with this login.
  • loginProvider (System.String) – The provider associated with this login information.
  • providerKey (System.String) – The unique identifier for this user provided by the login provider.
  • displayName (System.String) – The display name for this user provided by the login provider.
public ExternalLoginInfo(ClaimsPrincipal externalPrincipal, string loginProvider, string providerKey, string displayName)

Properties

ExternalPrincipal()

Gets or sets the System.Security.Claims.ClaimsPrincipal associated with this login.

Return type:System.Security.Claims.ClaimsPrincipal
public ClaimsPrincipal ExternalPrincipal { get; set; }