rabbitmq / rabbitmq-oauth2-tutorial

Explore integration of RabbitMQ with Oauth 2.0 auth backend plugin
42 stars 22 forks source link

http://localhost:15672/#/login//<token> not working anymore #4

Closed CasperTDK closed 1 year ago

CasperTDK commented 2 years ago

There is no audit logs in rabbitmq and the console writes:

Jan 05 2022 09:40:58 GMT+0100 (Central European Standard Time)] body 404 Not Found get /#/login//eyJhbGci[xxxx]
    at Sammy.Application.error (sammy-0.7.6.min.js:5)
    at Sammy.Application.notFound (sammy-0.7.6.min.js:5)
    at Sammy.Application.runRoute (sammy-0.7.6.min.js:5)
    at Sammy.Application._checkLocation (sammy-0.7.6.min.js:5)
    at Sammy.Application.run (sammy-0.7.6.min.js:5)
    at start_app_login (main.js:76)
    at HTMLDocument.<anonymous> (main.js:13)
    at e (jquery-3.5.1.min.js:2)
    at t (jquery-3.5.1.min.js:2)

I suspect a breaking change in the sammy js framework, but I can not find any sourcecode that handles /#/login// in previous versions of rabbitmq either. Do you have any insights to share @MarcialRosales ?

MarcialRosales commented 2 years ago

Sorry @CasperTDK for this unacceptable late response. I apologise. It is definitely broken. I have updated the section in the tutorial to get around it. It turns out that now we have to send the token in the request parameter access_token rather than putting directly onto the URI.

cthtrifork commented 2 years ago

Thanks for investigating!

MarcialRosales commented 1 year ago

@CasperTDK @cthtrifork This issue has been addressed in this PR. It has not been released yet. The request is /#/login?access_token=<jwt>. Should you wanted to test it, there is a dev docker image: pivotalrabbitmq/rabbitmq:oidc_idp_initiated_login-otp-max-bazel

MarcialRosales commented 1 year ago

Hi @CasperTDK This feature is readily available in the current version of this repo which uses RabbitMQ 3.11.7 and it is covered on this section of the docs. I am closing now the issue.