You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gitea/templates
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>
2 years ago
..
admin Remove unnecessary template helper DisableGravatar (#26386) 2 years ago
api/packages/pypi Remove incorrect HTML self close tag (#23748) 2 years ago
base Start using template context function (#26254) 2 years ago
code Fix inconsistent user profile layout across tabs (#25625) 2 years ago
custom Add footer extra links template (#9576) 5 years ago
devtest Introduce `flex-list` & `flex-item` elements for Gitea UI (#25790) 2 years ago
explore Remove unnecessary template helper repoAvatar (#26387) 2 years ago
mail Add template linting via djlint (#25212) 2 years ago
org Use flex classes in package settings (#26314) 2 years ago
package Use flex classes in package settings (#26314) 2 years ago
projects Merge `templates/projects/list.tmpl` and `templates/repo/projects/list.tmpl` together (#26265) 2 years ago
repo Improve multiple strings in en-US locale (#26213) 2 years ago
shared Introduce `flex-list` & `flex-item` elements for Gitea UI (#25790) 2 years ago
status Replace fomantic divider module with our own (#25539) 2 years ago
swagger Doc update swagger doc for POST /orgs/{org}/teams (#26155) 2 years ago
user Pre-register OAuth2 applications for git credential helpers (#26291) 2 years ago
home.tmpl Improve home page template, fix Sort dropdown menu flash (#23856) 2 years ago
install.tmpl Show correct SSL Mode on "install page" (#25818) 2 years ago
post-install.tmpl Remove incorrect element ID on "post-install" page (#25104) 2 years ago