Server error wher trying to call ecommerce dashboard (Authentication failed)


I have imstalled lms and studio on so I can reach them on

they both use https protocol and all http requests are redirected to https.

Now configured enabled the ecommerce so so it could be reached also via https under

I followed the steps from this documentation with slight modifications, also there are already applications configured under .

I only changed the redirect uri to

Also I registered the site with:

python create_or_update_site
–partner-name=‘Open edX’
–backend-service-client-secret=ecommerce-backend-service-secret \

and adapted the value within /edx/etc/ecommerce.yml accordingly.

If I call the URL I get an server error and within the logs:

social_core.exceptions.AuthFailed: Authentication failed: HTTPSConnectionPool(host=‘’, port=443): Max retries exceeded with url: /oauth2/access_token (Caused by SSLError(SSLCertVerificationError(“hostname ‘’ doesn’t match ‘’”)))

What am I doing wrong.

Hi there,

the error was due to some kind of misconfiguration, though after this I got the error message:

File “/edx/app/ecommerce/venvs/ecommerce/lib/python3.8/site-packages/social_core/backends/”, line 90, in validate_state
raise AuthStateMissing(self, ‘state’)
social_core.exceptions.AuthStateMissing: Session value state missing.

It turns out, that this has to do with the value for SESSION_COOKIE_SAMESITE . If you use another domain for your ecommerce site then the cookies does not seem to be set causing the outh verification to fail.

I have to experiment more to get this to work completely. Current solution is to use the same domain as the lms and use another port 18130 .


This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.