We have a need to maintain API contracts while using RequestAuthentication and AuthorizationPolicy operators. Presently, when we make a request that doesn’t include an Authorization header with a JWT token we get back
RBAC access denied
What we want is to be able to rewrite this message to match our API contracts. Would anyone be able to assist me? I’ve tried several different examples from the web and I can’t even change the response.