Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using Nancy.Security;
- using System;
- using System.Collections.Generic;
- using System.ComponentModel.DataAnnotations;
- using System.ComponentModel.DataAnnotations.Schema;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- namespace Authentication
- {
- public class AuthenticatedUser : IUserIdentity
- {
- [Column("id")]
- [Key]
- public int Id { get; set; }
- [Column("guid")]
- public Guid Identifier { get; set; }
- [Column("username")]
- public string UserName { get; set; }
- [Column("email")]
- [DataType(DataType.EmailAddress)]
- public string Email { get; set; }
- [Column("password")]
- public string Password { get; set; }
- [Column("claims")]
- public string ClaimSource { get; set; }
- [NotMapped]
- public IEnumerable<string> Claims
- {
- get
- {
- return ClaimSource.Split(',');
- }
- set
- {
- ClaimSource = String.Join(",", value);
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement