mirror of
https://github.com/pomerium/pomerium.git
synced 2025-07-07 20:08:17 +02:00
add JWT timestamp formatting workaround (#4270) Rego will sometimes serialize integers to JSON with a decimal point and exponent. I don't completely understand this behavior. Add a workaround to headers.rego to convert the JWT "iat" and "exp" timestamps to a string and back to an integer. This appears to cause Rego to serialize these values as plain integers. Add a unit test to verify this behavior. Also add a unit test that will fail if the Rego behavior changes, making this workaround unnecessary. Co-authored-by: Kenneth Jenkins <51246568+kenjenkins@users.noreply.github.com> |
||
---|---|---|
.. | ||
opa | ||
config.go | ||
evaluator.go | ||
evaluator_test.go | ||
functions.go | ||
functions_test.go | ||
google_cloud_serverless.go | ||
google_cloud_serverless_test.go | ||
headers_evaluator.go | ||
headers_evaluator_test.go | ||
policy_evaluator.go | ||
policy_evaluator_test.go |