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.
KN4CK3R e8186f1c0f
Map OIDC groups to Orgs/Teams (#21441)
Fixes #19555

Test-Instructions:
https://github.com/go-gitea/gitea/pull/21441#issuecomment-1419438000

This PR implements the mapping of user groups provided by OIDC providers
to orgs teams in Gitea. The main part is a refactoring of the existing
LDAP code to make it usable from different providers.

Refactorings:
- Moved the router auth code from module to service because of import
cycles
- Changed some model methods to take a `Context` parameter
- Moved the mapping code from LDAP to a common location

I've tested it with Keycloak but other providers should work too. The
JSON mapping format is the same as for LDAP.


![grafik](https://user-images.githubusercontent.com/1666336/195634392-3fc540fc-b229-4649-99ac-91ae8e19df2d.png)

---------

Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
1 year ago
..
agit-support.en-us.md Added docs for agit-setup (#21027) 2 years ago
backup-and-restore.en-us.md Fix typo in backup documentation (pgdump->pg_dump) (#20913) 2 years ago
backup-and-restore.zh-cn.md Update back-up restore example for 1.13 changes (#14374) 3 years ago
backup-and-restore.zh-tw.md Add markdownlint (#20512) 2 years ago
command-line.en-us.md Map OIDC groups to Orgs/Teams (#21441) 1 year ago
email-setup.en-us.md Update Gmail mailer configuration (#22291) 1 year ago
fail2ban-setup.en-us.md Add markdownlint (#20512) 2 years ago
fail2ban-setup.zh-cn.md docs: zh-cn translations for fail2ban setup (#20588) 2 years ago
git-lfs-support.en-us.md Refactor docs (#21627) 2 years ago
https-support.en-us.md Refactor docs (#21627) 2 years ago
incoming-email.en-us.md Add support for incoming emails (#22056) 1 year ago
issue-pull-request-templates.en-us.md Fix typo of issue template name (#21117) 2 years ago
issue-pull-request-templates.zh-cn.md Fix typo of issue template name (#21117) 2 years ago
linked-references.en-us.md Fix typo in linked-references.en-us.md (#22682) 1 year ago
merge-message-templates.en-us.md Support Issue forms and PR forms (#20987) 2 years ago
permissions.en-us.md Add markdownlint (#20512) 2 years ago
pull-request.en-us.md Reformat docs (#13897) 4 years ago
pull-request.zh-cn.md Reformat docs (#13897) 4 years ago
pull-request.zh-tw.md [docs] Add zh-tw Translations (#14507) 3 years ago
push-options.en-us.md Add markdownlint (#20512) 2 years ago
push-options.zh-tw.md Add markdownlint (#20512) 2 years ago
reverse-proxies.en-us.md Add markdownlint (#20512) 2 years ago
reverse-proxies.zh-cn.md Update reverse-proxies.zh-cn.md (#21484) 2 years ago
template-repositories.en-us.md Refactor docs (#21627) 2 years ago