git.iko.soy/typeable/oauth2-proxy
on master help sign in
Document what provider have support for --cookie-refresh. (#543)

Co-authored-by: Dirk Weinhardt <dirk.weinhardt@etl.de> Co-authored-by: Joel Speed <Joel.speed@hotmail.co.uk>

commit895403cb9b3c577581b73c8db4d058ccaa136457 authordevopsix <58369032+devopsix@users.noreply.github.com> dateWed 15 Jul 2020, 01:05 (6 years ago) parentabeb023
1 file changed+5−3
docs/configuration/configuration.md+5−3
docs/configuration/configuration.md+5−3
@@ -38,7 +38,7 @@ An example [oauth2-proxy.cfg]({{ site.gitweb }}/contrib/oauth2-proxy.cfg.example
3838| `--cookie-httponly` | bool | set HttpOnly cookie flag | true |
3939| `--cookie-name` | string | the name of the cookie that the oauth_proxy creates | `"_oauth2_proxy"` |
4040| `--cookie-path` | string | an optional cookie path to force cookies to (ie: `/poc/`) | `"/"` |
41−| `--cookie-refresh` | duration | refresh the cookie after this duration; `0` to disable | |
41+| `--cookie-refresh` | duration | refresh the cookie after this duration; `0` to disable; not supported by all providers&nbsp;\[[1](#footnote1)\] | |
4242| `--cookie-secret` | string | the seed string for secure cookies (optionally base64 encoded) | |
4343| `--cookie-secure` | bool | set [secure (HTTPS only) cookie flag](https://owasp.org/www-community/controls/SecureFlag) | true |
4444| `--cookie-samesite` | string | set SameSite cookie attribute (ie: `"lax"`, `"strict"`, `"none"`, or `""`). | `""` |
@@ -130,10 +130,12 @@ An example [oauth2-proxy.cfg]({{ site.gitweb }}/contrib/oauth2-proxy.cfg.example
130130| `--user-id-claim` | string | which claim contains the user ID | \["email"\] |
131131| `--validate-url` | string | Access token validation endpoint | |
132132| `--version` | n/a | print version string | |
133−| `--whitelist-domain` | string \| list | allowed domains for redirection after authentication. Prefix domain with a `.` to allow subdomains (eg `.example.com`) | |
133+| `--whitelist-domain` | string \| list | allowed domains for redirection after authentication. Prefix domain with a `.` to allow subdomains (eg `.example.com`)&nbsp;\[[2](#footnote2)\] | |
134134| `--trusted-ip` | string \| list | list of IPs or CIDR ranges to allow to bypass authentication (may be given multiple times). When combined with `--reverse-proxy` and optionally `--real-client-ip-header` this will evaluate the trust of the IP stored in a HTTP header by a reverse proxy rather than the layer-3/4 remote address. WARNING: trusting IPs has inherent security flaws, especially when obtaining the IP address from an HTTP header (reverse-proxy mode). Use this option only if you understand the risks and how to manage them. | |
135135
136−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. By default, only empty ports are allowed. This translates to allowing the default port of the URL's protocol (80 for HTTP, 443 for HTTPS, etc.) since browsers omit them. To allow only a specific port, add it to the whitelisted domain: `example.com:8080`. To allow any port, use `*`: `example.com:*`.
136+\[<a name="footnote1">1</a>\]: Only these providers do support `--cookie-refresh`: GitLab, Google and OIDC
137+
138+\[<a name="footnote2">2</a>\]: When using the `whitelist-domain` option, any domain prefixed with a `.` will allow any subdomain of the specified domain as a valid redirect URL. By default, only empty ports are allowed. This translates to allowing the default port of the URL's protocol (80 for HTTP, 443 for HTTPS, etc.) since browsers omit them. To allow only a specific port, add it to the whitelisted domain: `example.com:8080`. To allow any port, use `*`: `example.com:*`.
137139
138140See below for provider specific options
139141