Fix id property in user claims
This commit is contained in:
parent
0bd46f2594
commit
4cd89c6a83
@ -23,7 +23,7 @@ namespace Core.Thalos.BuildingBlocks
|
||||
/// <summary>
|
||||
/// Claim name for user's ID.
|
||||
/// </summary>
|
||||
public const string Id = "id";
|
||||
public const string Id = "_id";
|
||||
|
||||
/// <summary>
|
||||
/// Claim name for user's tenant name.
|
||||
|
||||
@ -87,7 +87,7 @@ namespace Core.Thalos.BuildingBlocks
|
||||
{
|
||||
|
||||
new Claim(Claims.Name, adapter?.User?.DisplayName ?? string.Empty),
|
||||
new Claim(Claims.GUID, adapter?.User?.Guid ?? string.Empty),
|
||||
new Claim(Claims.Id, adapter?.User?.Id ?? string.Empty),
|
||||
new Claim(Claims.Email, adapter?.User?.Email ?? string.Empty),
|
||||
new Claim(Claims.Tenant, adapter?.Tenant?.Name ?? string.Empty),
|
||||
new Claim(Claims.Tenant, adapter?.Tenant?.Id ?? string.Empty),
|
||||
|
||||
Loading…
Reference in New Issue
Block a user