diff --git a/CONTRIBUTORS.md b/CONTRIBUTORS.md index 1fcd05ff8..f9e6a3b01 100644 --- a/CONTRIBUTORS.md +++ b/CONTRIBUTORS.md @@ -17,6 +17,7 @@ * Euan Kemp (euank) * Kellin (kellinm) * Carla Schroder (cjschroder) +* Thomas Sanchez (daedric) ## Acknowledgements diff --git a/kanidm_book/src/integrations/oauth2.md b/kanidm_book/src/integrations/oauth2.md index 52023e08f..ae23a01da 100644 --- a/kanidm_book/src/integrations/oauth2.md +++ b/kanidm_book/src/integrations/oauth2.md @@ -270,4 +270,31 @@ these to a group with a scope map due to Velociraptors high impact. # kanidm group create velociraptor_users # kanidm group add_members velociraptor_users ... - kanidm system oauth2 create_scope_map velociraptor_users openid email \ No newline at end of file + kanidm system oauth2 create_scope_map velociraptor_users openid email + +### Vouch Proxy + +_You need to run at least the version 0.37.0_. + +Vouch Proxy supports multiple OAuth and OIDC login providers. +To configure it you need to pass: + +```yaml +oauth: + auth_url: https://idm.wherekanidmruns.com/ui/oauth2 + callback_url: https://login.wherevouchproxyruns.com/auth + client_id: # Found in kanidm system oauth2 get XXXX (should be the same as XXXX) + client_secret: # Found in kanidm system oauth2 get XXXX + code_challenge_method: S256 + provider: oidc + scopes: + - email # Important, vouch proxy requiers a username (but does not use the proper scope, sub) or an email see https://github.com/vouch/vouch-proxy/issues/309, 310 + token_url: https://idm.wherekanidmruns.com/oauth2/token + user_info_url: https://idm.wherekanidmruns.com/oauth2/openid//userinfo +``` + +The `email` scope needs to be passed and thus the attribute needs to exist in +the account: + + kanidm login --name idm_admin + kanidm account person extend YYYY --mail "YYYY@somedomain.com" --name idm_admin