A Discourse Plugin to enable authentication via Atlassian Crowd.
Add the following to the 'env' section of your container/.yml
#Support For Crowd Plugin
#Mode should be either 'separated' or 'mixed'
DISCOURSE_CROWD_SERVER_URL: <SERVER URL>
DISCOURSE_CROWD_APPLICATION_NAME: <USER_NAME>
DISCOURSE_CROWD_APPLICATION_PASSWORD: <PASSWORD>
DISCOURSE_CROWD_APPLICATION_MODE: <MODE>
Add the following settings to your discourse.conf file:
crowd_server_urlcrowd_application_namecrowd_application_passwordcrowd_application_mode- can be one ofseparatedormixedcrowd_validate_email- uncheck this if your Crowd accounts do NOT validate email addresses. This will force discourse to validate the email.
This part of the configuration allows users who login through discourse-crowd to automatically be added or removed from Discourse groups (at login time). These can be configured by searching for plugin:discourse-crowd in Settings.
crowd_groups_enabledturns crowd mapping on or offcrowd_groups_mappingis a list of colon-separated pairs. The first of each pair is an Atlassian group and the second is a comma-separated list of discourse group "slugs" (the group name in the URL). e.g.jira-users:git_group,user_groupcrowd_groups_remove_unmapped_groupswhen enabled means a user will be removed from the discourse group(s) that are mapped to if the user is not in the corresponding Atlassian group. You probably want this on, but because it might be wrongly removing users it's off by default.
MIT