grafana/pkg/setting/setting_oauth.go

20 lines
484 B
Go
Raw Normal View History

2014-10-08 03:54:38 +08:00
package setting
type OAuthInfo struct {
ClientId, ClientSecret string
Scopes []string
AuthUrl, TokenUrl string
2014-10-08 05:56:37 +08:00
Enabled bool
AllowedDomains []string
ApiUrl string
AllowSignup bool
2014-10-08 03:54:38 +08:00
}
type OAuther struct {
GitHub, Google, Twitter, Generic, GrafanaNet bool
2016-09-28 19:02:15 +08:00
OAuthInfos map[string]*OAuthInfo
OAuthProviderName string
2014-10-08 03:54:38 +08:00
}
var OAuthService *OAuther