setting_oauth.go 389 B

123456789101112131415161718
  1. package setting
  2. type OAuthInfo struct {
  3. ClientId, ClientSecret string
  4. Scopes []string
  5. AuthUrl, TokenUrl string
  6. Enabled bool
  7. AllowedDomains []string
  8. ApiUrl string
  9. AllowSignup bool
  10. }
  11. type OAuther struct {
  12. GitHub, Google, Twitter bool
  13. OAuthInfos map[string]*OAuthInfo
  14. }
  15. var OAuthService *OAuther