cuddly-elephant-29413
11/02/2022, 11:57 AMcuddly-elephant-29413
11/02/2022, 12:00 PMsteep-lamp-91158
steep-lamp-91158
authorizer: {
handler: 'remote_json',
config: {
remote: '<https://keto.local/relation-tuples/check>',
payload: |||
{
"subject_id": "{{ print .Subject }}",
"relation": "{{ print .Header.Relation }}",
"namespace": "whatever-constant",
"object": "{{ printIndex .MatchContext.RegexpCaptureGroups 2 }}"
}
|||,
},
},
might work, but depends on your use-case
you would have to have all parameters in the header or pathcuddly-elephant-29413
11/02/2022, 12:18 PM