/
Enable social-auth locally
Enable social-auth locally
Go to Google developer console, make a new Project and enable 'Google+API' service
Go to the 'Credentials' and Add the following:
Add the local root url of your service as 'Authorized Javascript Origin'
Example: http://localhost:8000 ( in case of lms )
Add the 'Authorized redirect URI'
Example: http://localhost:8000/auth/complete/google-oauth2// ( in case of lms )
- Click 'Save'
Create/extend the 'private.py' by the following:
from django.conf import settings
settings.FEATURES['ENABLE_THIRD_PARTY_AUTH'] = True
settings.AUTH_TOKENS['THIRD_PARTY_AUTH'] = {
"Google": {
"SOCIAL_AUTH_GOOGLE_OAUTH2_KEY":"{client ID}","SOCIAL_AUTH_GOOGLE_OAUTH2_SECRET":"{client secret}"
}
}
Execute the following command on local mysql db:
INSERT INTO third_party_auth_oauth2providerconfig VALUES ('1', '2015-07-01 18:29:39.000000', '1', 'fa-google-plus', 'Google', '0', '0', '0', 'google-oauth2', '{client ID}', '{client secret}', '{}', NULL, '', '1', 'google-oauth2', '1');
Restart all the services
Note: Replace 'client ID' and 'client secret' from the credentials of the google console project.
, multiple selections available,
Related content
Enable social-auth locally (updated)
Enable social-auth locally (updated)
More like this
Authentication Quick Notes
Authentication Quick Notes
More like this
Setup OAuth Client for Internal Services (Django Oauth Toolkit version)
Setup OAuth Client for Internal Services (Django Oauth Toolkit version)
More like this
API Authorization Notes
API Authorization Notes
More like this
[FC-0047] - Configure mobile push notifications in edx-platform
[FC-0047] - Configure mobile push notifications in edx-platform
More like this
API Authorization Resources
API Authorization Resources
More like this