I am trying to use OAuth2 on rabbitmq with provider Azure AD (only for the management UI). I am using RabbitMQ 3.11.26 with three node cluster.
On rabbitmq side, I have put this configuration :
auth_backends.1 = rabbit_auth_backend_oauth2
auth_backends.2 = rabbit_auth_backend_internal
auth_oauth2.https.peer_verification = verify_none
auth_oauth2.resource_server_id=<client_id>
auth_oauth2.jwks_url=
https://login.microsoftonline.com/<Tenat ID>/discovery/v2.0/keys
auth_oauth2.additional_scopes_key=roles
management.oauth_enabled=true
management.oauth_client_id=<client ID>
management.oauth_provider_url=
https://login.microsoftonline.com/<Tenat ID>
When I connect to management UI I have the 'Click Here to Login' Button as expected with the used plugin but when I click, I have Not Authorized error.
Authentication using an OAuth 2/JWT token failed: {error,{failed_connect,[{to_address,{"login.microsoftonline.com",443}}, {inet,[inet],closed}]}}
JWT content looks good for me. I can see the roles as well.
Please help me to resolve this issue.