gitea/services
techknowlogick 5bb8d1924d
Support SAML authentication ()
Closes https://github.com/go-gitea/gitea/issues/5512

This PR adds basic SAML support
- Adds SAML 2.0 as an auth source
- Adds SAML configuration documentation
- Adds integration test:
- Use bare-bones SAML IdP to test protocol flow and test account is
linked successfully (only runs on Postgres by default)
- Adds documentation for configuring and running SAML integration test
locally

Future PRs:
- Support group mapping
- Support auto-registration (account linking)

Co-Authored-By: @jackHay22

---------

Co-authored-by: jackHay22 <jack@allspice.io>
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Co-authored-by: KN4CK3R <admin@oldschoolhack.me>
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
Co-authored-by: Jason Song <i@wolfogre.com>
Co-authored-by: morphelinho <morphelinho@users.noreply.github.com>
Co-authored-by: Zettat123 <zettat123@gmail.com>
Co-authored-by: Yarden Shoham <git@yardenshoham.com>
Co-authored-by: 6543 <6543@obermui.de>
Co-authored-by: silverwind <me@silverwind.io>
..
actions Improve the `issue_comment` workflow trigger event ()
agit small cache when get user id on interation ()
asymkey Simplify how git repositories are opened ()
attachment Even more `db.DefaultContext` refactor ()
auth Support SAML authentication ()
automerge Simplify how git repositories are opened ()
context Another round of `db.DefaultContext` refactor ()
convert Add merge style `fast-forward-only` ()
cron Refactor locale&string&template related code ()
doctor Simplify how git repositories are opened ()
externalaccount Support SAML authentication ()
feed More `db.DefaultContext` refactor ()
forms Support SAML authentication ()
gitdiff Add option to disable ambiguous unicode characters detection ()
indexer Fix missing issue search index update when changing status ()
issue Refactor issue template parsing and fix API endpoint ()
lfs Remove GetByBean method because sometimes it's danger when query condition parameter is zero and also introduce new generic methods ()
mailer Refactor locale&string&template related code ()
markup make writing main test easier ()
migrations Properly migrate automatic merge GitLab comments ()
mirror Simplify how git repositories are opened ()
notify Update status and code index after changing the default branch ()
org Delete repos of org when purge delete user ()
packages Use general token signing secret ()
pull Disallow merge when required checked are missing ()
release Avoid sending update/delete release notice when it is draft ()
repository Fix content size does not match error when uploading lfs file ()
secrets Refactor deletion ()
task Fix incorrect ctx usage in defer function ()
uinotification Penultimate round of `db.DefaultContext` refactor ()
user Unify password changing and invalidate auth tokens ()
webhook Abstract hash function usage ()
wiki Fix an actions schedule bug ()