[rabbitmq-discuss] Plugin rabbitmq-auth-backend-http receiving "allow *" from web-server, but authorization is not successful.

AlexanderN napylov at mail.ru
Mon Mar 11 08:58:19 GMT 2013

rabbitmq-auth-backend-http don't sending request to

For testing of script I use Wget for send request.
If user have access to vhost, vhost.php returning "allow", else it returning

I uncomment line 92 of rabbit_auth_backend_http.erl.
On output written
Q: ""

Then I add logging to line 83.

78            case Code of
79                200 -> case parse_resp(Body) of
80                           {error, _} = E -> E;
81                           Resp           -> Resp
82                       end,
83                       error_logger:error_msg("200!", Code, Body);
84                _   -> {error, {Code, Body}}
86            end;

In RabbitMQ log was written:

=ERROR REPORT==== 11-Mar-2013::12:08:21 ===
closing AMQP connection <0.297.0> ( ->
        [{error_logger,error_msg,["200!",200,"allow *"],[]},

View this message in context: http://rabbitmq.1065348.n5.nabble.com/Plugin-rabbitmq-auth-backend-http-receiving-allow-from-web-server-but-authorization-is-not-successfu-tp25308p25364.html
Sent from the RabbitMQ mailing list archive at Nabble.com.

More information about the rabbitmq-discuss mailing list