From 7e46aad1f5a6a589fbf4163832236a9b744ae95c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?K=C3=A9vin=20Chalet?= Date: Tue, 7 Mar 2023 19:24:49 +0100 Subject: [PATCH] Add Asana to the list of supported providers --- ...enIddictClientWebIntegrationHandlers.Discovery.cs | 2 +- .../OpenIddictClientWebIntegrationHandlers.cs | 3 ++- .../OpenIddictClientWebIntegrationProviders.xml | 12 ++++++++++++ 3 files changed, 15 insertions(+), 2 deletions(-) diff --git a/src/OpenIddict.Client.WebIntegration/OpenIddictClientWebIntegrationHandlers.Discovery.cs b/src/OpenIddict.Client.WebIntegration/OpenIddictClientWebIntegrationHandlers.Discovery.cs index 1627e5cb..53affd98 100644 --- a/src/OpenIddict.Client.WebIntegration/OpenIddictClientWebIntegrationHandlers.Discovery.cs +++ b/src/OpenIddict.Client.WebIntegration/OpenIddictClientWebIntegrationHandlers.Discovery.cs @@ -110,7 +110,7 @@ public static partial class OpenIddictClientWebIntegrationHandlers context.Configuration.GrantTypesSupported.Add(GrantTypes.Implicit); } - else if (context.Registration.ProviderName is Providers.Slack) + else if (context.Registration.ProviderName is Providers.Asana or Providers.Slack) { context.Configuration.GrantTypesSupported.Add(GrantTypes.RefreshToken); } diff --git a/src/OpenIddict.Client.WebIntegration/OpenIddictClientWebIntegrationHandlers.cs b/src/OpenIddict.Client.WebIntegration/OpenIddictClientWebIntegrationHandlers.cs index 451b90ae..ce95ec24 100644 --- a/src/OpenIddict.Client.WebIntegration/OpenIddictClientWebIntegrationHandlers.cs +++ b/src/OpenIddict.Client.WebIntegration/OpenIddictClientWebIntegrationHandlers.cs @@ -388,7 +388,8 @@ public static partial class OpenIddictClientWebIntegrationHandlers context.DisableBackchannelIdentityTokenNonceValidation = context.Registration.ProviderName switch { - Providers.Dropbox => true, // Dropbox doesn't include the nonce in the identity tokens. + // These providers don't include the nonce in their identity tokens: + Providers.Asana or Providers.Dropbox => true, _ => context.DisableBackchannelIdentityTokenNonceValidation }; diff --git a/src/OpenIddict.Client.WebIntegration/OpenIddictClientWebIntegrationProviders.xml b/src/OpenIddict.Client.WebIntegration/OpenIddictClientWebIntegrationProviders.xml index daa7e5d7..acb9c397 100644 --- a/src/OpenIddict.Client.WebIntegration/OpenIddictClientWebIntegrationProviders.xml +++ b/src/OpenIddict.Client.WebIntegration/OpenIddictClientWebIntegrationProviders.xml @@ -74,6 +74,18 @@ Description="The team ID associated with the developer account" /> + + + + + +