Rename cookie-domain config to cookie-domains (#559)
Co-authored-by: Henry Jenkins <henry@henryjenkins.name>
This commit is contained in:
parent
fc11d8d508
commit
810a9e9967
|
|
@ -39,9 +39,14 @@
|
|||
reporting an invalid length of 20 or 28 when the user input cookie-secret was not that length.
|
||||
- Now we will only base64 decode a cookie-secret to raw bytes if it is 16, 24, or 32 bytes long. Otherwise, we will convert
|
||||
the direct cookie-secret to bytes without silent padding added.
|
||||
- [#412](https://github.com/oauth2-proxy/oauth2-proxy/pull/412)/[#559](https://github.com/oauth2-proxy/oauth2-proxy/pull/559) Allow multiple cookie domains to be specified
|
||||
- Multiple cookie domains may now be configured. The longest domain that matches will be used.
|
||||
- The config options `cookie_domain` is now `cookie_domains`
|
||||
- The environment variable `OAUTH2_PROXY_COOKIE_DOMAIN` is now `OAUTH2_PROXY_COOKIE_DOMAINS`
|
||||
|
||||
## Changes since v5.1.1
|
||||
|
||||
- [#559](https://github.com/oauth2-proxy/oauth2-proxy/pull/559) Rename cookie-domain config to cookie-domains (@JoelSpeed)
|
||||
- [#569](https://github.com/oauth2-proxy/oauth2-proxy/pull/569) Updated autocompletion for `--` long options. (@Izzette)
|
||||
- [#489](https://github.com/oauth2-proxy/oauth2-proxy/pull/489) Move Options and Validation to separate packages (@JoelSpeed)
|
||||
- [#556](https://github.com/oauth2-proxy/oauth2-proxy/pull/556) Remove unintentional auto-padding of secrets that were too short (@NickMeves)
|
||||
|
|
|
|||
|
|
@ -8,5 +8,5 @@ client_id="oauth2-proxy"
|
|||
cookie_secure="false"
|
||||
|
||||
redirect_url="http://oauth2-proxy.oauth2-proxy.localhost/oauth2/callback"
|
||||
cookie_domain=".oauth2-proxy.localhost" # Required so cookie can be read on all subdomains.
|
||||
cookie_domains=".oauth2-proxy.localhost" # Required so cookie can be read on all subdomains.
|
||||
whitelist_domains=".oauth2-proxy.localhost" # Required to allow redirection back to original requested target.
|
||||
|
|
|
|||
|
|
@ -86,7 +86,7 @@
|
|||
## HttpOnly - httponly cookies are not readable by javascript (recommended)
|
||||
# cookie_name = "_oauth2_proxy"
|
||||
# cookie_secret = ""
|
||||
# cookie_domain = ""
|
||||
# cookie_domains = ""
|
||||
# cookie_expire = "168h"
|
||||
# cookie_refresh = ""
|
||||
# cookie_secure = true
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@ import "time"
|
|||
type CookieOptions struct {
|
||||
Name string `flag:"cookie-name" cfg:"cookie_name"`
|
||||
Secret string `flag:"cookie-secret" cfg:"cookie_secret"`
|
||||
Domains []string `flag:"cookie-domain" cfg:"cookie_domain"`
|
||||
Domains []string `flag:"cookie-domain" cfg:"cookie_domains"`
|
||||
Path string `flag:"cookie-path" cfg:"cookie_path"`
|
||||
Expire time.Duration `flag:"cookie-expire" cfg:"cookie_expire"`
|
||||
Refresh time.Duration `flag:"cookie-refresh" cfg:"cookie_refresh"`
|
||||
|
|
|
|||
Loading…
Reference in New Issue