Browse Source

Add Twitch to the list of supported providers

pull/2160/head
Maxime BAUMANN 2 years ago
committed by GitHub
parent
commit
19b69d5349
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 2
      src/OpenIddict.Client.WebIntegration/OpenIddictClientWebIntegrationHandlers.Discovery.cs
  2. 12
      src/OpenIddict.Client.WebIntegration/OpenIddictClientWebIntegrationProviders.xml

2
src/OpenIddict.Client.WebIntegration/OpenIddictClientWebIntegrationHandlers.Discovery.cs

@ -132,7 +132,7 @@ public static partial class OpenIddictClientWebIntegrationHandlers
}
else if (context.Registration.ProviderType is
ProviderTypes.Cognito or ProviderTypes.EpicGames or ProviderTypes.Salesforce)
ProviderTypes.Cognito or ProviderTypes.EpicGames or ProviderTypes.Salesforce or ProviderTypes.Twitch)
{
context.Configuration.GrantTypesSupported.Add(GrantTypes.AuthorizationCode);
context.Configuration.GrantTypesSupported.Add(GrantTypes.ClientCredentials);

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

@ -1867,6 +1867,18 @@
</Environment>
</Provider>
<!--
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
█▄▄ ▄▄██ ███ █▄ ▄█▄▄ ▄▄██ ▄▄▀██ ██ ██
███ ████ █ █ ██ ████ ████ █████ ▄▄ ██
███ ████▄▀▄▀▄█▀ ▀███ ████ ▀▀▄██ ██ ██
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
-->
<Provider Name="Twitch" Id="56f0d9d9-fe08-43b1-8b12-a29aa2aedefd" Documentation="https://dev.twitch.tv/docs/authentication">
<Environment Issuer="https://id.twitch.tv/oauth2" />
</Provider>
<!--
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
█▄▄ ▄▄██ ███ █▄ ▄█▄▄ ▄▄█▄▄ ▄▄██ ▄▄▄██ ▄▄▀██

Loading…
Cancel
Save