Open michaelklishin opened 7 years ago
See https://github.com/rabbitmq/rabbitmq-auth-backend-http/issues/50. While returning a string of text is usually straightforward, it should be reasonably easy for us to support JSON responses as well as text based on content type.
Allowing not only the response but also the request body to be JSON encoded would open up for policy engines such as OPA to act as the authorizer. Would love to try that out!
See https://github.com/rabbitmq/rabbitmq-auth-backend-http/issues/50. While returning a string of text is usually straightforward, it should be reasonably easy for us to support JSON responses as well as text based on content type.