Browse Source

Add refresh_token to the list of grant types supported by Twitter

pull/1599/head
Kévin Chalet 3 years ago
parent
commit
e3b4a3e880
  1. 3
      sandbox/OpenIddict.Sandbox.AspNetCore.Client/Startup.cs
  2. 3
      src/OpenIddict.Client.WebIntegration/OpenIddictClientWebIntegrationProviders.xml

3
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");
});
});

3
src/OpenIddict.Client.WebIntegration/OpenIddictClientWebIntegrationProviders.xml

@ -168,6 +168,9 @@
UserinfoEndpoint="https://api.twitter.com/2/users/me">
<CodeChallengeMethod Value="S256" />
<GrantType Value="authorization_code" />
<GrantType Value="refresh_token" />
<TokenEndpointAuthMethod Value="client_secret_basic" />
</Configuration>

Loading…
Cancel
Save