setting_oauth.go 329 B

12345678910111213141516
  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. }
  9. type OAuther struct {
  10. GitHub, Google, Twitter bool
  11. OAuthInfos map[string]*OAuthInfo
  12. }
  13. var OAuthService *OAuther