mirror of
https://github.com/pomerium/pomerium.git
synced 2025-06-04 03:42:49 +02:00
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. |
||
---|---|---|
.. | ||
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 |