Skip to content
This repository was archived by the owner on Jan 24, 2019. It is now read-only.

Commit d795222

Browse files
committed
Add note on subdomain behaviour
1 parent e74d43c commit d795222

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -235,8 +235,11 @@ Usage of oauth2_proxy:
235235
-upstream value: the http url(s) of the upstream endpoint or file:// paths for static files. Routing is based on the path
236236
-validate-url string: Access token validation endpoint
237237
-version: print version string
238+
-whitelist-domain: allowed domains for redirection after authentication. Prefix domain with a . to allow subdomains (eg .example.com)
238239
```
239240

241+
Note, when using the `whitelist-domain` option, any domain prefixed with a `.` will allow any subdomain of the specified domain as a valid redirect URL.
242+
240243
See below for provider specific options
241244

242245
### Upstreams Configuration

main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ func main() {
4444
flagSet.Bool("ssl-insecure-skip-verify", false, "skip validation of certificates presented when using HTTPS")
4545

4646
flagSet.Var(&emailDomains, "email-domain", "authenticate emails with the specified domain (may be given multiple times). Use * to authenticate any email")
47-
flagSet.Var(&whitelistDomains, "whitelist-domain", "allowed domains for redirection after authentication")
47+
flagSet.Var(&whitelistDomains, "whitelist-domain", "allowed domains for redirection after authentication. Prefix domain with a . to allow subdomains (eg .example.com)")
4848
flagSet.String("azure-tenant", "common", "go to a tenant-specific or common (tenant-independent) endpoint.")
4949
flagSet.String("github-org", "", "restrict logins to members of this organisation")
5050
flagSet.String("github-team", "", "restrict logins to members of this team")

0 commit comments

Comments
 (0)