Skip to content

Commit

Permalink
feat(Facebook config keys):add facebook prefix to facebook keys
Browse files Browse the repository at this point in the history
-Add facebook prefix to  app_id and secret key

[Fixes #162948845]
  • Loading branch information
Georgeygigz committed Jan 25, 2019
1 parent e796a69 commit ec5024f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
7 changes: 7 additions & 0 deletions .env.sample
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,10 @@ export PASSWORD_RESET_URL="127.0.0.1:8000/api"
export DEFAULT_FROM_EMAIL="senders email"
export SECRET_KEY="enter your secret key"
export EMAIL_VERIFICATION_URL="http://127.0.0.1:8000/"

export FACEBOOK_APP_ID="your_facebook_app_id"
export FACEBOOK_APP_SECRET="your_facebook_app_secret"
export OAUTH2_KEY="your_google_app_secret"
export OAUTH2_SECRET="your_google_secret"
export TWITTER_KEY="your_twitter_key"
export TWITTER_SECRET="your_twitter_secret"
4 changes: 2 additions & 2 deletions authors/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -166,8 +166,8 @@
'django.contrib.auth.backends.ModelBackend',
)

SOCIAL_AUTH_FACEBOOK_KEY = os.getenv('APP_ID')
SOCIAL_AUTH_FACEBOOK_SECRET = os.getenv('APP_SECRET')
SOCIAL_AUTH_FACEBOOK_KEY = os.getenv('FACEBOOK_APP_ID')
SOCIAL_AUTH_FACEBOOK_SECRET = os.getenv('FACEBOOK_APP_SECRET')
SOCIAL_AUTH_FACEBOOK_SCOPE = ['email']
SOCIAL_AUTH_FACEBOOK_PROFILE_EXTRA_PARAMS = {
'fields': 'id, name, email'
Expand Down

0 comments on commit ec5024f

Please sign in to comment.