Compare commits
2
Commits
d7c80f2532
...
master
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
efe4c39ab8 | ||
|
|
6b5f498511 |
@@ -1,12 +0,0 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace xIdentityModels.Dtos
|
||||
{
|
||||
public class XPolicyEvaluationResultDto
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
@@ -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));
|
||||
}
|
||||
}
|
||||
|
||||
//
|
||||
|
||||
Reference in New Issue
Block a user