0
0
Fork 0
mirror of https://github.com/go-gitea/gitea synced 2024-12-26 01:54:31 +01:00
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
appearance.tmpl
applications.tmpl Introduce flex-list & flex-item elements for Gitea UI (#25790) 2023-08-01 00:13:42 +02:00
applications_oauth2.tmpl
applications_oauth2_edit.tmpl
applications_oauth2_edit_form.tmpl
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
keys.tmpl
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
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
packages_cleanup_rules_preview.tmpl
profile.tmpl Remove unnecessary template helper DisableGravatar (#26386) 2023-08-08 08:29:14 +00:00
repos.tmpl
runner_edit.tmpl