mirror of
https://codeberg.org/icewind/haze.git
synced 2026-10-01 08:44:09 +02:00
feat(service): Add SCIM sync for Teams
Signed-off-by: Louis Chmn <louis@chmn.me>
This commit is contained in:
parent
b38cbbe7ba
commit
188a26ab2d
5 changed files with 139 additions and 1 deletions
55
blueprints/authentik-scim.yaml
Normal file
55
blueprints/authentik-scim.yaml
Normal file
|
|
@ -0,0 +1,55 @@
|
|||
# yaml-language-server: $schema=https://goauthentik.io/blueprints/schema.json
|
||||
version: 1
|
||||
metadata:
|
||||
name: haze-nextcloud-scim
|
||||
entries:
|
||||
- model: authentik_sources_scim.scimsource
|
||||
id: scim-source
|
||||
identifiers:
|
||||
slug: nextcloud-scim
|
||||
attrs:
|
||||
name: Nextcloud SCIM
|
||||
enabled: true
|
||||
|
||||
- model: authentik_core.token
|
||||
identifiers:
|
||||
identifier: !Format ["ak-source-scim-%s", !KeyOf scim-source]
|
||||
attrs:
|
||||
key: haze-scim-token
|
||||
intent: api
|
||||
expiring: false
|
||||
user:
|
||||
!Find [
|
||||
authentik_core.user,
|
||||
[username, !Format ["ak-source-scim-%s", !KeyOf scim-source]],
|
||||
]
|
||||
|
||||
# Pushes Authentik's users and groups into Authentik's SCIM source
|
||||
- model: authentik_providers_scim.scimprovider
|
||||
id: scim-provider
|
||||
identifiers:
|
||||
name: Nextcloud SCIM
|
||||
attrs:
|
||||
url: http://authentik:9000/source/scim/nextcloud-scim/v2
|
||||
token: haze-scim-token
|
||||
exclude_users_service_account: true
|
||||
property_mappings:
|
||||
- !Find [
|
||||
authentik_providers_scim.scimmapping,
|
||||
[managed, goauthentik.io/providers/scim/user],
|
||||
]
|
||||
property_mappings_group:
|
||||
- !Find [
|
||||
authentik_providers_scim.scimmapping,
|
||||
[managed, goauthentik.io/providers/scim/group],
|
||||
]
|
||||
|
||||
- model: authentik_core.application
|
||||
identifiers:
|
||||
slug: nextcloud-scim
|
||||
attrs:
|
||||
name: Nextcloud SCIM
|
||||
backchannel_providers:
|
||||
- !KeyOf scim-provider
|
||||
meta_launch_url: !File /haze/authentik/nextcloud-url
|
||||
meta_description: Nextcloud instance provisioned by haze
|
||||
Loading…
Add table
Add a link
Reference in a new issue