All checks were successful
Build & Deploy Leave Service / build (push) Successful in 1m49s
39 lines
1.5 KiB
C#
39 lines
1.5 KiB
C#
namespace BMA.EHR.Domain.Common
|
|
{
|
|
public class TokenUserInfo
|
|
{
|
|
// Existing properties
|
|
public string KeycloakId { get; set; } = string.Empty;
|
|
public string? PreferredUsername { get; set; }
|
|
public string? GivenName { get; set; }
|
|
public string? FamilyName { get; set; }
|
|
|
|
// New properties to add
|
|
public string? EmpType { get; set; }
|
|
public Guid? OrgChild1DnaId { get; set; }
|
|
public Guid? OrgChild2DnaId { get; set; }
|
|
public Guid? OrgChild3DnaId { get; set; }
|
|
public Guid? OrgChild4DnaId { get; set; }
|
|
public Guid? OrgRootDnaId { get; set; }
|
|
public Guid? ProfileId { get; set; }
|
|
public string? Prefix { get; set; }
|
|
public string? Name { get; set; }
|
|
}
|
|
|
|
// Claim type constants
|
|
public static class BmaClaimTypes
|
|
{
|
|
public const string EmpType = "empType";
|
|
public const string OrgChild1DnaId = "orgChild1DnaId";
|
|
public const string OrgChild2DnaId = "orgChild2DnaId";
|
|
public const string OrgChild3DnaId = "orgChild3DnaId";
|
|
public const string OrgChild4DnaId = "orgChild4DnaId";
|
|
public const string OrgRootDnaId = "orgRootDnaId";
|
|
public const string ProfileId = "profileId";
|
|
public const string Prefix = "prefix";
|
|
public const string Name = "name";
|
|
public const string GivenName = "given_name";
|
|
public const string FamilyName = "family_name";
|
|
public const string PreferredUsername = "preferred_username";
|
|
}
|
|
}
|