grafana/pkg/setting/setting_oauth.go

17 lines
329 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
2014-10-08 03:54:38 +08:00
}
type OAuther struct {
GitHub, Google, Twitter bool
OAuthInfos map[string]*OAuthInfo
}
var OAuthService *OAuther