oauth2_proxy/providers
YAEGASHI Takeshi 2070fae47c Use encoding/json for SessionState serialization (#63)
* Use encoding/json for SessionState serialization

In order to make it easier to extend in future.

* Store only email and user in cookie when cipher is unavailable

This improves safety and robustness, and also preserves the existing
behaviour.

* Add TestEncodeSessionState/TestDecodeSessionState

Use the test vectors with JSON encoding just introduced.

* Support session state encoding in older versions

* Add test cases for legacy session state strings

* Add check for wrong expiration time in session state strings

* Avoid exposing time.Time zero value when encoding session state string

* Update CHANGELOG.md
2019-03-20 13:59:24 +00:00
..
azure_test.go Lint for non-comment linter errors 2018-11-29 14:26:41 +00:00
azure.go Add comments to exported methods for providers package 2018-12-20 10:37:59 +00:00
facebook.go Add comments to exported methods for providers package 2018-12-20 10:37:59 +00:00
github_test.go Lint for non-comment linter errors 2018-11-29 14:26:41 +00:00
github.go Add comments to exported methods for providers package 2018-12-20 10:37:59 +00:00
gitlab_test.go Lint for non-comment linter errors 2018-11-29 14:26:41 +00:00
gitlab.go Add comments to exported methods for providers package 2018-12-20 10:37:59 +00:00
google_test.go Lint for non-comment linter errors 2018-11-29 14:26:41 +00:00
google.go Add id_token refresh to Google provider (#83) 2019-03-05 14:07:10 +00:00
internal_util_test.go Lint for non-comment linter errors 2018-11-29 14:26:41 +00:00
internal_util.go Lint for non-comment linter errors 2018-11-29 14:26:41 +00:00
linkedin_test.go Lint for non-comment linter errors 2018-11-29 14:26:41 +00:00
linkedin.go Add comments to exported methods for providers package 2018-12-20 10:37:59 +00:00
logingov_test.go add login.gov provider (#55) 2019-03-20 13:44:51 +00:00
logingov.go add login.gov provider (#55) 2019-03-20 13:44:51 +00:00
oidc.go Fall back to using OIDC Subject instead of Email 2019-03-08 13:39:08 +01:00
provider_data.go Add comments to exported methods for providers package 2018-12-20 10:37:59 +00:00
provider_default_test.go Swap out bmizerany/assert package that is deprecated in favor of stretchr/testify/assert 2017-10-23 12:24:17 -04:00
provider_default.go Add comments to exported methods for providers package 2018-12-20 10:37:59 +00:00
providers.go add login.gov provider (#55) 2019-03-20 13:44:51 +00:00
session_state_test.go Use encoding/json for SessionState serialization (#63) 2019-03-20 13:59:24 +00:00
session_state.go Use encoding/json for SessionState serialization (#63) 2019-03-20 13:59:24 +00:00