-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsecrets.py.template
54 lines (44 loc) · 1.82 KB
/
secrets.py.template
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
# Copy this file into secrets.py and set keys, secrets and scopes.
# This is a session secret key used by webapp2 framework.
# Get 'a random and long string' from here:
# http://clsc.net/tools/random-string-generator.php
# or execute this from a python shell: import os; os.urandom(64)
SESSION_KEY = "a very long and secret session key goes here"
# Google APIs
GOOGLE_APP_ID = 'app id'
GOOGLE_APP_SECRET = 'app secret'
# Facebook auth apis
FACEBOOK_APP_ID = 'app id'
FACEBOOK_APP_SECRET = 'app secret'
# Key/secret for both LinkedIn OAuth 1.0a and OAuth 2.0
# https://www.linkedin.com/secure/developer
LINKEDIN_KEY = 'consumer key'
LINKEDIN_SECRET = 'consumer secret'
# https://manage.dev.live.com/AddApplication.aspx
# https://manage.dev.live.com/Applications/Index
WL_CLIENT_ID = 'client id'
WL_CLIENT_SECRET = 'client secret'
# https://dev.twitter.com/apps
TWITTER_CONSUMER_KEY = 'oauth1.0a consumer key'
TWITTER_CONSUMER_SECRET = 'oauth1.0a consumer secret'
# https://foursquare.com/developers/apps
FOURSQUARE_CLIENT_ID = 'client id'
FOURSQUARE_CLIENT_SECRET = 'client secret'
# config that summarizes the above
AUTH_CONFIG = {
# OAuth 2.0 providers
'google' : (GOOGLE_APP_ID, GOOGLE_APP_SECRET,
'https://www.googleapis.com/auth/userinfo.profile'),
'linkedin2' : (LINKEDIN_KEY, LINKEDIN_SECRET,
'r_basicprofile'),
'facebook' : (FACEBOOK_APP_ID, FACEBOOK_APP_SECRET,
'user_about_me'),
'windows_live': (WL_CLIENT_ID, WL_CLIENT_SECRET,
'wl.signin'),
'foursquare' : (FOURSQUARE_CLIENT_ID,FOURSQUARE_CLIENT_SECRET,
'authorization_code'),
# OAuth 1.0 providers don't have scopes
'twitter' : (TWITTER_CONSUMER_KEY, TWITTER_CONSUMER_SECRET),
'linkedin' : (LINKEDIN_KEY, LINKEDIN_SECRET),
# OpenID doesn't need any key/secret
}