-
Hi together! I'm currently stuck on getting a basic authentication via OIDC working (only for the management UI). Relevant rabbitmq.conf entries:
My load definition: {
"vhosts": [
{
"name": "myvhost"
}
]
}
The token that is generated for the rabbitmq client: header: {
"alg": "RS256",
"typ": "JWT",
"kid": "Lk3S_brheRda-lmg2WdxA6GZaDFw5lTT4xKaL6ShFjI"
} payload: {
"exp": 1690277469,
"iat": 1690277169,
"auth_time": 1690272270,
"jti": "fb2f80ac-1229-415d-987c-491557044c7c",
"iss": "https://keyclaok.example.com/realms/MyRealm",
"aud": [
"rabbitmq",
"account"
],
"sub": "c4eb19f9-70b6-4741-bd1f-18476106b116",
"typ": "Bearer",
"azp": "rabbitmq",
"session_state": "367f1ed8-5a79-4713-ac23-b8d8c1d6fe7f",
"acr": "0",
"scope": "openid profile email",
"sid": "367f1ed8-5a79-4713-ac23-b8d8c1d6fe7f",
"email_verified": true,
"rabbitmq_permissions": [
"rabbitmq.tag:administrator",
"rabbitmq.configure:myvhost/*/*",
"role_RABBITMQ_MYVHOST_ADMIN",
"rabbitmq.tag:management",
"rabbitmq.read:myvhost/*/*",
"rabbitmq.write:myvhost/*/*"
],
"name": "Shawn Schwierig",
"preferred_username": "sschwierig",
"given_name": "Shawn",
"locale": "de",
"family_name": "Schwierig",
"email": "[email protected]"
} Plus a valid signature. The log on the rabbitmq node just states:
Note that I definitely expected at least the user to be 'sschwierig' here, not 'rabbitmq'.. Any help is highly appreciated! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
I finally found the issue: I forgot to set the correct JWKS url. However, the log messages were not really helpful... The following config works as intended:
|
Beta Was this translation helpful? Give feedback.
I finally found the issue: I forgot to set the correct JWKS url.
However, the log messages were not really helpful...
The following config works as intended: