This is my global config
...
mutators:
noop:
enabled: true
id_token:
enabled: true
config:
issuer_url: https://internal-etp/
jwks_url: file:///etc/secrets/mutator.id_token.jwks.json
ttl: 60m
hydrator:
enabled: true
config:
api:
url: http://idcp/ory/extra
And the rule I want to use :
{
"id": "enriched",
"match": {
"url": "<http|https>://127.0.0.1:4456/mutator/<.*>/<.*>",
"methods": [
"GET",
"POST"
]
},
"authenticators": [
{
"handler": "jwt",
"config": {
"target_audience": [
"api://110c1548-3c9d-46a4-bbfe-12491f1696aa"
]
}
}
],
"authorizer": {
"handler": "allow"
},
"mutators": [
{
"handler": "hydrator"
},
{
"handler": "id_token",
"config": {
"claims": "{\"appid\": \"{{ print .Extra.appid }}\", \"scp\": \"{{ print .Extra.scope }}\", \"tenant\": \"{{ print .Extra.tenant }}\", \"resourceGroup\": \"{{ print .Extra.resourceGroup }}\"}"
}
}
]
}
I do this request
GET http://127.0.0.1:4456/decisions/mutator/test/datas
With this header:
scope : c00562bc-7101-4a62-8500-e980de3951fd
But I don’t receive this header in my service http://idcp/ory/extra.