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.
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> |
11 months ago | |
---|---|---|
.. | ||
actions | 11 months ago | |
activities | 11 months ago | |
admin | 1 year ago | |
asymkey | 1 year ago | |
auth | 11 months ago | |
avatars | 1 year ago | |
db | 11 months ago | |
dbfs | 1 year ago | |
fixtures | 11 months ago | |
git | 11 months ago | |
issues | 11 months ago | |
migrations | 11 months ago | |
organization | 1 year ago | |
packages | 1 year ago | |
perm | 1 year ago | |
project | 12 months ago | |
pull | 2 years ago | |
repo | 11 months ago | |
secret | 1 year ago | |
shared/types | 1 year ago | |
system | 1 year ago | |
unit | 1 year ago | |
unittest | 1 year ago | |
user | 11 months ago | |
webhook | 1 year ago | |
error.go | 1 year ago | |
fixture_generation.go | 2 years ago | |
fixture_test.go | 2 years ago | |
main_test.go | 1 year ago | |
migrate.go | 12 months ago | |
migrate_test.go | 12 months ago | |
org.go | 2 years ago | |
org_team.go | 1 year ago | |
org_team_test.go | 2 years ago | |
org_test.go | 2 years ago | |
repo.go | 1 year ago | |
repo_collaboration.go | 2 years ago | |
repo_collaboration_test.go | 1 year ago | |
repo_test.go | 2 years ago | |
repo_transfer.go | 1 year ago | |
repo_transfer_test.go | 2 years ago |