mirror of
https://github.com/pomerium/pomerium.git
synced 2025-05-29 17:07:24 +02:00
authorize: add request IP to rego evaluation (#3107)
This commit is contained in:
parent
5ac55f68b6
commit
a0e64b1cf9
5 changed files with 15 additions and 1 deletions
|
@ -98,6 +98,7 @@ func Test_getEvaluatorRequest(t *testing.T) {
|
|||
"X-Forwarded-Proto": "https",
|
||||
},
|
||||
certPEM,
|
||||
"",
|
||||
),
|
||||
}
|
||||
assert.Equal(t, expect, actual)
|
||||
|
@ -304,6 +305,7 @@ func Test_getEvaluatorRequestWithPortInHostHeader(t *testing.T) {
|
|||
"X-Forwarded-Proto": "https",
|
||||
},
|
||||
certPEM,
|
||||
"",
|
||||
),
|
||||
}
|
||||
assert.Equal(t, expect, actual)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue