FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
devstack/provision-ida-user.sh at master · Pearson-Advance/devstack · GitHub
Pearson-Advance
/
devstack
Public
forked from
openedx-unsupported/devstack
Notifications
You must be signed in to change notification settings
Fork
0
Star
1
Code
Pull requests
1
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
devstack
/
provision-ida-user.sh
Copy path
More file actions
More file actions
Latest commit
History
History
History
executable file
·
14 lines (10 loc) · 1.29 KB
Breadcrumbs
devstack
/
provision-ida-user.sh
Copy path
File metadata and controls
executable file
·
14 lines (10 loc) · 1.29 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#
This script depends on the LMS being up!
app_name=
$1
client_name=
$2
client_port=
$3
echo
-e
"
${GREEN}
Creating service user and OAuth2 applications for
${app_name}
...
${NC}
"
#
Create the service user.
docker-compose
exec
lms bash -c
'
source /edx/app/edxapp/edxapp_env && python /edx/app/edxapp/edx-platform/manage.py lms --settings=devstack_docker manage_user $1_worker $1_worker@example.com --staff --superuser
'
--
"
$app_name
"
#
Create the DOT applications - one for single sign-on and one for backend service IDA-to-IDA authentication.
docker-compose
exec
lms bash -c
'
source /edx/app/edxapp/edxapp_env && python /edx/app/edxapp/edx-platform/manage.py lms --settings=devstack_docker create_dot_application --grant-type authorization-code --skip-authorization --redirect-uris "http://localhost:$3/complete/edx-oauth2/" --client-id "$1-sso-key" --client-secret "$1-sso-secret" --scopes "user_id" $1-sso $1_worker
'
--
"
$app_name
"
"
$client_name
"
"
$client_port
"
docker-compose
exec
lms bash -c
'
source /edx/app/edxapp/edxapp_env && python /edx/app/edxapp/edx-platform/manage.py lms --settings=devstack_docker create_dot_application --grant-type client-credentials --client-id "$1-backend-service-key" --client-secret "$1-backend-service-secret" $1-backend-service $1_worker
'
--
"
$app_name
"
"
$client_name
"
"
$client_port
"
Back
|
FazBrowse Home
|
New Git URL