From e3b4a3e880cd9f84bf0f91c48ac1de5bf80d9c45 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?K=C3=A9vin=20Chalet?= Date: Sun, 27 Nov 2022 07:24:08 +0100 Subject: [PATCH] Add refresh_token to the list of grant types supported by Twitter --- sandbox/OpenIddict.Sandbox.AspNetCore.Client/Startup.cs | 3 ++- .../OpenIddictClientWebIntegrationProviders.xml | 3 +++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/sandbox/OpenIddict.Sandbox.AspNetCore.Client/Startup.cs b/sandbox/OpenIddict.Sandbox.AspNetCore.Client/Startup.cs index 9f0fa760..d9bcc474 100644 --- a/sandbox/OpenIddict.Sandbox.AspNetCore.Client/Startup.cs +++ b/sandbox/OpenIddict.Sandbox.AspNetCore.Client/Startup.cs @@ -150,7 +150,8 @@ public class Startup { options.SetClientId("bXgwc0U3N3A3YWNuaWVsdlRmRWE6MTpjaQ") .SetClientSecret("VcohOgBp-6yQCurngo4GAyKeZh0D6SUCCSjJgEo1uRzJarjIUS") - .SetRedirectUri("https://localhost:44381/callback/login/twitter"); + .SetRedirectUri("https://localhost:44381/callback/login/twitter") + .AddScopes("offline.access"); }); }); diff --git a/src/OpenIddict.Client.WebIntegration/OpenIddictClientWebIntegrationProviders.xml b/src/OpenIddict.Client.WebIntegration/OpenIddictClientWebIntegrationProviders.xml index f68218a5..1eec13c8 100644 --- a/src/OpenIddict.Client.WebIntegration/OpenIddictClientWebIntegrationProviders.xml +++ b/src/OpenIddict.Client.WebIntegration/OpenIddictClientWebIntegrationProviders.xml @@ -168,6 +168,9 @@ UserinfoEndpoint="https://api.twitter.com/2/users/me"> + + +