From c9c0933c4183638a0d7bb1d802aedf404bdd26fa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?K=C3=A9vin=20Chalet?= Date: Wed, 30 Nov 2022 16:32:05 +0100 Subject: [PATCH] Add "implicit" to the list of grant types supported by Google --- .../OpenIddictClientWebIntegrationHandlers.Discovery.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/OpenIddict.Client.WebIntegration/OpenIddictClientWebIntegrationHandlers.Discovery.cs b/src/OpenIddict.Client.WebIntegration/OpenIddictClientWebIntegrationHandlers.Discovery.cs index 1a3afd7c..6c9de21f 100644 --- a/src/OpenIddict.Client.WebIntegration/OpenIddictClientWebIntegrationHandlers.Discovery.cs +++ b/src/OpenIddict.Client.WebIntegration/OpenIddictClientWebIntegrationHandlers.Discovery.cs @@ -105,6 +105,11 @@ public static partial class OpenIddictClientWebIntegrationHandlers context.Configuration.GrantTypesSupported.Add(GrantTypes.RefreshToken); } + else if (context.Registration.ProviderName is Providers.Google) + { + context.Configuration.GrantTypesSupported.Add(GrantTypes.Implicit); + } + return default; } }