This commit is contained in:
Eugenio Chiodo committed 2022-02-14 01:51:37 +01:00
1 parent 6d7138479e
commit ba4a4b14c8
87 files changed
+22561 -294

No files matched your search

+20
View File
@@ -0,0 +1,20 @@
using System.Security.Principal;
namespace decePubClient.Models
{
public class CustomPrincipal : CustomIPrincipal
{
public string UserId { get; set; }
public string UserName { get; set; }
public string DisplayName { get; set; }
public string PictureUrl { get; set; }
public string ProfileUrl { get; set; }
public bool IsAdmin { get; set; } = false;
public IIdentity Identity { get; }
public CustomPrincipal(string userName, string authType) =>
Identity = new GenericIdentity(userName, authType);
public bool IsInRole(string role) => false;
}
}