-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathIdentityUserClaim.cs
More file actions
38 lines (34 loc) · 1.13 KB
/
IdentityUserClaim.cs
File metadata and controls
38 lines (34 loc) · 1.13 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#region License and copyright notice
/*
* ASP.NET Identity provider for Telerik Data Access
*
* Copyright (c) Fredrik Schultz and Contributors
*
* This source is subject to the Microsoft Public License.
* See http://www.microsoft.com/opensource/licenses.mspx#Ms-PL.
* All other rights reserved.
*
* THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND,
* EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED
* WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE.
*/
#endregion
namespace AspNet.Identity.DataAccess {
using System;
using System.Security.Claims;
public class IdentityUserClaim {
public Guid Id { get; set; }
public Guid UserId { get; set; }
public string ClaimType { get; set; }
public string ClaimValue { get; set; }
public IdentityUser User { get; set; }
public IdentityUserClaim() {
Id = Guid.NewGuid();
}
public IdentityUserClaim(Guid id, Claim claim) {
Id = id;
ClaimType = claim.Type;
ClaimValue = claim.Value;
}
}
}