diff --git a/src/Infrastructure/BotSharp.Abstraction/Users/IUserIdentity.cs b/src/Infrastructure/BotSharp.Abstraction/Users/IUserIdentity.cs index f42b7f25..1e54c44e 100644 --- a/src/Infrastructure/BotSharp.Abstraction/Users/IUserIdentity.cs +++ b/src/Infrastructure/BotSharp.Abstraction/Users/IUserIdentity.cs @@ -13,8 +13,6 @@ public interface IUserIdentity /// string UserLanguage { get; } string? Phone { get; } - string? AffiliateId { get; } - string? EmployeeId { get; } string Type { get; } string Role { get; } string? RegionCode { get; } diff --git a/src/Infrastructure/BotSharp.Core/Users/Services/UserIdentity.cs b/src/Infrastructure/BotSharp.Core/Users/Services/UserIdentity.cs index 965be261..5f062a6f 100644 --- a/src/Infrastructure/BotSharp.Core/Users/Services/UserIdentity.cs +++ b/src/Infrastructure/BotSharp.Core/Users/Services/UserIdentity.cs @@ -70,18 +70,15 @@ public class UserIdentity : IUserIdentity [JsonPropertyName("phone")] public string? Phone => _claims?.FirstOrDefault(x => x.Type == "phone")?.Value; - [JsonPropertyName("affiliateId")] - public string? AffiliateId => _claims?.FirstOrDefault(x => x.Type == "affiliateId")?.Value; - - [JsonPropertyName("employeeId")] - public string? EmployeeId => _claims?.FirstOrDefault(x => x.Type == "employeeId")?.Value; - [JsonPropertyName("type")] public string? Type => _claims?.FirstOrDefault(x => x.Type == "type")?.Value; [JsonPropertyName("role")] public string? Role => _claims?.FirstOrDefault(x => x.Type == ClaimTypes.Role)?.Value; - [JsonPropertyName("regionCode")] - public string? RegionCode => _claims?.FirstOrDefault(x => x.Type == "regionCode")?.Value; + /// + /// US, CA, etc. + /// + [JsonPropertyName("region_code")] + public string? RegionCode => _claims?.FirstOrDefault(x => x.Type == "region_code")?.Value; }