mirror of
https://github.com/pomerium/pomerium.git
synced 2025-07-07 11:58:12 +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> |
||
---|---|---|
.. | ||
evaluator | ||
internal/store | ||
access_tracker.go | ||
access_tracker_test.go | ||
authorize.go | ||
authorize_test.go | ||
check_response.go | ||
check_response_test.go | ||
databroker.go | ||
databroker_test.go | ||
grpc.go | ||
grpc_test.go | ||
log.go | ||
state.go |