grafana/pkg/setting/setting_oauth.go

24 lines
530 B
Go
Raw Normal View History

2014-10-07 14:54:38 -05:00
package setting
type OAuthInfo struct {
ClientId, ClientSecret string
Scopes []string
AuthUrl, TokenUrl string
2014-10-07 16:56:37 -05:00
Enabled bool
AllowedDomains []string
HostedDomain string
ApiUrl string
AllowSignup bool
2016-09-28 08:10:50 -05:00
Name string
TlsClientCert string
TlsClientKey string
TlsClientCa string
TlsSkipVerify bool
2014-10-07 14:54:38 -05:00
}
type OAuther struct {
2016-09-28 08:10:50 -05:00
OAuthInfos map[string]*OAuthInfo
2014-10-07 14:54:38 -05:00
}
var OAuthService *OAuther