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);