mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
OAuth: Specify allowed email address domains for google or and github oauth logins, Closes #1660
This commit is contained in:
@@ -179,6 +179,7 @@ func NewConfigContext(config string) {
|
||||
for i, file := range configFiles {
|
||||
if i == 0 {
|
||||
Cfg, err = ini.Load(configFiles[i])
|
||||
Cfg.BlockMode = false
|
||||
} else {
|
||||
err = Cfg.Append(configFiles[i])
|
||||
}
|
||||
|
||||
@@ -5,6 +5,7 @@ type OAuthInfo struct {
|
||||
Scopes []string
|
||||
AuthUrl, TokenUrl string
|
||||
Enabled bool
|
||||
AllowedDomains []string
|
||||
}
|
||||
|
||||
type OAuther struct {
|
||||
|
||||
Reference in New Issue
Block a user