add wekan sso hint
This commit is contained in:
parent
a905a900c4
commit
7b55f02c66
1 changed files with 19 additions and 0 deletions
|
@ -21,6 +21,25 @@ im authentik:
|
||||||
|
|
||||||
Login Button umbenennen: User -> Administration -> Layout -> Benutzerdefinierter Text der OIDC-Schaltfläche
|
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
|
## Backup
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue