GithubHelp home page GithubHelp logo

BAD RPC Response code about discussions HOT 4 CLOSED

rabbitmq avatar rabbitmq commented on July 22, 2024
BAD RPC Response code

from discussions.

Comments (4)

peykens avatar peykens commented on July 22, 2024

My token payload contains :

"customerId": "1576168428531",
"sub": "1576168428531",
"user_id": "1576168428531",
"client_id": "rabbit_client",
"cid": "rabbit_client",
"role": "customer",
"scope": [
"rabbitmq.read:/",
"rabbitmq.write:/"
],
"aud": [
"rabbitmq",
"rabbit_client"
]

from discussions.

michaelklishin avatar michaelklishin commented on July 22, 2024

The node in question does not have the rabbitmq_auth_backend_oauth2:user_login_authentication/3 function on code path. Either the plugin is not installed there, or it was not enabled.

from discussions.

peykens avatar peykens commented on July 22, 2024

Hi @michaelklishin ,

The plugin was enabled however and is running.

rabbitmq-plugins list
...
[E*] rabbitmq_auth_backend_oauth2 3.8.2
...

rabbitmqctl environment
{rabbitmq_auth_backend_oauth2,
[{key_config,
[{default_key,<<"tadaam_tempkey">>},
{signing_keys,
#{<<"tadaam_tempkey">> =>
{pem,
<<"-----BEGIN PUBLIC KEY----------END PUBLIC KEY-----">>}}}]},
{resource_server_id,<<"rabbitmq">>}]},

and in rabbitmq.conf :
auth_backends.1 = rabbitmq_auth_backend_oauth2

I'm running on a single rabbitmq node

from discussions.

peykens avatar peykens commented on July 22, 2024

OK found it.

The config should not be :
auth_backends.1 = rabbitmq_auth_backend_oauth2

but should be:
auth_backends.1 = rabbit_auth_backend_oauth2

Now it reaches the plugin, and I get refused back. At least I reach the pluging now.

Thx @michaelklishin for the tip

from discussions.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.