Skip to content

Commit a18433d

Browse files
authored
Add GitCode to the list of supported providers
1 parent b39547a commit a18433d

File tree

2 files changed

+30
-9
lines changed

2 files changed

+30
-9
lines changed

src/OpenIddict.Client.WebIntegration/OpenIddictClientWebIntegrationHandlers.cs

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1462,15 +1462,16 @@ ProviderTypes.ArcGisOnline or ProviderTypes.Trakt
14621462
ProviderTypes.Atlassian => (string?) context.UserInfoResponse?["account_id"],
14631463

14641464
// These providers return the user identifier as a custom "id" node:
1465-
ProviderTypes.Airtable or ProviderTypes.Basecamp or ProviderTypes.Box or
1466-
ProviderTypes.Dailymotion or ProviderTypes.Deezer or ProviderTypes.Discord or
1467-
ProviderTypes.Disqus or ProviderTypes.Facebook or ProviderTypes.Gitee or
1468-
ProviderTypes.GitHub or ProviderTypes.Harvest or ProviderTypes.Kook or
1469-
ProviderTypes.Kroger or ProviderTypes.Lichess or ProviderTypes.Mastodon or
1470-
ProviderTypes.Meetup or ProviderTypes.Nextcloud or ProviderTypes.Patreon or
1471-
ProviderTypes.Pipedrive or ProviderTypes.Reddit or ProviderTypes.Smartsheet or
1472-
ProviderTypes.Spotify or ProviderTypes.SubscribeStar or ProviderTypes.Todoist or
1473-
ProviderTypes.Twitter or ProviderTypes.Weibo or ProviderTypes.Zoom
1465+
ProviderTypes.Airtable or ProviderTypes.Basecamp or ProviderTypes.Box or
1466+
ProviderTypes.Dailymotion or ProviderTypes.Deezer or ProviderTypes.Discord or
1467+
ProviderTypes.Disqus or ProviderTypes.Facebook or ProviderTypes.GitCode or
1468+
ProviderTypes.Gitee or ProviderTypes.GitHub or ProviderTypes.Harvest or
1469+
ProviderTypes.Kook or ProviderTypes.Kroger or ProviderTypes.Lichess or
1470+
ProviderTypes.Mastodon or ProviderTypes.Meetup or ProviderTypes.Nextcloud or
1471+
ProviderTypes.Patreon or ProviderTypes.Pipedrive or ProviderTypes.Reddit or
1472+
ProviderTypes.Smartsheet or ProviderTypes.Spotify or ProviderTypes.SubscribeStar or
1473+
ProviderTypes.Todoist or ProviderTypes.Twitter or ProviderTypes.Weibo or
1474+
ProviderTypes.Zoom
14741475
=> (string?) context.UserInfoResponse?["id"],
14751476

14761477
// Bitbucket returns the user identifier as a custom "uuid" node:

src/OpenIddict.Client.WebIntegration/OpenIddictClientWebIntegrationProviders.xml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -713,6 +713,26 @@
713713
</Environment>
714714
</Provider>
715715

716+
<!--
717+
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
718+
██ ▄▄ █▄ ▄█▄▄ ▄▄██ ▄▄▀██ ▄▄▄ ██ ▄▄▀██ ▄▄▄██
719+
██ █▀▀██ ████ ████ █████ ███ ██ ██ ██ ▄▄▄██
720+
██ ▀▀▄█▀ ▀███ ████ ▀▀▄██ ▀▀▀ ██ ▀▀ ██ ▀▀▀██
721+
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
722+
-->
723+
724+
<Provider Name="GitCode" Id="70569d72-89b7-4db7-aa8a-3d10106c81a0"
725+
Documentation="https://docs.gitcode.com/en/docs/oauth/">
726+
<Environment Issuer="https://gitcode.com/">
727+
<Configuration AuthorizationEndpoint="https://gitcode.com/oauth/authorize"
728+
TokenEndpoint="https://gitcode.com/oauth/token"
729+
UserInfoEndpoint="https://api.gitcode.com/api/v5/user">
730+
<GrantType Value="authorization_code" />
731+
<GrantType Value="refresh_token" />
732+
</Configuration>
733+
</Environment>
734+
</Provider>
735+
716736
<!--
717737
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
718738
██ ▄▄ █▄ ▄█▄▄ ▄▄██ ▄▄▄██ ▄▄▄██

0 commit comments

Comments
 (0)