You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Consider adding support for OAUTH2 by auto-configuring CredentialsProvider and CredentialsRefreshService beans (if present and unique) into the RabbitConnectionFactoryBean.
@garyrussell Does that mean Spring Boot would autoconfigure the CredentialsProvider and CredentialsRefreshService beans or are you suggesting we set them on the RabbitConnectionFactoryBean only if a user provides them?
@mbhave I was just thinking that Boot should detect the presence of the @Beans and wire them in.
That said, there is only one (non-standard) implementation OAuth2ClientCredentialsGrantCredentialsProvider provided by RabbitMQ (and a DefaultCredentialsRefreshService) so I suppose we could configure them.
But I think it would be more flexible just to detect the beans - that way, the user can provide his/her own implementation.
wilkinsona
changed the title
RabbitMQ Auto Configuration Improvement
Auto-configure Rabbit connection factory with CredentialsProvider and CredentialsRefreshService when available
Jul 7, 2020
Consider adding support for OAUTH2 by auto-configuring
CredentialsProvider
andCredentialsRefreshService
beans (if present and unique) into theRabbitConnectionFactoryBean
.2.4.x only; requires this PR to be merged: spring-projects/spring-amqp#1212
The text was updated successfully, but these errors were encountered: