eduNEXT / tutor-contrib-edunext-distro

A tool to facilitate the customization of an Openedx instance, adding commands and settings to have an easy-to-use and a ready-to-deploy in local or in development openedx distribution.
2 stars 1 forks source link

fix: allow session cookie domain in multitenancy #10

Closed dcoa closed 2 years ago

dcoa commented 2 years ago

This PR creates the SESSION_COOKIE_DOMAIN in the LMS for tenants and microsites when isn't a subdomain of lms.mango.edunext.link.

Note: The cookie is only created with the login, it's not created through the admin console.

How to test

  1. Use this branch
  2. Create a tenant o microsite, you can use the tenant config by default like a guide, just remember to change the url, for example, microsite-a.mango.edunext.link 3 .Login to the site
  3. Open the browser devtools and check the cookies and check for edx-jwt-cookie-header-payload