How to make Django-CMS and Open Edx use same authentication for users?

286 views
Skip to first unread message

Aman

unread,
Nov 7, 2017, 10:55:38 AM11/7/17
to Open edX operations

We are looking to develop a Django project in which we need to integrate three different Django packages namely a CMS (Django-CMS or Wagtail), a LMS (Open edX) and a support/ticketing system.


Since Django-CMS, Open Edx have their own user authentication, but we want them to share a common authentication (username, password, user profiles), so that a user logged into one section of website is able to move to other sections smoothly.


How to make these different packages share same authentication? Is there any guidelines or procedure to integrate these different Django Packages?

Clinton Blackburn

unread,
Nov 8, 2017, 11:41:51 AM11/8/17
to Open edX operations
The LMS is already setup as an OAuth 2.0 provider. It also has support for OpenID Connect (which we'd like to deprecate in favor of OAuth 2.0 + JWT). You can see the existing authentication backends at https://github.com/edx/auth-backends. If you'd like to see it in action, use Devstack (https://github.com/edx/devstack). The Credentials Service (https://github.com/edx/credentials) is our smallest IDA. I recommend using it as an example, if you want to dig deeper into the code.

Additionally, I have a prototype of a Wagtail-based marketing site at https://github.com/edx/marketing-site/pull/2. The basic Django project on the master branch has support for OpenID Connect.

Clinton

Aman

unread,
Nov 16, 2017, 3:54:48 PM11/16/17
to Open edX operations
Thanks a lot for your reply Clinton. Is it possible to have authentication shared between a Open edX running on one VM, and another VM hosting a CMS? 
Reason is I don't want to add wagtail to the same Virtual Machine where Open edX is hosted. I will really appreciate your reply. 

Clinton Blackburn

unread,
Nov 18, 2017, 7:01:11 PM11/18/17
to Open edX operations
Yes. One trait of single sign-on is that the OAuth provider is independent of the clients.

Pengcheng Liu

unread,
Dec 8, 2017, 1:28:51 AM12/8/17
to Open edX operations
Hi Clinton,

Thanks for sharing, it is really useful.

Pengcheng

在 2017年11月9日星期四 UTC+8上午12:41:51,Clinton Blackburn写道:
Reply all
Reply to author
Forward
0 new messages