From d22b759e36168a1537244ff5cde0fa0c4185e60d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?K=C3=A9vin=20Chalet?= Date: Sun, 25 Jun 2023 04:54:01 +0200 Subject: [PATCH] Override the code challenge methods supported by the Autodesk provider --- .../OpenIddictClientWebIntegrationHandlers.Discovery.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/OpenIddict.Client.WebIntegration/OpenIddictClientWebIntegrationHandlers.Discovery.cs b/src/OpenIddict.Client.WebIntegration/OpenIddictClientWebIntegrationHandlers.Discovery.cs index 4c892ca7..a6d4b215 100644 --- a/src/OpenIddict.Client.WebIntegration/OpenIddictClientWebIntegrationHandlers.Discovery.cs +++ b/src/OpenIddict.Client.WebIntegration/OpenIddictClientWebIntegrationHandlers.Discovery.cs @@ -157,7 +157,7 @@ public static partial class OpenIddictClientWebIntegrationHandlers // always uses Proof Key for Code Exchange for these providers, the supported methods // are manually added to the list of supported code challenge methods by this handler. - if (context.Registration.ProviderType is ProviderTypes.Adobe or ProviderTypes.Microsoft) + if (context.Registration.ProviderType is ProviderTypes.Adobe or ProviderTypes.Autodesk or ProviderTypes.Microsoft) { context.Configuration.CodeChallengeMethodsSupported.Add(CodeChallengeMethods.Plain); context.Configuration.CodeChallengeMethodsSupported.Add(CodeChallengeMethods.Sha256);