OAuth remake

This commit is contained in:
Torkel Ödegaard
2014-10-07 17:56:37 -04:00
parent 450d242d5f
commit d7cd2b970e
9 changed files with 72 additions and 41 deletions

View File

@@ -34,6 +34,25 @@ session_id_hashfunc = sha1
; Session hash key, default is use random string
session_id_hashkey =
[oauth]
enabled = true
[oauth.github]
enabled = true
client_id = de054205006b9baa2e17
client_secret = 72b7ea52d9f1096fdf36cea95e95362a307e0322
scopes = user:email
auth_url = https://github.com/login/oauth/authorize
token_url = https://github.com/login/oauth/access_token
[oauth.google]
enabled = true
client_id = 106011922963-4pvl05e9urtrm8bbqr0vouosj3e8p8kb.apps.googleusercontent.com
client_secret = K2evIa4QhfbhhAm3SO72t2Zv
scopes = https://www.googleapis.com/auth/userinfo.profile https://www.googleapis.com/auth/userinfo.email
auth_url = https://accounts.google.com/o/oauth2/auth
token_url = https://accounts.google.com/o/oauth2/token
[log]
root_path =
; Either "console", "file", "conn", "smtp" or "database", default is "console"