JWT Token not allowing access #7186
-
Hi, I really don't understand anymore why my JWT setup doesn't work, it just shows following error:
Custer name: Rabbitmq conf: auth_backends.2 = internal
auth_backends.1 = oauth2 My advanced config: [
{rabbit, [
{default_user, <<"admin">>},
{default_pass, <<"admin">>},
{auth_backends, [rabbit_auth_backend_internal, rabbit_auth_backend_oauth2]}
]},
{rabbitmq_management, [
{enable_uaa, false}
]},
{rabbitmq_auth_backend_oauth2, [
{resource_server_id, <<"rabbitmq">>},
%% UAA signing key configuration
{key_config, [
{default_key, <<"key1">>},
{signing_keys, #{
<<"key1">> => {pem, <<"-----BEGIN PUBLIC KEY-----
MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAspqDRZu2m+5orD+rwRO3
sloHYFZB/AYNx8KKeXSpE93vjvyDGZHzcW/xR1MMdQV31uQn3hUdzg6K2bWUKm2M
PXNP4b9jheX/wCE5gwL95dw1rSBc8hWUG/HtVGfur9+6z1ZO2Rowmq0iuJfKFw2y
SwqdNd8GNi7JE6dLcfUC0YpwpRZUPBGpDJW4U6vtBPe9p7V7Aafv+xliGAMpjOdU
rUCm9tdnKzRylVyRIaYAxejJUvCETFzw710FLGus4YnlvOkzEze03hgMwl6U82Xt
D+CltMQxfacL7I1LIlYMaBcrOHiZqUQg8LC2aESBPi18XtKQJw8ACEmykVLFT7O8
awIDAQAB
-----END PUBLIC KEY-----">>}
}}
]}
]}
]. Example JWT key:
Would be really nice if someone could give me a hint... I also don't understand the error message, it doesn't give any useful hint as far as I understood it :/ |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Arrrrr I got it working.. I had a typo, the key is correctly |
Beta Was this translation helpful? Give feedback.
Arrrrr I got it working..
I had a typo, the key is correctly
scope
notscopes
🤦 Works now!