0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo.git synced 2024-12-23 15:53:07 -05:00
forgejo/docs/content/doc/usage
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>
2023-02-08 14:44:42 +08:00
..
agit-support.en-us.md
backup-and-restore.en-us.md
backup-and-restore.zh-cn.md
backup-and-restore.zh-tw.md
command-line.en-us.md Map OIDC groups to Orgs/Teams (#21441) 2023-02-08 14:44:42 +08:00
email-setup.en-us.md Update Gmail mailer configuration (#22291) 2023-01-02 10:52:36 +08:00
fail2ban-setup.en-us.md
fail2ban-setup.zh-cn.md
git-lfs-support.en-us.md Refactor docs (#21627) 2022-10-31 23:16:19 +00:00
https-support.en-us.md Refactor docs (#21627) 2022-10-31 23:16:19 +00:00
incoming-email.en-us.md Add support for incoming emails (#22056) 2023-01-14 23:57:10 +08:00
issue-pull-request-templates.en-us.md
issue-pull-request-templates.zh-cn.md
linked-references.en-us.md Fix typo in linked-references.en-us.md (#22682) 2023-01-31 21:43:27 +00:00
merge-message-templates.en-us.md
permissions.en-us.md
pull-request.en-us.md
pull-request.zh-cn.md
pull-request.zh-tw.md
push-options.en-us.md
push-options.zh-tw.md
reverse-proxies.en-us.md
reverse-proxies.zh-cn.md
template-repositories.en-us.md Refactor docs (#21627) 2022-10-31 23:16:19 +00:00