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

@@ -95,6 +95,8 @@ client_secret = some_secret
scopes = user:email
auth_url = https://github.com/login/oauth/authorize
token_url = https://github.com/login/oauth/access_token
; uncomment bellow to only allow specific email domains
; allowed_domains = mycompany.com othercompany.com
[auth.google]
enabled = false
@@ -103,6 +105,8 @@ client_secret = some_client_secret
scopes = https://www.googleapis.com/auth/userinfo.profile https://www.googleapis.com/auth/userinfo.email
auth_url = https://accounts.google.com/o/oauth2/auth
token_url = https://accounts.google.com/o/oauth2/token
; uncomment bellow to only allow specific email domains
; allowed_domains = mycompany.com othercompany.com
[log]
root_path = data/log