You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Aug 21, 2024. It is now read-only.
I have installed complete edx devstack setup. I can open studio, LMS and eCommerce successfully.
I have also installed analytics pipeline. Services running successfully
I have cloned analytics dashboard, executed npm start and manage.py runserver - Django successfully. Django is running fine as I can open Insights. When I click on login, it takes me on http://127.0.0.1:18000/login?next=/oauth2/authorize/
When I log in using edx credentials ([email protected] / edx - what I use to login to the Studio and LMS) I get following message after login.
unauthorized_client An unauthorized client tried to access your resources.
I had the same problem like you. After two weeks investigation, I find that note from author:
Note: When using OAuth2, the dashboard and provider must be accessed via different host names (e.g. dashboard.example.org and provider.example.org) in order to avoid issues with session cookies being overwritten. (This was true with the use of the removed Open ID Connect, but is untested since.)
I used the same server ip as host name for both Analytic Dashboard and OpenEdx LMS, so the session_id in cookie from Analytic Dashboard sent to OAuth2 of LMS is overridden by LMS. That change the behaviour of OAuth2.
I fixed that by move my Analytic Dashboard to another server and everything work correctly.
Another solution to solve is try map two hostname with different ports to Analytic Dashboard and LMS. My colleague tested this way and it works too. For example, you can map Analytic Dashboard to insight.example.com:8110 and lms.example.com:18000 for LMS.
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
I have installed complete edx devstack setup. I can open studio, LMS and eCommerce successfully.
I have also installed analytics pipeline. Services running successfully
I have cloned analytics dashboard, executed
npm start
andmanage.py runserver
- Django successfully. Django is running fine as I can open Insights. When I click on login, it takes me onhttp://127.0.0.1:18000/login?next=/oauth2/authorize/
When I log in using edx credentials ([email protected] / edx - what I use to login to the Studio and LMS) I get following message after login.
unauthorized_client An unauthorized client tried to access your resources.
The url of this page is "http://127.0.0.1:18000/oauth2/authorize/confirm"
I have generated client ID for analytics in django lms admin and mentioned this in insights.yml
Please help to fix this issue as I am not able to use Analytics Dashboard.
The text was updated successfully, but these errors were encountered: