Class IdentityUserToken
Namespace: Umbraco.Cms.Core.Security
Assembly: Umbraco.Core.dll
Syntax
public class IdentityUserToken : EntityBase, IRememberBeingDirty, ICanBeDirty, IIdentityUserToken, IEntity, IDeepCloneable
Constructors
View SourceIdentityUserToken(int, string?, string?, string?, string, DateTime)
Initializes a new instance of the IdentityUserToken class.
Declaration
public IdentityUserToken(int id, string? loginProvider, string? name, string? value, string userId, DateTime createDate)
Parameters
| Type | Name | Description |
|---|---|---|
| int | id | |
| string | loginProvider | |
| string | name | |
| string | value | |
| string | userId | |
| DateTime | createDate |
IdentityUserToken(string, string?, string?, string?)
Initializes a new instance of the IdentityUserToken class.
Declaration
public IdentityUserToken(string loginProvider, string? name, string? value, string? userId)
Parameters
| Type | Name | Description |
|---|---|---|
| string | loginProvider | |
| string | name | |
| string | value | |
| 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 |
Name
Gets or sets the token name
Declaration
public string Name { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
UserId
Gets or sets user Id for the user who owns this token
Declaration
public string? UserId { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
Value
Gets or set the token value
Declaration
public string Value { get; set; }
Property Value
| Type | Description |
|---|---|
| string |