OAuth: Specify allowed email address domains for google or and github oauth logins, Closes #1660

This commit is contained in:
Torkel Ödegaard
2015-04-06 14:16:22 +02:00
parent 7a95451288
commit eb575685aa
6 changed files with 50 additions and 10 deletions

View File

@@ -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])
}

View File

@@ -5,6 +5,7 @@ type OAuthInfo struct {
Scopes []string
AuthUrl, TokenUrl string
Enabled bool
AllowedDomains []string
}
type OAuther struct {