feat(oauth): refactoring PR #6077

This commit is contained in:
Torkel Ödegaard
2016-09-28 15:10:50 +02:00
parent 5ccdbf01fd
commit e5fc4332cd
5 changed files with 27 additions and 49 deletions
+2 -3
View File
@@ -8,12 +8,11 @@ type OAuthInfo struct {
AllowedDomains []string
ApiUrl string
AllowSignup bool
Name string
}
type OAuther struct {
GitHub, Google, Twitter, Generic, GrafanaNet bool
OAuthInfos map[string]*OAuthInfo
OAuthProviderName string
OAuthInfos map[string]*OAuthInfo
}
var OAuthService *OAuther