You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
FEATURE: Allow multiple attributes for group sync and also using group full_name (#127)
This commit
- 1️⃣ extends the `saml_groups_attribute` to accept an array of attributes, and
- 2️⃣ adds a new setting: `saml_groups_use_full_name`.
- 3️⃣ it ensures the group sync feature removes the groups from the old attributes if it exists
See more here: #127
Copy file name to clipboardExpand all lines: README.md
+2-1Lines changed: 2 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -42,10 +42,11 @@ Add the following settings to your `discourse.conf` file:
42
42
### Group sync
43
43
44
44
-`DISCOURSE_SAML_SYNC_GROUPS`: Sync groups. Defaults to false.
45
-
-`DISCOURSE_SAML_GROUPS_ATTRIBUTE`: SAML attribute to use for group sync. Defaults to `memberOf`
45
+
-`DISCOURSE_SAML_GROUPS_ATTRIBUTE`: SAML attribute to use for group sync. Defaults to `memberOf`, and accepts '|' separated attributes `Country|Department`.
46
46
-`DISCOURSE_SAML_GROUPS_FULLSYNC`: Should the assigned groups be completely synced including adding AND removing groups based on the IDP? Defaults to false. If set to true, `DISCOURSE_SAML_SYNC_GROUPS_LIST` and SAML attribute `groups_to_add`/`groups_to_remove` are not used.
47
47
-`DISCOURSE_SAML_GROUPS_LDAP_LEAFCN`: If your IDP transmits `cn=groupname,cn=groups,dc=example,dc=com` you can set this to true to use only `groupname`. This is useful if you want to keep the standard group name length of Discourse (20 characters).
48
48
-`DISCOURSE_SAML_SYNC_GROUPS_LIST`: Groups mentioned in this list are synced if they are referenced by the IDP (in `memberOf` SAML attribue). Any other groups will not be removed/updated.
49
+
-`DISCOURSE_SAML_GROUPS_USE_FULL_NAME`: If set to true, will match groups based on Discourse Group `full_name` instead of the default `name`. This allows usage of group names with spaces in them, e.g. "North Africa" instead of "north_africa".
0 commit comments