How to config for single login for both LMS and CMS?

597 views
Skip to first unread message

Jeff Gaoey

unread,
Jun 18, 2015, 1:13:57 AM6/18/15
to edx-...@googlegroups.com
I installed production in ubuntu 12.04. 

Feanil Patel

unread,
Jun 18, 2015, 9:27:37 AM6/18/15
to edx-...@googlegroups.com
Jeff,

Generally both LMS and CMS share the same django database.  If this is true in your case you should be able to use the same credentials in both places.  The other thing to look out for is the cookie domain.  If the cookie domains for the LMS and CMS don't match then logging into one will not log you into the other.

-Feanil

On Thu, Jun 18, 2015 at 1:13 AM, Jeff Gaoey <jeff....@gmail.com> wrote:
I installed production in ubuntu 12.04. 

--
You received this message because you are subscribed to the Google Groups "General Open edX discussion" group.
To view this discussion on the web visit https://groups.google.com/d/msgid/edx-code/20f9ea2d-4efd-48fa-a2b1-b230f3a3285b%40googlegroups.com.

Message has been deleted

Jeff Gaoey

unread,
Jun 22, 2015, 4:06:42 AM6/22/15
to edx-...@googlegroups.com

My partner found the way to doing this by using session cookies.
....

Session sharing can de done by simply changing the SESSION_COOKIE_DOMAIN configuration in the following places
 
 

  •   /edx/app/edxapp/lms.env.json 

  • /edx/app/edxapp/cms.env.json 

 

Make sure that the SESSION_COOKIE_NAME is the same for both configurations. (If it's already the same it doesn't have to be changed) 

    "SESSION_COOKIE_DOMAIN": ".edxlocal.com", 
    "SESSION_COOKIE_NAME": "sessionid", 

For example, studio.edxlocal.com and edxlocal.com. The session cookie domain will be ".edxlocal.com" 

In order to make sure it works with other extension of ours, add the "SESSION_ENGINE" configuration line at the end of the configuration file 

    "ZENDESK_URL": "", 
    "SESSION_ENGINE": "django.contrib.sessions.backends.cached_db" 
} 

then restart LMS and CMS

Thx


เมื่อ วันพฤหัสบดีที่ 18 มิถุนายน ค.ศ. 2015 12 นาฬิกา 13 นาที 57 วินาที UTC+7, Jeff Gaoey เขียนว่า:
Reply all
Reply to author
Forward
0 new messages