From 96443c3c3bf396e9b6dc1b76ebb28dcc9291c8c0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?K=C3=A9vin=20Chalet?= Date: Sat, 24 Feb 2024 10:37:46 +0100 Subject: [PATCH] Override PayPal's revocation endpoint when the sandbox environment is used --- .../OpenIddictClientWebIntegrationHandlers.Discovery.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/OpenIddict.Client.WebIntegration/OpenIddictClientWebIntegrationHandlers.Discovery.cs b/src/OpenIddict.Client.WebIntegration/OpenIddictClientWebIntegrationHandlers.Discovery.cs index 6a9d37b7..c28c4d69 100644 --- a/src/OpenIddict.Client.WebIntegration/OpenIddictClientWebIntegrationHandlers.Discovery.cs +++ b/src/OpenIddict.Client.WebIntegration/OpenIddictClientWebIntegrationHandlers.Discovery.cs @@ -394,6 +394,8 @@ public static partial class OpenIddictClientWebIntegrationHandlers new Uri("https://www.sandbox.paypal.com/signin/authorize", UriKind.Absolute); context.Configuration.JwksUri = new Uri("https://api-m.sandbox.paypal.com/v1/oauth2/certs", UriKind.Absolute); + context.Configuration.RevocationEndpoint = + new Uri("https://api-m.sandbox.paypal.com/v1/oauth2/revoke", UriKind.Absolute); context.Configuration.TokenEndpoint = new Uri("https://api-m.sandbox.paypal.com/v1/oauth2/token", UriKind.Absolute); context.Configuration.UserinfoEndpoint =