Files
gitea/modules/setting
0e2a188d8e enhance(oauth): pre-register a builtin OAuth2 application for gitea-vscode (#39785) (#39801)
Backport #39785 by @bircni

The [Gitea VS Code extension](https://gitea.com/gitea/gitea-vscode)
currently signs in through the builtin `tea` OAuth2 application. Gitea
keeps one grant per user and application, so anyone who has already
signed in with the tea CLI gets `a grant exists with different scope`
when the extension requests its own scopes, and sign-in fails
(gitea/gitea-vscode#24).

This adds a dedicated builtin application for the extension, following
the same mechanism as the existing CLI entries:

| | |
|---|---|
| client ID | `75a9ec3e-42b5-40cb-9144-9ea96ecd56a6` |
| config name | `gitea-vscode` |
| display name | `gitea-vscode` |
| redirect URIs | `http://127.0.0.1`, `https://127.0.0.1` (loopback, any
port) |

It is enabled by default via `[oauth2].DEFAULT_APPLICATIONS`. Instances
that set that option explicitly need to add `gitea-vscode` to use it.

The extension will use this client on Gitea >= 28.2.0 and keep falling
back to `tea` on older servers, so this should be backported to v28.

Co-authored-by: bircni <bircni@icloud.com>
2026-10-16 12:40:16 -07:00
..
2026-06-08 17:16:22 +00:00
2026-09-23 23:14:31 +00:00
2026-02-22 08:01:43 +01:00
2026-09-12 08:15:23 +00:00
2026-09-12 08:15:23 +00:00
2026-08-05 00:17:07 +08:00
2023-07-04 18:36:08 +00:00
2025-10-23 08:35:48 +00:00
2025-03-31 01:53:48 -04:00
2026-08-11 18:01:02 +02:00
2026-09-23 23:14:31 +00:00
2026-09-23 23:14:31 +00:00
2026-09-23 23:14:31 +00:00
2026-09-23 23:14:31 +00:00