fierce-wolf-75402
11/29/2023, 7:31 PM{
"id": "protected_resources",
"version": "v0.40.6",
"match": {
"url": "<http|https>://<.*>/<playground|query|anything/header>",
"methods": [
"GET",
"POST"
]
},
"authenticators": [
{
"handler": "jwt",
"config": {
"target_audience": [
"{{ printIndex .MatchContext.RegexpCaptureGroups 0 }}://{{ printIndex .MatchContext.RegexpCaptureGroups 1 }}"
]
}
}
],
Error in log:
"reason": "id=\nrid=\nerror=The request could not be authorized\nreason=Token audience [<https://my.domain.com>] is not intended for target audience {{ printIndex .MatchContext.RegexpCaptureGroups 0 }}://{{ printIndex .MatchContext.RegexpCaptureGroups 1 }}