future-hydrogen-20806
02/26/2022, 10:53 PMintrospection_url
based some property of the match? I tried something like this, but it gives an error that the URI is malformed when loading the config.
[
{
"id": "test",
"match": {
"url": "<http|https>://<.*>.<http://mydomain.com/<.*|mydomain.com/<.*>>",
"methods": ["GET", "POST", "PUT", "DELETE"]
},
"upstream": {
"url": "<http://localhost:3000>"
},
"authenticators": [
{
"handler": "oauth2_introspection",
"config": {
"introspection_url": "<http://auth>.{{ printIndex .MatchContext.RegexpCaptureGroups 1 }}.<http://mydomain.com/oauth2/introspection|mydomain.com/oauth2/introspection>"
}
}
],
"authorizer": {
"handler": "allow"
},
"mutators": [
{
"handler": "header"
}
],
"errors": [
{
"handler": "json"
}
]
}
]
proud-plumber-24205
03/08/2022, 12:00 PM"introspection_url": "<http://auth>.<.*>.<http://mydomain.com/oauth2/introspection|mydomain.com/oauth2/introspection>"
or
"introspection_url": "<http://auth>.<{foo,bar}>.<http://mydomain.com/oauth2/introspection|mydomain.com/oauth2/introspection>"
proud-plumber-24205
03/08/2022, 12:02 PMintrospection_url
.proud-plumber-24205
03/08/2022, 12:03 PM