few-egg-20111
03/21/2024, 1:27 PM- id: "api:tenant:get"
upstream:
preserve_host: true
url: "<http://app-api:80>"
match:
url: "<http://127.0.0.1:8080/api/v1/tenant/{tenantId}>"
methods:
- GET
authenticators:
- handler: cookie_session
mutators:
- handler: header
authorizer:
handler: remote_json
config:
remote: <http://keto:4466/check>
payload: |
{
"subject_id": "{{ print .Subject }}",
"relation": "read",
"namespace": "tenant",
"object": "<TENANTID GOES HERE>"
}
few-egg-20111
03/21/2024, 1:34 PM