working on oauth

This commit is contained in:
Torkel Ödegaard committed 2014-10-07 15:54:38 -04:00
1 parent 2783196547
commit 450d242d5f
10 files changed
+280 -8

No files matched your search

+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