From 6264ea8343fe7d6e1edc9e9155e17196cd24f870 Mon Sep 17 00:00:00 2001 From: wzh425 Date: Fri, 7 Jun 2024 15:41:06 +0800 Subject: [PATCH] feat: grant type add phone number (#723) --- .../Constans/GrantType.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/BuildingBlocks/Authentication/OpenIdConnect/Masa.BuildingBlocks.Authentication.OpenIdConnect.Models/Constans/GrantType.cs b/src/BuildingBlocks/Authentication/OpenIdConnect/Masa.BuildingBlocks.Authentication.OpenIdConnect.Models/Constans/GrantType.cs index bf12f315e..5cb01b368 100644 --- a/src/BuildingBlocks/Authentication/OpenIdConnect/Masa.BuildingBlocks.Authentication.OpenIdConnect.Models/Constans/GrantType.cs +++ b/src/BuildingBlocks/Authentication/OpenIdConnect/Masa.BuildingBlocks.Authentication.OpenIdConnect.Models/Constans/GrantType.cs @@ -26,7 +26,7 @@ public static class GrantType [Description("PhoneCode")] public const string PHONE_CODE = "phone_code"; - [Description("Phone")] + [Description("LocalPhone")] public const string LOCAL_PHONE = "local_phone"; [Description("ThirdPartyIdp")] @@ -38,6 +38,9 @@ public static class GrantType [Description("Impersonation")] public const string IMPERSONATION = "impersonation"; + [Description("PhoneNumber")] + public const string PHONE_NUMBER = "phone_number"; + private static readonly List<(string, string)> _disallowCombinations = new List<(string, string)> { (IMPLICIT, AUTHORIZATION_CODE),