Browse Source
Add Twitch to the list of supported providers
pull/2160/head
Maxime BAUMANN
2 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with
13 additions and
1 deletions
-
src/OpenIddict.Client.WebIntegration/OpenIddictClientWebIntegrationHandlers.Discovery.cs
-
src/OpenIddict.Client.WebIntegration/OpenIddictClientWebIntegrationProviders.xml
|
|
|
@ -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); |
|
|
|
|
|
|
|
@ -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> |
|
|
|
|
|
|
|
<!-- |
|
|
|
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄ |
|
|
|
█▄▄ ▄▄██ ███ █▄ ▄█▄▄ ▄▄█▄▄ ▄▄██ ▄▄▄██ ▄▄▀██ |
|
|
|
|