Compare commits

...
2 Commits
Author SHA1 Message Date
saherelm efe4c39ab8 last ... 2026-11-28 22:15:19 +03:30
saherelm 6b5f498511 last ... 2026-11-16 23:11:46 +03:30
2 changed files with 6 additions and 13 deletions
-12
View File
@@ -1,12 +0,0 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace xIdentityModels.Dtos
{
public class XPolicyEvaluationResultDto
{
}
}
+6 -1
View File
@@ -522,7 +522,6 @@ namespace xIdentityModels.Extensions
result.Add(new(ClaimTypes.Name, source.OwnerId));
result.Add(new(XCustomClaims.UserId, source.OwnerId));
result.Add(new(JwtClaimTypes.Subject, source.OwnerId));
result.Add(new(XCustomClaims.Picture, source.Owner.Avatar));
result.Add(new(XCustomClaims.UserName, source.Owner.Username));
result.Add(new(XCustomClaims.LastName, source.Owner.Lastname));
result.Add(new(XCustomClaims.AuthType, XAuthorization.XApiKey));
@@ -538,6 +537,12 @@ namespace xIdentityModels.Extensions
result.Add(new(JwtClaimTypes.Scope, scope));
}
}
//
if (!source.Owner.Avatar.IsNullOrEmpty())
{
result.Add(new(XCustomClaims.Picture, source.Owner.Avatar));
}
}
//