Setting up Google Auth - Appsembler

Setting up Google Auth

  1. SSH into the docker machine
  2. docker exec -i -t [container] /bin/bash
  3. Update /edx/app/edxapp/lms.env.json with "ENABLE_THIRD_PARTY_AUTH": true
  4. Update /edx/app/edxapp/lms.auth.json with:
    "THIRD_PARTY_AUTH": {
         "Google": { 
    	"SOCIAL_AUTH_GOOGLE_OAUTH2_KEY": "...",         
    	"SOCIAL_AUTH_GOOGLE_OAUTH2_SECRET": "..."     
    	} 
    },
    	

    The keys have to be created in Google Developers Console. Go to
    https://console.developers.google.com/project, create a new project inside which create a new set of credentials. More details: https://stackoverflow.com/questions/18677244/error-invalid-client-no-application-name.

  5. Run the equivalent of paver update_db:
    • sudo -u edxapp /edx/app/edxapp/venvs/edxapp/bin/python ./manage.py cms syncdb --migrate --settings=docker
    • sudo -u edxapp /edx/app/edxapp/venvs/edxapp/bin/python ./manage.py lms syncdb --migrate --settings=docker
  6. Restart the site: /edx/bin/supervisorctl restart all

Sources/references: