RabbitMq Noob - OAuth2 configuration for Auth0

136 views
Skip to first unread message

Adam Hardy

unread,
Mar 12, 2024, 7:36:02 PM3/12/24
to rabbitmq-users
Hey all, 
This is my first foray into RabbitMq, coming from Azure Service Bus land. I'm setting RabbitMq (v 3.13.0)  up on my windows laptop using the chocolaty install method. I am now trying to configure it for OAuth2 authentication with Auth0 as the Idp. 

I've followed the instructions here : oauth2-examples-oauth0 and here docs/oauth2 
And I've ended up with a rabbitmq.conf file that looks like this :

log.console.level = debug
log.file.level = debug
auth_backends.1 = rabbit_auth_backend_oauth2
auth_oauth2.resource_server_id = rabbitmq
auth_oauth2.signing_keys.id1 = d:/Temp/public.pem
auth_oauth2.algorithms.1 = RS256
management.disable_basic_auth = true
management.oauth_enabled = true
management.oauth_client_id = <<redacted clientId from single page app>>
management.oauth_provider_url = https://<auth0tenant-redacted>.au.auth0.com
management.oauth_scopes = openid profile rabbitmq.*

But the management UI keeps coming up with this message : 
OAuth resource [rabbitmq] not available. OpenId Discovery endpoint https://<auth0tenant-redacted>.au.auth0.com/.well-known/openid-configuration not compliant

I just can't see for the life of me what I've done wrong or am missing. 

Luke Bakken

unread,
Mar 15, 2024, 4:50:22 PM3/15/24
to rabbitmq-users
Hello,

This is pretty much just a guess, but did you do this step?

Adam Hardy

unread,
Mar 15, 2024, 9:05:40 PM3/15/24
to rabbitmq-users
Yeah, I did. I'll post up some screenshots of the Auth0 side on Monday. 
Reply all
Reply to author
Forward
0 new messages