gitea/docs/content
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
..
administration Pre-register OAuth2 applications for git credential helpers (#26291) 2023-08-09 14:24:07 +02:00
contributing Mention devtest in frontend contributing guidelines (#26249) 2023-07-31 12:49:21 +02:00
development Pre-register OAuth2 applications for git credential helpers (#26291) 2023-08-09 14:24:07 +02:00
help Docusaurus-ify (#26051) 2023-07-26 04:53:13 +00:00
installation Update Arch linux URL from community to extra (#26273) 2023-08-01 15:28:20 +00:00
usage [docs] Add missing backtick in quickstart.zh-cn.md (#26349) 2023-08-06 00:28:25 +08:00
actions.en-us.md Docusaurus-ify (#26051) 2023-07-26 04:53:13 +00:00
administration.en-us.md Docusaurus-ify (#26051) 2023-07-26 04:53:13 +00:00
administration.fr-fr.md Docusaurus-ify (#26051) 2023-07-26 04:53:13 +00:00
administration.zh-cn.md Docusaurus-ify (#26051) 2023-07-26 04:53:13 +00:00
administration.zh-tw.md Docusaurus-ify (#26051) 2023-07-26 04:53:13 +00:00
contributing.en-us.md Docusaurus-ify (#26051) 2023-07-26 04:53:13 +00:00
contributing.fr-fr.md Docusaurus-ify (#26051) 2023-07-26 04:53:13 +00:00
contributing.zh-tw.md Docusaurus-ify (#26051) 2023-07-26 04:53:13 +00:00
development.en-us.md Docusaurus-ify (#26051) 2023-07-26 04:53:13 +00:00
development.zh-cn.md Docusaurus-ify (#26051) 2023-07-26 04:53:13 +00:00
development.zh-tw.md Docusaurus-ify (#26051) 2023-07-26 04:53:13 +00:00
help.en-us.md Docusaurus-ify (#26051) 2023-07-26 04:53:13 +00:00
help.fr-fr.md Docusaurus-ify (#26051) 2023-07-26 04:53:13 +00:00
help.zh-cn.md Docusaurus-ify (#26051) 2023-07-26 04:53:13 +00:00
help.zh-tw.md Docusaurus-ify (#26051) 2023-07-26 04:53:13 +00:00
index.de-de.md Docusaurus-ify (#26051) 2023-07-26 04:53:13 +00:00
index.en-us.md Docusaurus-ify (#26051) 2023-07-26 04:53:13 +00:00
index.fr-fr.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
installation.en-us.md Docusaurus-ify (#26051) 2023-07-26 04:53:13 +00:00
installation.fr-fr.md Docusaurus-ify (#26051) 2023-07-26 04:53:13 +00:00
installation.zh-cn.md Docusaurus-ify (#26051) 2023-07-26 04:53:13 +00:00
installation.zh-tw.md Docusaurus-ify (#26051) 2023-07-26 04:53:13 +00:00
packages.en-us.md Docusaurus-ify (#26051) 2023-07-26 04:53:13 +00:00
search.de-de.md Docusaurus-ify (#26051) 2023-07-26 04:53:13 +00:00
search.en-us.md Docusaurus-ify (#26051) 2023-07-26 04:53:13 +00:00
search.fr-fr.md Docusaurus-ify (#26051) 2023-07-26 04:53:13 +00:00
search.nl-nl.md Docusaurus-ify (#26051) 2023-07-26 04:53:13 +00:00
search.pt-br.md Docusaurus-ify (#26051) 2023-07-26 04:53:13 +00:00
search.zh-cn.md Docusaurus-ify (#26051) 2023-07-26 04:53:13 +00:00
search.zh-tw.md Docusaurus-ify (#26051) 2023-07-26 04:53:13 +00:00
usage.en-us.md Docusaurus-ify (#26051) 2023-07-26 04:53:13 +00:00
usage.zh-cn.md Docusaurus-ify (#26051) 2023-07-26 04:53:13 +00:00
usage.zh-tw.md Docusaurus-ify (#26051) 2023-07-26 04:53:13 +00:00