setting_oauth.go 484 B

12345678910111213141516171819
  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, Generic, GrafanaNet bool
  13. OAuthInfos map[string]*OAuthInfo
  14. OAuthProviderName string
  15. }
  16. var OAuthService *OAuther