From 7b55f02c667ee38f3edbac986010a3d34c861db0 Mon Sep 17 00:00:00 2001 From: Philipp Rothmann Date: Tue, 8 Mar 2022 14:29:40 +0100 Subject: [PATCH] add wekan sso hint --- docs/apps/wekan.md | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/docs/apps/wekan.md b/docs/apps/wekan.md index 574536d..2aa2fff 100644 --- a/docs/apps/wekan.md +++ b/docs/apps/wekan.md @@ -21,6 +21,25 @@ im authentik: Login Button umbenennen: User -> Administration -> Layout -> Benutzerdefinierter Text der OIDC-Schaltfläche +## SSO + +create scope wekan +and attribute mapper with: + +``` +groupsDict = {"wekanGroups": []} +for group in request.user.ak_groups.all(): + my_attributes = group.attributes + my_attributes["displayName"] = group.name + my_attributes["isAdmin"] = group.attributes["isAdmin"] if 'isAdmin' in group.attributes else False + my_attributes["isActive"] = group.attributes["isActive"] if 'isActive' in group.attributes else True + my_attributes["forceCreate"] = group.attributes["forceCreate"] if 'forceCreate' in group.attributes else True + groupsDict["wekanGroups"].append(my_attributes) +return groupsDict +``` + +see https://github.com/wekan/wekan/tree/master/packages/wekan-oidc + ## Backup