Hello
By default, /connect is only REST method that reacts on 403 response.
Other REST methods ignore 4xx responses by default.
You have to configure /publishStream method additionally as described here.
So you need to return following JSON field on /connect
Here you set "restOnError":"FAIL".
Then publishing should be rejected.
By default, /connect is only REST method that reacts on 403 response.
Other REST methods ignore 4xx responses by default.
You have to configure /publishStream method additionally as described here.
So you need to return following JSON field on /connect
Code:
"restClientConfig":
{
"publishStream":
{
"restExclude":"",
"clientExclude":"",
"restOnError":"FAIL",
"restPolicy":"NOTIFY",
"restOverwrite":""
}
}
Then publishing should be rejected.