You are using Open edX and you want to use discourse.org as place where learners and teachers can communicate. But you don't want the users to have tw

zaatdev/discourse-openedx-sso

submited by
Style Pass
2022-06-23 15:00:09

You are using Open edX and you want to use discourse.org as place where learners and teachers can communicate. But you don't want the users to have two accounts, for the open edx and discourse forum

By using this plugin, you can let your Open edX utilize, the SSO (single-sign-on) of discourse, thus when users access the forum they will be redirected to the LMS to authticate, and then redirect back the forum if success.

Just like any other open edx plugin app, you would just need install by running pip install discourse-openedx-sso in the LMS python env.

DISCOURSE_SECRET: is required and should be at least 10 characters, and it should match the secret in discourse settings. DISCOURSE_VALIDATE_EMAIL: is not required by deafult its False, settings this to True implies validting email address for users, it setted to False because its expected users where already validated through Open edX. The settings is added in lms, e.g either common or production.

tutor config plugins enable sso # to enable the plugin tutor config save # to reneder template Note: I really recommend to debug that tutor plugin is applied (because building the docker image takes a lot of time): If you run cd "$(tutor config printroot)"/env && grep -r discourse "$(tutor config printroot)"/env after following the above steps, you should get something like:

Leave a Comment