1
0
mirror of https://github.com/go-gitea/gitea.git synced 2024-12-04 14:46:57 -05:00
gitea/docs/content/administration
Denys Konovalov 63ab92d797
Pre-register OAuth2 applications for git credential helpers (#26291)
This PR is an extended implementation of #25189 and builds upon the
proposal by @hickford in #25653, utilizing some ideas proposed
internally by @wxiaoguang.

Mainly, this PR consists of a mechanism to pre-register OAuth2
applications on startup, which can be enabled or disabled by modifying
the `[oauth2].DEFAULT_APPLICATIONS` parameter in app.ini. The OAuth2
applications registered this way are being marked as "locked" and
neither be deleted nor edited over UI to prevent confusing/unexpected
behavior. Instead, they're being removed if no longer enabled in config.


![grafik](https://github.com/go-gitea/gitea/assets/47871822/81a78b1c-4b68-40a7-9e99-c272ebb8f62e)

The implemented mechanism can also be used to pre-register other OAuth2
applications in the future, if wanted.

Co-authored-by: hickford <mirth.hickford@gmail.com>
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>

---------

Co-authored-by: M Hickford <mirth.hickford@gmail.com>
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
2023-08-09 14:24:07 +02:00
..
_index.en-us.md Docusaurus-ify (#26051) 2023-07-26 04:53:13 +00:00
_index.zh-cn.md Docusaurus-ify (#26051) 2023-07-26 04:53:13 +00:00
_index.zh-tw.md Docusaurus-ify (#26051) 2023-07-26 04:53:13 +00:00
adding-legal-pages.en-us.md Docusaurus-ify (#26051) 2023-07-26 04:53:13 +00:00
adding-legal-pages.zh-cn.md Docusaurus-ify (#26051) 2023-07-26 04:53:13 +00:00
backup-and-restore.en-us.md Docusaurus-ify (#26051) 2023-07-26 04:53:13 +00:00
backup-and-restore.zh-cn.md Docusaurus-ify (#26051) 2023-07-26 04:53:13 +00:00
backup-and-restore.zh-tw.md Docusaurus-ify (#26051) 2023-07-26 04:53:13 +00:00
cmd-embedded.en-us.md Docusaurus-ify (#26051) 2023-07-26 04:53:13 +00:00
cmd-embedded.zh-cn.md Docusaurus-ify (#26051) 2023-07-26 04:53:13 +00:00
command-line.en-us.md Docusaurus-ify (#26051) 2023-07-26 04:53:13 +00:00
command-line.zh-cn.md Docusaurus-ify (#26051) 2023-07-26 04:53:13 +00:00
config-cheat-sheet.en-us.md Pre-register OAuth2 applications for git credential helpers (#26291) 2023-08-09 14:24:07 +02:00
config-cheat-sheet.zh-cn.md Docusaurus-ify (#26051) 2023-07-26 04:53:13 +00:00
customizing-gitea.en-us.md Docusaurus-ify (#26051) 2023-07-26 04:53:13 +00:00
customizing-gitea.zh-cn.md Docusaurus-ify (#26051) 2023-07-26 04:53:13 +00:00
email-setup.en-us.md Update Gmail example (#26302) 2023-08-03 18:20:40 +08:00
email-setup.zh-cn.md Update email-setup.en-us.md (#26068) 2023-07-26 21:50:15 +08:00
environment-variables.en-us.md Docusaurus-ify (#26051) 2023-07-26 04:53:13 +00:00
environment-variables.zh-cn.md Docusaurus-ify (#26051) 2023-07-26 04:53:13 +00:00
external-renderers.en-us.md Docusaurus-ify (#26051) 2023-07-26 04:53:13 +00:00
external-renderers.zh-cn.md Docusaurus-ify (#26051) 2023-07-26 04:53:13 +00:00
fail2ban-setup.en-us.md Docusaurus-ify (#26051) 2023-07-26 04:53:13 +00:00
fail2ban-setup.zh-cn.md Docusaurus-ify (#26051) 2023-07-26 04:53:13 +00:00
git-lfs-support.en-us.md Docusaurus-ify (#26051) 2023-07-26 04:53:13 +00:00
git-lfs-support.zh-cn.md Docusaurus-ify (#26051) 2023-07-26 04:53:13 +00:00
https-support.en-us.md Docusaurus-ify (#26051) 2023-07-26 04:53:13 +00:00
https-support.zh-cn.md Docusaurus-ify (#26051) 2023-07-26 04:53:13 +00:00
logging-config.en-us.md Clarify the logger's MODE config option (#26267) 2023-08-01 18:28:23 +00:00
logging-config.zh-cn.md Docusaurus-ify (#26051) 2023-07-26 04:53:13 +00:00
mail-templates.en-us.md Docusaurus-ify (#26051) 2023-07-26 04:53:13 +00:00
mail-templates.zh-cn.md Docusaurus-ify (#26051) 2023-07-26 04:53:13 +00:00
repo-indexer.en-us.md Docusaurus-ify (#26051) 2023-07-26 04:53:13 +00:00
repo-indexer.zh-cn.md Docusaurus-ify (#26051) 2023-07-26 04:53:13 +00:00
reverse-proxies.en-us.md Docusaurus-ify (#26051) 2023-07-26 04:53:13 +00:00
reverse-proxies.zh-cn.md Docusaurus-ify (#26051) 2023-07-26 04:53:13 +00:00
search-engines-indexation.en-us.md Docusaurus-ify (#26051) 2023-07-26 04:53:13 +00:00
search-engines-indexation.zh-cn.md Docusaurus-ify (#26051) 2023-07-26 04:53:13 +00:00
signing.en-us.md Docusaurus-ify (#26051) 2023-07-26 04:53:13 +00:00
signing.zh-cn.md Docusaurus-ify (#26051) 2023-07-26 04:53:13 +00:00