-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsocialauth_settings_sample.py
44 lines (36 loc) · 1.59 KB
/
socialauth_settings_sample.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
OPENID_REDIRECT_NEXT = '/accounts/openid/done/'
OPENID_SREG = {"required": "nickname, email, fullname",
"optional":"postcode, country",
"policy_url": ""}
#example should be something more like the real thing, i think
OPENID_AX = [{"type_uri": "http://axschema.org/contact/email",
"count": 1,
"required": True,
"alias": "email"},
{"type_uri": "http://axschema.org/schema/fullname",
"count":1 ,
"required": False,
"alias": "fname"}]
OPENID_AX_PROVIDER_MAP = {'Google': {'email': 'http://axschema.org/contact/email',
'firstname': 'http://axschema.org/namePerson/first',
'lastname': 'http://axschema.org/namePerson/last'},
'Default': {'email': 'http://axschema.org/contact/email',
'fullname': 'http://axschema.org/namePerson',
'nickname': 'http://axschema.org/namePerson/friendly'}
}
TWITTER_CONSUMER_KEY = ''
TWITTER_CONSUMER_SECRET = ''
TWITTER_ACCESS_TOKEN = ''
TWITTER_ACCESS_TOKEN_SECRET = ''
FACEBOOK_APP_ID = ''
FACEBOOK_API_KEY = ''
FACEBOOK_SECRET_KEY = ''
LINKEDIN_CONSUMER_KEY = ''
LINKEDIN_CONSUMER_SECRET = ''
AUTHENTICATION_BACKENDS = (
'django.contrib.auth.backends.ModelBackend',
'socialauth.auth_backends.OpenIdBackend',
'socialauth.auth_backends.TwitterBackend',
'socialauth.auth_backends.FacebookBackend',
'socialauth.auth_backends.LinkedInBackend',
)