Closed danielsgz closed 1 year ago
This PR add long duration token to nuez. Here are the steps to try it:
strain.yml
STRAIN_NAME: nuezdistro STRAIN_TUTOR_VERSION: v14.1.0 DOCKER_IMAGE_OPENEDX_DEV: docker.io/ednxops/distro-edunext-edxapp-dev:nuez DOCKER_IMAGE_OPENEDX: docker.io/ednxops/distro-edunext-edxapp:nuez EDX_PLATFORM_REPOSITORY: https://github.com/eduNEXT/edunext-platform.git EDX_PLATFORM_VERSION: nu/ednx/JU-10 CMS_HOST: studio.nutmeg.edunext.link LMS_HOST: lms.nutmeg.edunext.link DEV_PROJECT_NAME: nuezdistro_dev LOCAL_PROJECT_NAME: nuezdistro_local PLATFORM_NAME: Nuez STRAIN_TUTOR_PLUGINS: - REPO: tutor-contrib-edunext-distro VERSION: v3.0.0 EGG: tutor-contrib-edunext-distro==v3.0.0 PACKAGE_NAME: distro PROTOCOL: ssh STRAIN_EXTRA_COMMANDS: - APP: 'tutor' COMMAND: 'distro enable-themes' STRAIN_VOLUME_OVERRIDES: edxapp: - DESTINATION: ../../src/edxapp/edx-platform LOCATION: /openedx/edx-platform STRAIN_EXPORT_VOLUMES: - CONTAINER: lms LOCATION: /openedx/edx-platform DESTINATION: src/edxapp/edx-platform DISTRO_THEMES_NAME: - bragi
stack strain create source .tvm/bin/activate stack strain dev configure -k override_vols -k export_vols stack strain dev init stack strain dev configure -s override_vols -k export_vols
tutor dev createuser --staff --superuser admin admin@edunext.co -p password
curl --location --request POST 'http://<YOUR-URL>/oauth2/access_token' \ --header 'Content-Type: application/x-www-form-urlencoded' \ --data-urlencode 'client_id=<YOUR-CLIENT-ID>' \ --data-urlencode 'client_secret=<YOUR-CLIENT-SECRET>' \ --data-urlencode 'grant_type=client_credentials'
You should get something like this:
{ "access_token": "7wjnmhIHC3B67EvNDVD0xo68kwVQJy", "expires_in": 31557600, "token_type": "Bearer", "scope": "read write email profile" }
@MaferMazu This was the cherrypick's message, however, I totally agree, I was also confused when I saw that message in the initial commit. I will apply your remark.
This PR add long duration token to nuez. Here are the steps to try it:
strain.yml
file with the following content:tutor dev createuser --staff --superuser admin admin@edunext.co -p password
.You should get something like this: