Microsites theming login error

271 views
Skip to first unread message

Rubén Gómez Barrera

unread,
Mar 18, 2016, 10:05:33 AM3/18/16
to General Open edX discussion
Hi all!

I have a problem with microsites in Dogwood devstack:

- I already have configure the microsite but when i try to login in the microsite, i cant do it and i havent any problem. 

I see the lms log and i can see the followings:

2016-03-18 14:03:22,618 INFO 10709 [audit] models.py:1731 - Login success - ruben_prueba (rue...@gmail.com)
[18/Mar/2016 14:03:22] "POST /login_ajax HTTP/1.1" 200 46
[18/Mar/2016 14:03:22] "GET /dashboard HTTP/1.1" 302 0
[18/Mar/2016 14:03:22] "GET /login?next=/dashboard HTTP/1.1" 200 33819

I can see that the login is succes but i am not login in the app, any can help me?

Regards!

dh...@edx.org

unread,
Mar 19, 2016, 8:01:21 AM3/19/16
to General Open edX discussion
Hi,

Can you share your MICROSITE_CONFIGURATION from /edx/app/edxapp/lms.env.json?

Rubén Gómez Barrera

unread,
Mar 21, 2016, 3:45:03 AM3/21/16
to General Open edX discussion
Hi!

My MICROSITE_CONFIGURATION is:

"MICROSITE_CONFIGURATION": {
      "test_microsite": {
            "domain_prefix": "testmicrosite",
            "university": "test_microsite",
            "platform_name": "Test Microsite",
            "email_from_address": "test_mi...@edx.org",
            "payment_support_email": "test_mi...@edx.org",
            "ENABLE_MKTG_SITE": false,
            "SITE_NAME": "test_microsite.localhost",
            "course_org_filter": "TestMicrositeX",
            "course_about_show_social_links": false,
            "show_partners": false,
            "show_homepage_promo_video": false,
            "course_index_overlay_text": "This is a Test Microsite Overlay Text.",
            "homepage_overlay_html": "<h1>This is a Test Microsite Overlay HTML</h1>",
            "ALWAYS_REDIRECT_HOMEPAGE_TO_DASHBOARD_FOR_AUTHENTICATED_USER": false,
            "COURSE_CATALOG_VISIBILITY_PERMISSION": "see_in_catalog",
            "COURSE_ABOUT_VISIBILITY_PERMISSION": "see_about_page",
            "ENABLE_SHOPPING_CART": false,
            "ENABLE_PAID_COURSE_REGISTRATION": false,
            "ALLOW_AUTOMATED_SIGNUPS": false,
            "SESSION_COOKIE_DOMAIN": "test_microsite.localhost"
        },
        "microsite_with_logistration": {
            "domain_prefix": "logistration",
            "university": "logistration",
            "platform_name": "Test logistration",
            "logo_image_url": "test_microsite/images/header-logo.png",
            "email_from_address": "test_mi...@edx.org",
            "payment_support_email": "test_mi...@edx.org",
            "ENABLE_MKTG_SITE": false,
            "ENABLE_COMBINED_LOGIN_REGISTRATION": false,
            "SITE_NAME": "test_microsite.localhost",
            "course_org_filter": "LogistrationX",
            "course_about_show_social_links": false,
            "css_overrides_file": "test_microsite/css/test_microsite.css",
            "show_partners": false,
            "show_homepage_promo_video": false,
            "course_index_overlay_text": "Logistration.",
            "course_index_overlay_logo_file": "test_microsite/images/header-logo.png",
            "homepage_overlay_html": "<h1>This is a Logistration HTML</h1>",
            "ALWAYS_REDIRECT_HOMEPAGE_TO_DASHBOARD_FOR_AUTHENTICATED_USER": false,
            "COURSE_CATALOG_VISIBILITY_PERMISSION": "see_in_catalog",
            "COURSE_ABOUT_VISIBILITY_PERMISSION": "see_about_page",
            "ENABLE_SHOPPING_CART": false,
            "ENABLE_PAID_COURSE_REGISTRATION": false,
            "SESSION_COOKIE_DOMAIN": "test_logistration.localhost"
        },
        "default": {
            "university": "default_university",
            "domain_prefix": ""
        }
    },

Thanks for you response ;)

Regards!

dh...@edx.org

unread,
Mar 27, 2016, 3:02:17 PM3/27/16
to General Open edX discussion
Sorry for the delayed response, but it looks like the SESSION_COOKIE_DOMAIN you have defined in the microsite_with_logistration configuration ("SESSION_COOKIE_DOMAIN": "test_logistration.localhost") does not match the host you have defined for access of this microsite ("SITE_NAME": "test_microsite.localhost"). I wonder if that could be producing the behavior you are seeing?

On Friday, March 18, 2016 at 10:05:33 AM UTC-4, Rubén Gómez Barrera wrote:

Rubén Gómez Barrera

unread,
Mar 28, 2016, 6:51:03 AM3/28/16
to General Open edX discussion
Hi!!

Thanks for you response :) Really, the SESSION_COOKIE_DOMAIN was the problem. I changed to testmicrosite.localhost (same that domain prefix) and the login run correctly. 

Again, thank you a very much.

Regards!
Reply all
Reply to author
Forward
0 new messages