lint
This commit is contained in:
parent
fa8e2b210a
commit
77511233e3
38
README.rst
38
README.rst
@ -17,17 +17,19 @@ include this repo in your project's requiremets.txt, or install it from the comm
|
|||||||
|
|
||||||
.. code-block:: bash
|
.. code-block:: bash
|
||||||
:caption: Python/Django installation
|
:caption: Python/Django installation
|
||||||
cd path/to/your/project
|
|
||||||
source path/to/venv/bin/activate
|
cd path/to/your/project
|
||||||
pip install https://github.com/StepwiseMath/wp-oauth-backend
|
source path/to/venv/bin/activate
|
||||||
|
pip install https://github.com/StepwiseMath/wp-oauth-backend
|
||||||
|
|
||||||
.. code-block:: yaml
|
.. code-block:: yaml
|
||||||
:caption: lms.envs.tutor.production.py
|
:caption: lms.envs.tutor.production.py
|
||||||
ADDL_INSTALLED_APPS:
|
|
||||||
- "wp_oauth_backend"
|
ADDL_INSTALLED_APPS:
|
||||||
THIRD_PARTY_AUTH_BACKENDS:
|
- "wp_oauth_backend"
|
||||||
- "wp_oauth_backend.oauth.WPOAuth2"
|
THIRD_PARTY_AUTH_BACKENDS:
|
||||||
ENABLE_REQUIRE_THIRD_PARTY_AUTH: true
|
- "wp_oauth_backend.oauth.WPOAuth2"
|
||||||
|
ENABLE_REQUIRE_THIRD_PARTY_AUTH: true
|
||||||
|
|
||||||
add these settings to django.conf:
|
add these settings to django.conf:
|
||||||
|
|
||||||
@ -51,13 +53,13 @@ Cookiecutter openedx_devops build
|
|||||||
.. code-block:: bash
|
.. code-block:: bash
|
||||||
:caption: add this package as a build requirement
|
:caption: add this package as a build requirement
|
||||||
|
|
||||||
- name: Add the wp-oauth-backend
|
- name: Add the wp-oauth-backend
|
||||||
uses: openedx-actions/tutor-plugin-build-openedx-add-requirement@v1.0.0
|
uses: openedx-actions/tutor-plugin-build-openedx-add-requirement@v1.0.0
|
||||||
with:
|
with:
|
||||||
repository: wp-oauth-backend
|
repository: wp-oauth-backend
|
||||||
repository-organization: StepwiseMath
|
repository-organization: StepwiseMath
|
||||||
repository-ref: main
|
repository-ref: main
|
||||||
repository-token: ${{ secrets.PAT }}
|
repository-token: ${{ secrets.PAT }}
|
||||||
|
|
||||||
|
|
||||||
Cookiecutter openedx_devops deployment
|
Cookiecutter openedx_devops deployment
|
||||||
@ -66,9 +68,9 @@ Cookiecutter openedx_devops deployment
|
|||||||
.. code-block:: bash
|
.. code-block:: bash
|
||||||
:caption: add settings to lms.envs.tutor.production
|
:caption: add settings to lms.envs.tutor.production
|
||||||
|
|
||||||
tutor config save --set OPENEDX_WPOAUTH_BACKEND_BASE_URL="${{ secrets.WPOAUTH_BACKEND_BASE_URL }}" \
|
tutor config save --set OPENEDX_WPOAUTH_BACKEND_BASE_URL="${{ secrets.WPOAUTH_BACKEND_BASE_URL }}" \
|
||||||
--set OPENEDX_WPOAUTH_BACKEND_CLIENT_ID="${{ secrets.WPOAUTH_BACKEND_CLIENT_ID }}" \
|
--set OPENEDX_WPOAUTH_BACKEND_CLIENT_ID="${{ secrets.WPOAUTH_BACKEND_CLIENT_ID }}" \
|
||||||
--set OPENEDX_WPOAUTH_BACKEND_CLIENT_SECRET="${{ secrets.WPOAUTH_BACKEND_CLIENT_SECRET }}"
|
--set OPENEDX_WPOAUTH_BACKEND_CLIENT_SECRET="${{ secrets.WPOAUTH_BACKEND_CLIENT_SECRET }}"
|
||||||
|
|
||||||
|
|
||||||
Developer Notes
|
Developer Notes
|
||||||
|
Loading…
Reference in New Issue
Block a user