From 3c7e0037c76e0a8b75cfb534914ca97e804f42a0 Mon Sep 17 00:00:00 2001 From: wzh425 Date: Fri, 7 Jun 2024 15:29:44 +0800 Subject: [PATCH 1/3] feat: grant type add phone number --- .../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), From adc2e036a5ff29c72f9289fef39c4b6821bff232 Mon Sep 17 00:00:00 2001 From: wzh425 Date: Wed, 12 Jun 2024 14:23:50 +0800 Subject: [PATCH 2/3] reactor : Restore GrantType --- .../Constans/GrantType.cs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) 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 5cb01b368..bf12f315e 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("LocalPhone")] + [Description("Phone")] public const string LOCAL_PHONE = "local_phone"; [Description("ThirdPartyIdp")] @@ -38,9 +38,6 @@ 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), From c8ac7d37da5a40659f8c63ef1706d024b3992ca1 Mon Sep 17 00:00:00 2001 From: wzh425 Date: Wed, 12 Jun 2024 14:27:57 +0800 Subject: [PATCH 3/3] reactor : Restore GrantType --- .../Constans/GrantType.cs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) 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 5cb01b368..bf12f315e 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("LocalPhone")] + [Description("Phone")] public const string LOCAL_PHONE = "local_phone"; [Description("ThirdPartyIdp")] @@ -38,9 +38,6 @@ 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),