rabbitmq / rabbitmq-server

Open source RabbitMQ: core server and tier 1 (built-in) plugins
https://www.rabbitmq.com/
Other
11.91k stars 3.9k forks source link

Consider supporting endpoints that respond with JSON #2551

Open michaelklishin opened 7 years ago

michaelklishin commented 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.

anderseknert commented 3 years ago

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!