agreeable-chef-1546
09/20/2022, 12:19 PM{
"error": {
"code": 404,
"status": "Not Found",
"message": "Requested url does not match any rules"
}
}
- id: "api:profiles"
upstream:
preserve_host: true
url: https://httpbin.org/anything/profile/edit
match:
url: http://localhost:4485/anything/profile/edit
methods:
- GET
authenticators:
- handler: cookie_session
mutators:
- handler: noop
authorizer:
handler: remote_json
config:
remote: http://keto:4466/check
forward_response_headers_to_upstream: []
payload: |
{
"namespace": "permissions",
"object": "profiles",
"relation": "editor",
"subject_set": {
"namespace": "roles",
"object": "{{ print .Extra.identity.traits.role.name }}",
"relation": "member"
}
}