Hello Régis, Thanks for your quick reply, indeed I needed to make change to the settings you described so now the redirection is almost ok but I have an error when trying to access studio webpages. Below is the scenario and the error
Now I go to studio.myopenedx.com and click on connect --> I'm redirected to the lms and enter my credentials to login --> I get redirect to the studio but I can't open any pages, I get the following error from my web browser and not from django server *The page isn’t redirecting properlyAn error occurred during a connection to studio.mydomain.com This problem can sometimes be caused by disabling or refusing to accept cookies.* I did clear cookies, history, cache on my web browsers but I still have this issue. I believe this maybe has to do with the setting SESSION_COOKIE_DOMAIN In my case I have my lms hosted on *mydomain.com* and studio on *studio.mydomain.com* so I have set SESSION_COOKIE_DOMAIN to *mydomain.com* Should I host the lms under a subdomain as well as for studio ? Or is there something else I'm missing ? Thanks in advance for your help, It's much appreciated Best regards, Lucas Le jeudi 16 mai 2019 09:54:33 UTC+2, Régis Behmo a écrit : > > I'm not too familiar with the devstack, but in Tutor I had to tinker with > the following settings: > > cms.env.json ( > https://github.com/regisb/tutor/blob/master/tutor/templates/apps/openedx/config/cms.env.json > ): > - DISABLE_STUDIO_SSO_OVER_LMS: this is a feature flags that disables the > whole redirect-to-lms thing. > > lms.env.json ( > https://github.com/regisb/tutor/blob/master/tutor/templates/apps/openedx/config/lms.env.json > ): > - SESSION_COOKIE_DOMAIN: if SSO is enabled, then cookies are dropped in > this domain name. Since cookies need to be read both by the LMS and the > CMS, you need to place a domain name that is common to both. For instance, > if the lms and the cms live at www.myopenedx.com and studio.myopenedx.com, > respectively, then the session cookie domain needs to be set to > myopenedx.com. > - LOGIN_REDIRECT_WHITELIST: if SSO is enabled, the CMS domain name must > be added to this whitelist. AFAIU this setting also needs to be present in > cms.env.json ( > https://github.com/regisb/tutor/blob/master/tutor/templates/apps/openedx/config/cms.env.json > ). > > Régis > > On Wednesday, May 15, 2019 at 3:20:15 PM UTC+2, Lucas Rittié wrote: >> >> Hello everyone, >> >> For those of you who have installed edx lastest release IronWood, are you >> using the studio sso feature ? (Studio login via the LMS described here : >> ironwood-releasenotes >> <https://edx.readthedocs.io/projects/open-edx-release-notes/en/latest/ironwood.html#studio-login-via-the-lms> >> ) >> >> Because I'm using the docker devstack environment and have the following >> issue. >> >> I click on the studio homepage sign in button, I am well redirected to my >> LMS instance but the LMS is not redirecting me to studio instead I land on >> my LMS dashboard. >> >> I'm not sure where to configure this setting and haven't found much posts >> about it in the google groups since it's a new feature. >> >> If someone has managed to configure it can you share on this post how to >> do it ? (if I somehow manage to do it I'll share it on this post) >> >> Thanks in advanced for your help, >> >> Best regards, >> Lucas >> > -- You received this message because you are subscribed to the Google Groups "General Open edX discussion" group. To unsubscribe from this group and stop receiving emails from it, send an email to edx-code+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/edx-code/71048604-bd9e-4ce7-97cf-3c9c8e59ab42%40googlegroups.com.