forked from stryderjzw/Django-Socialauth
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathlocalsettings.example.py
88 lines (75 loc) · 2.18 KB
/
localsettings.example.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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
OPENID_REDIRECT_NEXT = '/accounts/openid/done/'
OPENID_SREG = {"requred": "nickname, email",
"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"}]
TWITTER_CONSUMER_KEY = ''
TWITTER_CONSUMER_SECRET = ''
FACEBOOK_APP_ID = ''
FACEBOOK_API_KEY = ''
FACEBOOK_SECRET_KEY = ''
## if any of this information is desired for your app
FACEBOOK_EXTENDED_PERMISSIONS = (
#'publish_stream',
#'create_event',
#'rsvp_event',
#'sms',
#'offline_access',
#'email',
#'read_stream',
#'user_about_me',
#'user_activites',
#'user_birthday',
#'user_education_history',
#'user_events',
#'user_groups',
#'user_hometown',
#'user_interests',
#'user_likes',
#'user_location',
#'user_notes',
#'user_online_presence',
#'user_photo_video_tags',
#'user_photos',
#'user_relationships',
#'user_religion_politics',
#'user_status',
#'user_videos',
#'user_website',
#'user_work_history',
#'read_friendlists',
#'read_requests',
#'friend_about_me',
#'friend_activites',
#'friend_birthday',
#'friend_education_history',
#'friend_events',
#'friend_groups',
#'friend_hometown',
#'friend_interests',
#'friend_likes',
#'friend_location',
#'friend_notes',
#'friend_online_presence',
#'friend_photo_video_tags',
#'friend_photos',
#'friend_relationships',
#'friend_religion_politics',
#'friend_status',
#'friend_videos',
#'friend_website',
#'friend_work_history',
)
AUTHENTICATION_BACKENDS = ('django.contrib.auth.backends.ModelBackend',
'socialauth.auth_backends.OpenIdBackend',
'socialauth.auth_backends.TwitterBackend',
'socialauth.auth_backends.FacebookBackend',
)