-
Notifications
You must be signed in to change notification settings - Fork 3.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Be able to login to bare-metal studio easily.
Updating the documentation and the devstack.py files so that if you're running bare-metal you can easily setup studio login via the LMS. I also added the Ports that the various MFEs expect to the runserver scripts so that it's easier to run those locally as well.
- Loading branch information
Showing
3 changed files
with
22 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -124,18 +124,33 @@ sites):: | |
./manage.py lms collectstatic | ||
./manage.py cms collectstatic | ||
|
||
Setup Studio SSO for Development:: | ||
|
||
./manage.py lms manage_user studio_worker [email protected] --unusable-password | ||
# DO NOT DO THIS IN PRODUCTION it will make your auth insecure | ||
./manage.py lms create_dot_application --grant-type authorization-code --skip-authorization --redirect-uris "http://localhost:18010/complete/edx-oauth2/" --scopes "user_id" studio-sso studio_worker --client-id studio-sso-key --client-secret studio-sso-secret | ||
|
||
Setup Studio SSO for Production:: | ||
|
||
./manage.py lms manage_user studio_worker <[email protected]> --unusable-password | ||
./manage.py lms create_dot_application --grant-type authorization-code --skip-authorization --redirect-uris "http://localhost:18010/complete/edx-oauth2/" --scopes "user_id" studio-sso studio_worker | ||
# Login to the django admin site (eg. http://localhost:18000/admin/oauth2_provider/application/) | ||
# to view the credentials for the 'studio-sso' app and set them in the config | ||
# for your production studio deployment using the `SOCIAL_AUTH_EDX_OAUTH2_KEY` | ||
# and `SOCIAL_AUTH_EDX_OAUTH2_SECRET` values in your studio settings. | ||
|
||
Run the Platform | ||
---------------- | ||
|
||
First, ensure MySQL, Mongo, and Memcached are running. | ||
|
||
Start the LMS:: | ||
|
||
./manage.py lms runserver | ||
./manage.py lms runserver 18000 | ||
|
||
Start the CMS:: | ||
|
||
./manage.py cms runserver | ||
./manage.py cms runserver 18010 | ||
|
||
This will give you a mostly-headless Open edX platform. Most frontends have | ||
been migrated to "Micro-Frontends (MFEs)" which need to be installed and run | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -36,3 +36,6 @@ LMS_INTERNAL_ROOT_URL: "http://localhost" | |
|
||
# So that Swagger config code doesn't complain | ||
API_ACCESS_MANAGER_EMAIL: "[email protected]" | ||
|
||
# So that you can login to studio on bare-metal | ||
SOCIAL_AUTH_EDX_OAUTH2_URL_ROOT: 'http://localhost:18000' |