From 998fb69f7d587130f21ab59250462df846581d11 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?K=C3=A9vin=20Chalet?= Date: Tue, 7 May 2024 19:51:12 +0200 Subject: [PATCH] Add implicit to the list of grant types supported by the Microsoft and Auth0 providers --- .../OpenIddictClientWebIntegrationHandlers.Discovery.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/OpenIddict.Client.WebIntegration/OpenIddictClientWebIntegrationHandlers.Discovery.cs b/src/OpenIddict.Client.WebIntegration/OpenIddictClientWebIntegrationHandlers.Discovery.cs index 1ecaa124..c8bc495c 100644 --- a/src/OpenIddict.Client.WebIntegration/OpenIddictClientWebIntegrationHandlers.Discovery.cs +++ b/src/OpenIddict.Client.WebIntegration/OpenIddictClientWebIntegrationHandlers.Discovery.cs @@ -122,17 +122,17 @@ public static partial class OpenIddictClientWebIntegrationHandlers context.Configuration.GrantTypesSupported.Add(GrantTypes.RefreshToken); } - else if (context.Registration.ProviderType is ProviderTypes.Auth0) + else if (context.Registration.ProviderType is ProviderTypes.Auth0 or ProviderTypes.Microsoft) { context.Configuration.GrantTypesSupported.Add(GrantTypes.AuthorizationCode); context.Configuration.GrantTypesSupported.Add(GrantTypes.ClientCredentials); context.Configuration.GrantTypesSupported.Add(GrantTypes.DeviceCode); + context.Configuration.GrantTypesSupported.Add(GrantTypes.Implicit); context.Configuration.GrantTypesSupported.Add(GrantTypes.RefreshToken); } else if (context.Registration.ProviderType is - ProviderTypes.Cognito or ProviderTypes.EpicGames or - ProviderTypes.Microsoft or ProviderTypes.Salesforce) + ProviderTypes.Cognito or ProviderTypes.EpicGames or ProviderTypes.Salesforce) { context.Configuration.GrantTypesSupported.Add(GrantTypes.AuthorizationCode); context.Configuration.GrantTypesSupported.Add(GrantTypes.ClientCredentials);