Skip to content
This repository has been archived by the owner on Nov 18, 2022. It is now read-only.

Commit

Permalink
Fix DoesNotExist error on android credentials creation
Browse files Browse the repository at this point in the history
In some environments, the login_service_user may not be available. Thus,
we create a dedicated android user for the mobile app.

See
https://discuss.overhang.io/t/upgrading-to-juniper-fails-with-user-matching-query-does-not-exist/678
  • Loading branch information
regisb committed Jun 17, 2020
1 parent 3956abb commit a88d9cf
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tutor/templates/hooks/lms/init
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,13 @@ echo "Loading settings $DJANGO_SETTINGS_MODULE"
./manage.py lms migrate

# Create oauth credentials for Android application
./manage.py lms manage_user android android@openedx --staff --superuser
./manage.py lms create_dot_application \
--client-id android \
--client-secret {{ ANDROID_OAUTH2_SECRET }} \
--grant-type password \
android \
login_service_user
android

# Fix incorrect uploaded file path
if [ -d /openedx/data/uploads/ ]; then
Expand Down

0 comments on commit a88d9cf

Please sign in to comment.