working on oauth

This commit is contained in:
Torkel Ödegaard
2014-10-07 15:54:38 -04:00
parent 2783196547
commit 450d242d5f
10 changed files with 280 additions and 8 deletions
+14
View File
@@ -0,0 +1,14 @@
package setting
type OAuthInfo struct {
ClientId, ClientSecret string
Scopes []string
AuthUrl, TokenUrl string
}
type OAuther struct {
GitHub, Google, Twitter bool
OAuthInfos map[string]*OAuthInfo
}
var OAuthService *OAuther