-
Notifications
You must be signed in to change notification settings - Fork 28
/
Copy pathconfig_auth.js
31 lines (26 loc) · 1.33 KB
/
config_auth.js
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
module.exports = {
'facebook': {
'clientID': 'your client ID here',
'clientSecret': 'your client secret here',
'requestURL': 'https://www.facebook.com/dialog/oauth?client_id=[client_id]&redirect_uri=[redirect_uri]&response_type=code&scope=email',
'callbackURL': 'https://demo.taracot.org/auth/facebook'
},
'google': {
'clientID': 'your client ID here',
'clientSecret': 'your client secret here',
'requestURL': 'https://accounts.google.com/o/oauth2/auth?redirect_uri=[redirect_uri]&response_type=code&client_id=[client_id]&scope=https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fuserinfo.email+https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fuserinfo.profile',
'callbackURL': 'https://demo.taracot.org/auth/google'
},
'yandex': {
'clientID': 'your client ID here',
'clientSecret': 'your client secret here',
'requestURL': 'https://oauth.yandex.ru/authorize?response_type=code&client_id=[client_id]',
'callbackURL': 'https://demo.taracot.org/auth/yandex'
},
'vk': {
'clientID': 'your client ID here',
'clientSecret': 'your client secret here',
'requestURL': 'http://oauth.vk.com/authorize?client_id=[client_id]&redirect_uri=[redirect_uri]&response_type=code',
'callbackURL': 'https://demo.taracot.org/auth/vk'
}
};