1 parent
a777e04e83
commit
4c99666b75
11 files changed
+10
-192
No files matched your search
@@ -15,11 +15,7 @@ namespace WalkingTec.Mvvm.Core.Extensions
|
||||
public static ClaimsPrincipal CreatePrincipal(this LoginUserInfo self)
|
||||
{
|
||||
if (string.IsNullOrEmpty(self.ITCode)) throw new ArgumentException("Id is mandatory", nameof(self.ITCode));
|
||||
var claims = new List<Claim>
|
||||
{
|
||||
new Claim(AuthConstants.JwtClaimTypes.Subject, self.ITCode) ,
|
||||
new Claim("SessionId", Guid.NewGuid().ToString())
|
||||
};
|
||||
var claims = new List<Claim> { new Claim(AuthConstants.JwtClaimTypes.Subject, self.ITCode) };
|
||||
|
||||
if (!string.IsNullOrEmpty(self.Name))
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user