|
28
|
1 |
OPENID_REDIRECT_NEXT = '/accounts/openid/done/' |
|
|
2 |
|
|
|
3 |
OPENID_SREG = {"required": "nickname, email, fullname", |
|
|
4 |
"optional":"postcode, country", |
|
|
5 |
"policy_url": ""} |
|
|
6 |
|
|
|
7 |
#example should be something more like the real thing, i think |
|
|
8 |
OPENID_AX = [{"type_uri": "http://axschema.org/contact/email", |
|
|
9 |
"count": 1, |
|
|
10 |
"required": True, |
|
|
11 |
"alias": "email"}, |
|
|
12 |
{"type_uri": "http://axschema.org/schema/fullname", |
|
|
13 |
"count":1 , |
|
|
14 |
"required": False, |
|
|
15 |
"alias": "fname"}] |
|
|
16 |
|
|
|
17 |
OPENID_AX_PROVIDER_MAP = {'Google': {'email': 'http://axschema.org/contact/email', |
|
|
18 |
'firstname': 'http://axschema.org/namePerson/first', |
|
|
19 |
'lastname': 'http://axschema.org/namePerson/last'}, |
|
|
20 |
'Default': {'email': 'http://axschema.org/contact/email', |
|
|
21 |
'fullname': 'http://axschema.org/namePerson', |
|
|
22 |
'nickname': 'http://axschema.org/namePerson/friendly'} |
|
|
23 |
} |
|
|
24 |
|
|
|
25 |
TWITTER_CONSUMER_KEY = 'AeTl6TefgICQCXwDf4gOA' |
|
|
26 |
TWITTER_CONSUMER_SECRET = 'v7XqozHzQuzjyU9RkpJXrXZdTYpCMCpzZCjli62dOA' |
|
|
27 |
|
|
|
28 |
FACEBOOK_APP_ID = '168524599848954' |
|
|
29 |
FACEBOOK_API_KEY = '5fbfc9bc5171449685e54a6fd33038a4' |
|
|
30 |
FACEBOOK_SECRET_KEY = 'ffd9012b6d974180f2578c09bcb38d9f' |
|
|
31 |
|
|
|
32 |
LINKEDIN_CONSUMER_KEY = '' |
|
|
33 |
LINKEDIN_CONSUMER_SECRET = '' |
|
|
34 |
|
|
|
35 |
## if any of this information is desired for your app |
|
|
36 |
FACEBOOK_EXTENDED_PERMISSIONS = ( |
|
|
37 |
#'publish_stream', |
|
|
38 |
#'create_event', |
|
|
39 |
#'rsvp_event', |
|
|
40 |
#'sms', |
|
|
41 |
#'offline_access', |
|
|
42 |
#'email', |
|
|
43 |
#'read_stream', |
|
|
44 |
#'user_about_me', |
|
|
45 |
#'user_activites', |
|
|
46 |
#'user_birthday', |
|
|
47 |
#'user_education_history', |
|
|
48 |
#'user_events', |
|
|
49 |
#'user_groups', |
|
|
50 |
#'user_hometown', |
|
|
51 |
#'user_interests', |
|
|
52 |
#'user_likes', |
|
|
53 |
#'user_location', |
|
|
54 |
#'user_notes', |
|
|
55 |
#'user_online_presence', |
|
|
56 |
#'user_photo_video_tags', |
|
|
57 |
#'user_photos', |
|
|
58 |
#'user_relationships', |
|
|
59 |
#'user_religion_politics', |
|
|
60 |
#'user_status', |
|
|
61 |
#'user_videos', |
|
|
62 |
#'user_website', |
|
|
63 |
#'user_work_history', |
|
|
64 |
#'read_friendlists', |
|
|
65 |
#'read_requests', |
|
|
66 |
#'friend_about_me', |
|
|
67 |
#'friend_activites', |
|
|
68 |
#'friend_birthday', |
|
|
69 |
#'friend_education_history', |
|
|
70 |
#'friend_events', |
|
|
71 |
#'friend_groups', |
|
|
72 |
#'friend_hometown', |
|
|
73 |
#'friend_interests', |
|
|
74 |
#'friend_likes', |
|
|
75 |
#'friend_location', |
|
|
76 |
#'friend_notes', |
|
|
77 |
#'friend_online_presence', |
|
|
78 |
#'friend_photo_video_tags', |
|
|
79 |
#'friend_photos', |
|
|
80 |
#'friend_relationships', |
|
|
81 |
#'friend_religion_politics', |
|
|
82 |
#'friend_status', |
|
|
83 |
#'friend_videos', |
|
|
84 |
#'friend_website', |
|
|
85 |
#'friend_work_history', |
|
|
86 |
) |
|
|
87 |
|
|
|
88 |
|
|
|
89 |
AUTHENTICATION_BACKENDS = ( |
|
|
90 |
'django.contrib.auth.backends.ModelBackend', |
|
|
91 |
'socialauth.auth_backends.OpenIdBackend', |
|
|
92 |
'socialauth.auth_backends.TwitterBackend', |
|
|
93 |
'socialauth.auth_backends.FacebookBackend', |
|
|
94 |
'socialauth.auth_backends.LinkedInBackend', |
|
|
95 |
) |
|
|
96 |
|
|
|
97 |
TEMPLATE_CONTEXT_PROCESSORS = ( |
|
|
98 |
"socialauth.context_processors.facebook_api_key", |
|
|
99 |
'django.core.context_processors.media', |
|
|
100 |
"django.contrib.auth.context_processors.auth", |
|
|
101 |
"django.core.context_processors.request", |
|
|
102 |
) |