Closed rayalex closed 7 years ago
Please post questions to rabbitmq-users or Stack Overflow. RabbitMQ uses GitHub issues for specific actionable items engineers can work on, not questions. Thank you.
The error says thatrabbitmq_auth_backend_http:user_login_authentication/3
is undefined. Your config is incomplete and I suspect it may be incorrectly nested. Please take this to the mailing list.
There's plenty of examples of authn/authz backend configurations, including this very plugin, in the docs.
@michaelklishin The issue indeed was in my configuration, thanks.
I've tried setting up this plugin on RabbitMQ
3.6.6
, however it seems to be failing with unknown error. HTTP Server logs indicate that request was never received, so it's probably failing before that.Setup:
3.6.6
on Ubuntu16.04.1
curl -X POST http://192.168.1.101/auth/user
returns valid response.Configuration:
Server is configured to always return
allow
andallow administrator
for user path.Logs:
Any ideas what might be an issue here?
Thanks.
EDIT:
Resolution: First line of configuration should say
{rabbit, [{auth_backends, [rabbit_auth_backend_http]}]},
instead of{rabbit, [{auth_backends, [rabbitmq_auth_backend_http]}]},