working on oauth
This commit is contained in:
1 parent
2783196547
commit
450d242d5f
10 files changed
+280
-8
No files matched your search
@@ -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
|
||||
Reference in new issue
Block a user