Class IdentityUserLogin
Entity type for a user's login (i.e. Facebook, Google)
Namespace: Umbraco.Cms.Core.Security
Assembly: Umbraco.Core.dll
Syntax
public class IdentityUserLogin : EntityBase, IIdentityUserLogin, IEntity, IDeepCloneable, IRememberBeingDirty, ICanBeDirty
Constructors
View SourceIdentityUserLogin(int, string, string, string, DateTime)
Initializes a new instance of the IdentityUserLogin class.
Declaration
public IdentityUserLogin(int id, string loginProvider, string providerKey, string userId, DateTime createDate)
Parameters
| Type | Name | Description |
|---|---|---|
| int | id | |
| string | loginProvider | |
| string | providerKey | |
| string | userId | |
| DateTime | createDate |
IdentityUserLogin(string, string, string)
Initializes a new instance of the IdentityUserLogin class.
Declaration
public IdentityUserLogin(string loginProvider, string providerKey, string userId)
Parameters
| Type | Name | Description |
|---|---|---|
| string | loginProvider | |
| string | providerKey | |
| string | userId |
Properties
View SourceLoginProvider
Gets or sets the login provider for the login (i.e. Facebook, Google)
Declaration
public string LoginProvider { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
ProviderKey
Gets or sets key representing the login for the provider
Declaration
public string ProviderKey { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
UserData
Gets or sets any arbitrary data for the user and external provider
Declaration
public string? UserData { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
UserId
Gets or sets user or member key (Guid) for the user/member who owns this login
Declaration
public string UserId { get; set; }
Property Value
| Type | Description |
|---|---|
| string |