Skip to content

Add GitCode Provider#1020

Merged
martincostello merged 4 commits intoaspnet-contrib:devfrom
gehongyan:add-gitcode
Feb 20, 2025
Merged

Add GitCode Provider#1020
martincostello merged 4 commits intoaspnet-contrib:devfrom
gehongyan:add-gitcode

Conversation

@gehongyan
Copy link
Contributor

This pull request would like to add GitCode to the list of supported providers.


Docs

GitCode offers documentation in Chinese and English for the first and second editions. These versions pertain solely to the documentation and not to the API versions.


Hint

  • It appears that GitCode does not support setting the scopes through query strings; the configuration of scopes (App permissions) is instead managed within the OAuth app management on the official web.

Useful Screenshots

Texts in these screenshots are all auto-translated by Google Chrome

  • GitCode OAuth App Editing

image

  • Requesting Authentication

image

  • Authentication Result

image

Co-authored-by: Martin Costello <martin@martincostello.com>
@martincostello
Copy link
Member

As this PR is adding a new provider, can you also bump the minor version here please?

<MinorVersion>0</MinorVersion>

@gehongyan
Copy link
Contributor Author

As this PR is adding a new provider, can you also bump the minor version here please?

Sure, I've finished it.

Copy link
Member

@martincostello martincostello left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just some suggestions to the comment in the doc. Otherwise looks good.

Co-authored-by: Martin Costello <martin@martincostello.com>
@martincostello martincostello merged commit 8d73594 into aspnet-contrib:dev Feb 20, 2025
8 checks passed
@martincostello
Copy link
Member

Thanks again for your contribution - the new GitCode provider is now available from NuGet.org.

intellitect-bot pushed a commit to IntelliTect/EssentialCSharp.Web that referenced this pull request Feb 6, 2026
Updated
[AspNet.Security.OAuth.GitHub](git://github.com/aspnet-contrib/AspNet.Security.OAuth.Providers)
from 8.3.0 to 9.4.1.

<details>
<summary>Release notes</summary>

_Sourced from [AspNet.Security.OAuth.GitHub's
releases](git://github.com/aspnet-contrib/AspNet.Security.OAuth.Providers/releases)._

## 9.4.1

## What's Changed

* Perf optimization for Bilibili provider by @​LeaFrock in
aspnet-contrib/AspNet.Security.OAuth.Providers#1071
* Bilibili refactor by @​martincostello in
aspnet-contrib/AspNet.Security.OAuth.Providers#1072
* Add CodeQL for GitHub Actions by @​martincostello in
aspnet-contrib/AspNet.Security.OAuth.Providers#1095
* Use NuGet Trusted Publishing by @​martincostello in
aspnet-contrib/AspNet.Security.OAuth.Providers#1110
* feat(Keycloak): add "family_name" mapping to ClaimTypes.Surname by
@​XB-RS in
aspnet-contrib/AspNet.Security.OAuth.Providers#1112

## New Contributors

* @​XB-RS made their first contribution in
aspnet-contrib/AspNet.Security.OAuth.Providers#1112

**Full Changelog**:
aspnet-contrib/AspNet.Security.OAuth.Providers@9.4.0...9.4.1


## 9.4.0

## What's Changed

* Add Bilibili provider by @​Loongle in
aspnet-contrib/AspNet.Security.OAuth.Providers#1044

**Full Changelog**:
aspnet-contrib/AspNet.Security.OAuth.Providers@9.3.0...9.4.0


## 9.3.0

## What's Changed

* Add Contentful provider by @​jerriep in
aspnet-contrib/AspNet.Security.OAuth.Providers#1063

**Full Changelog**:
aspnet-contrib/AspNet.Security.OAuth.Providers@9.2.0...9.3.0


## 9.2.0

## What's Changed

* Use `Convert.ToHexStringLower` by @​martincostello in
aspnet-contrib/AspNet.Security.OAuth.Providers#1048
* Add Linear provider by @​jerriep in
aspnet-contrib/AspNet.Security.OAuth.Providers#1045
* Add Miro provider by @​jerriep in
aspnet-contrib/AspNet.Security.OAuth.Providers#1046
* Add Webflow provider by @​jerriep in
aspnet-contrib/AspNet.Security.OAuth.Providers#1047

## New Contributors

* @​jerriep made their first contribution in
aspnet-contrib/AspNet.Security.OAuth.Providers#1045

**Full Changelog**:
aspnet-contrib/AspNet.Security.OAuth.Providers@9.1.0...9.2.0


## 9.1.0

## What's Changed

* Allow roll-forward for dotnet-validate by @​martincostello in
aspnet-contrib/AspNet.Security.OAuth.Providers#989
* Update bundle data in KOOK provider test by @​gehongyan in
aspnet-contrib/AspNet.Security.OAuth.Providers#1021
* Fix Alipay user_id upgrade open_id issue by @​Loongle in
aspnet-contrib/AspNet.Security.OAuth.Providers#1015
* Add GitCode Provider by @​gehongyan in
aspnet-contrib/AspNet.Security.OAuth.Providers#1020
* Enable package validation by @​martincostello in
aspnet-contrib/AspNet.Security.OAuth.Providers#1031
* Add Atlassian provider #​839 by @​smnsht in
aspnet-contrib/AspNet.Security.OAuth.Providers#1037

## New Contributors

* @​Loongle made their first contribution in
aspnet-contrib/AspNet.Security.OAuth.Providers#1015
* @​smnsht made their first contribution in
aspnet-contrib/AspNet.Security.OAuth.Providers#1037

**Full Changelog**:
aspnet-contrib/AspNet.Security.OAuth.Providers@9.0.0...9.1.0


## 9.0.0

## What's Changed

* Update to .NET 9 by @​martincostello in
aspnet-contrib/AspNet.Security.OAuth.Providers#833

**Full Changelog**:
aspnet-contrib/AspNet.Security.OAuth.Providers@8.3.0...9.0.0


Commits viewable in [compare
view](git://github.com/aspnet-contrib/AspNet.Security.OAuth.Providers/compare/8.3.0...9.4.1).
</details>

[![Dependabot compatibility
score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=AspNet.Security.OAuth.GitHub&package-manager=nuget&previous-version=8.3.0&new-version=9.4.1)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)

Dependabot will resolve any conflicts with this PR as long as you don't
alter it yourself. You can also trigger a rebase manually by commenting
`@dependabot rebase`.

[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)

---

<details>
<summary>Dependabot commands and options</summary>
<br />

You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits
that have been made to it
- `@dependabot show <dependency name> ignore conditions` will show all
of the ignore conditions of the specified dependency
- `@dependabot ignore this major version` will close this PR and stop
Dependabot creating any more for this major version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop
Dependabot creating any more for this minor version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop
Dependabot creating any more for this dependency (unless you reopen the
PR or upgrade to it yourself)


</details>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Development

Successfully merging this pull request may close these issues.

2 participants