shy-beach-55709
08/01/2023, 12:27 PMprint .Extra.email
works fine. I've read the documentation regarding net/http golang and also tried a similar approach as shown here: https://github.com/ory/oathkeeper/issues/964 but to no avail. Any help is really appreciated 🙂
{
"id": "ory:keto",
"upstream": {
"url": "<http://my-upstream>"
},
"match": {
"url": "http://<[^/]+>/any-path/<.*>",
"methods": [
"GET"
]
},
"authenticators": [
{
"handler": "jwt"
}
],
"authorizer": {
"handler": "remote_json",
"config": {
"payload": "{\"namespace\": \"{{ print .Header \"Namespace\" }}\", \"object\": \"any-object\", \"relation\": \"any-relation\", \"subject_id\": \"{{ print .Extra.email }}\"}"
}
},
"mutators": [
{
"handler": "noop"
}
]
}
steep-lamp-91158
steep-lamp-91158
shy-beach-55709
08/03/2023, 7:06 PM