Merge remote-tracking branch 'origin/nugetmanager' into nugetmanager

This commit is contained in:
zhougf committed 2024-07-08 14:09:52 +08:00
commit d8aee3c32c
10 files changed
+189 -7

No files matched your search

@@ -15,7 +15,11 @@ 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) };
var claims = new List<Claim>
{
new Claim(AuthConstants.JwtClaimTypes.Subject, self.ITCode) ,
new Claim("SessionId", Guid.NewGuid().ToString())
};
if (!string.IsNullOrEmpty(self.Name))
{