Commit Graph

11 Commits

Author SHA1 Message Date
Jan Larwig f289a516e2
feat(cookie): change SameSiteMode and ScriptAccess enum values to PascalCasing
Signed-off-by: Jan Larwig <jan@larwig.com>
2026-01-06 20:22:22 +01:00
Jan Larwig dda89305d8
fix: cookie secret related test cases
Signed-off-by: Jan Larwig <jan@larwig.com>
2026-01-06 20:22:21 +01:00
Jan Larwig 82a74a541a
feat(config): convert cookie property (Not)HTTPOnly boolean to enum
Signed-off-by: Jan Larwig <jan@larwig.com>
2026-01-06 20:22:20 +01:00
Jan Larwig ab6ab29258
feat: support for session options in alpha config and refactoring of cookie options
Signed-off-by: Jan Larwig <jan@larwig.com>
2026-01-06 20:22:20 +01:00
Jan Larwig 37e8e2aa9d
feat: support for cookie in alpha config and legacy file structure refactoring
Signed-off-by: Jan Larwig <jan@larwig.com>
2026-01-06 20:22:20 +01:00
Sandy Chen dc8b1623a2
feat(cookie): add feature support for cookie-secret-file (#3104)
* feat: add feature support for cookie-secret-file

---------

Signed-off-by: Jan Larwig <jan@larwig.com>
Co-Authored-By: Sandy Chen <Yuxuan.Chen@morganstanley.com>
Co-authored-by: Jan Larwig <jan@larwig.com>
2025-07-22 18:59:55 +02:00
t-katsumura d107d885e4
Session-Cookie Support (#1713)
* Create session cookie when cookie-expire set 0

* Fix format

* add test

* fix lint error

* fix test code

* fix conflicted test case

* update test case of cookie expiration

* update tests of csrf cookies

* update docs

* Update docs/docs/configuration/overview.md

Co-authored-by: Joel Speed <Joel.speed@hotmail.co.uk>

---------

Co-authored-by: tanuki884 <morkazuk@fsi.co.jp>
Co-authored-by: Joel Speed <Joel.speed@hotmail.co.uk>
2023-08-16 12:23:02 +01:00
Mitsuo Heijo 3fa42edb73
Fix import path for v7 (#800)
* fix import path for v7

find ./ -name "*.go" | xargs sed -i -e 's|"github.com/oauth2-proxy/oauth2-proxy|"github.com/oauth2-proxy/oauth2-proxy/v7|'

* fix module path

* go mod tidy

* fix installation docs

* update CHANGELOG

* Update CHANGELOG.md

Co-authored-by: Joel Speed <Joel.speed@hotmail.co.uk>

Co-authored-by: Joel Speed <Joel.speed@hotmail.co.uk>
2020-09-29 17:44:42 +01:00
Joel Speed 3e13f3197f
Ensure that cookie names over 256 characters are rejected by validation 2020-07-05 09:18:48 +01:00
Joel Speed 211fd3a010
Rename CookieOptions to Cookie 2020-07-05 09:18:21 +01:00
Joel Speed 285c65a2d4
Add tests for cookie validation
This also removes the check for the decoded from the valid secret size
check. The code was unreachable because encryption.SecretBytes will only
return the decoded secret if it was the right length after decoding.
2020-07-05 09:17:28 +01:00