forked from authomatic/authomatic
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig-template.py
42 lines (29 loc) · 1.14 KB
/
config-template.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
# shared config.py
from authomatic.providers import oauth2, oauth1, openid
CONFIG = {
'tw': { # Your internal provider name
# Provider class
'class_': oauth1.Twitter,
# Twitter is an AuthorizationProvider so we need to set several other properties too:
'consumer_key': '##########################',
'consumer_secret': '##########################',
},
'fb': {
'class_': oauth2.Facebook,
# Facebook is an AuthorizationProvider too.
'consumer_key': '##########################',
'consumer_secret': '##########################',
# But it is also an OAuth 2.0 provider and it needs scope.
'scope': ['user_about_me', 'email', 'publish_stream'],
},
'oi': {
# OpenID provider dependent on the python-openid package.
'class_': openid.OpenID,
}
'amazon': {
'class_': oauth2.Amazon,
'consumer_key': '##########################',
'consumer_secret': '##########################',
'scope': ['profile', 'postal_code' ],
},
}