grafana/pkg/setting/setting_oauth.go

19 lines
389 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
ApiUrl string
AllowSignup bool
2014-10-07 14:54:38 -05:00
}
type OAuther struct {
GitHub, Google, Twitter bool
OAuthInfos map[string]*OAuthInfo
}
var OAuthService *OAuther