gitea/templates/user/settings
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
..
security Introduce `flex-list` & `flex-item` elements for Gitea UI (#25790) 2023-08-01 00:13:42 +02:00
account.tmpl Fix UI misalignment on user setting page (#25629) 2023-07-03 20:38:06 +00:00
actions.tmpl Support configuration variables on Gitea Actions (#24724) 2023-06-20 22:54:15 +00:00
appearance.tmpl Change to vertical navbar layout for secondary navbar for repo/user/admin settings (#24246) 2023-04-23 18:21:21 +08:00
applications.tmpl Introduce `flex-list` & `flex-item` elements for Gitea UI (#25790) 2023-08-01 00:13:42 +02:00
applications_oauth2.tmpl Allow creation of OAuth2 applications for orgs (#18084) 2022-10-09 20:07:41 +08:00
applications_oauth2_edit.tmpl Change to vertical navbar layout for secondary navbar for repo/user/admin settings (#24246) 2023-04-23 18:21:21 +08:00
applications_oauth2_edit_form.tmpl Change `Regenerate Secret` button display (#25534) 2023-06-27 15:20:52 +00:00
applications_oauth2_list.tmpl Pre-register OAuth2 applications for git credential helpers (#26291) 2023-08-09 14:24:07 +02:00
grants_oauth2.tmpl Introduce `flex-list` & `flex-item` elements for Gitea UI (#25790) 2023-08-01 00:13:42 +02:00
hook_new.tmpl Use shared template for webhook icons (#26242) 2023-07-31 08:00:52 +00:00
hooks.tmpl Change to vertical navbar layout for secondary navbar for repo/user/admin settings (#24246) 2023-04-23 18:21:21 +08:00
keys.tmpl Change to vertical navbar layout for secondary navbar for repo/user/admin settings (#24246) 2023-04-23 18:21:21 +08:00
keys_gpg.tmpl Introduce `flex-list` & `flex-item` elements for Gitea UI (#25790) 2023-08-01 00:13:42 +02:00
keys_principal.tmpl Introduce `flex-list` & `flex-item` elements for Gitea UI (#25790) 2023-08-01 00:13:42 +02:00
keys_ssh.tmpl Introduce `flex-list` & `flex-item` elements for Gitea UI (#25790) 2023-08-01 00:13:42 +02:00
layout_footer.tmpl Change to vertical navbar layout for secondary navbar for repo/user/admin settings (#24246) 2023-04-23 18:21:21 +08:00
layout_head.tmpl Reduce margins on user settings page, introduce `flex-container` (#26046) 2023-07-31 07:16:03 +00:00
navbar.tmpl Reduce margins on user settings page, introduce `flex-container` (#26046) 2023-07-31 07:16:03 +00:00
organization.tmpl Introduce `flex-list` & `flex-item` elements for Gitea UI (#25790) 2023-08-01 00:13:42 +02:00
packages.tmpl Fix broken translations for package documantion (#25742) 2023-07-07 10:47:26 +02:00
packages_cleanup_rules_edit.tmpl Change to vertical navbar layout for secondary navbar for repo/user/admin settings (#24246) 2023-04-23 18:21:21 +08:00
packages_cleanup_rules_preview.tmpl Change to vertical navbar layout for secondary navbar for repo/user/admin settings (#24246) 2023-04-23 18:21:21 +08:00
profile.tmpl Remove unnecessary template helper DisableGravatar (#26386) 2023-08-08 08:29:14 +00:00
repos.tmpl Split lfs size from repository size (#22900) 2023-06-28 22:41:02 +00:00
runner_edit.tmpl Add user level action runners (#24995) 2023-05-31 09:39:54 +08:00