ExternalLoginInfo Class¶
Represents login information, source and externally source principal for a user record
- Namespace
Microsoft.AspNetCore.Identity- Assemblies
- Microsoft.AspNetCore.Identity
Syntax¶
public class ExternalLoginInfo : UserLoginInfo
-
class
Microsoft.AspNetCore.Identity.ExternalLoginInfo
Constructors¶
-
ExternalLoginInfo(System.Security.Claims.ClaimsPrincipal, System.String, System.String, System.String)¶ Creates a new instance of
Microsoft.AspNetCore.Identity.ExternalLoginInfoArguments: - principal (System.Security.Claims.ClaimsPrincipal) – The
System.Security.Claims.ClaimsPrincipalto 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 principal, string loginProvider, string providerKey, string displayName)
- principal (System.Security.Claims.ClaimsPrincipal) – The
-
Properties¶
-
Microsoft.AspNetCore.Identity.ExternalLoginInfo.AuthenticationTokens¶ Return type: System.Collections.Generic.IEnumerable<Microsoft.AspNetCore.Authentication.AuthenticationToken> public IEnumerable<AuthenticationToken> AuthenticationTokens { get; set; }
-
Microsoft.AspNetCore.Identity.ExternalLoginInfo.Principal¶ Gets or sets the
System.Security.Claims.ClaimsPrincipalassociated with this login.Return type: System.Security.Claims.ClaimsPrincipal Returns: The System.Security.Claims.ClaimsPrincipalassociated with this login.public ClaimsPrincipal Principal { get; set; }
-