Authorization does not respect spring boot properties spring.data.mongodb.authentication-database
#4396
Labels
for: external-project
For an external project and not something we can fix
I am using org.springframework.boot:spring-boot-starter-data-mongodb:3.1.0 with reactive repositories and MongoDB 6.0.6.
When below application.yml is supplied to Spring Boot:
Spring Data MongoDB always connects to "other" database for authorization when a query is performed, while expected behaviour is to connect to "admin" as configured above. The configuration
spring.data.mongodb.authentication-database
is ignored. This issue can also be observed in Spring Data MongoDB logging.Exception Log:
The text was updated successfully, but these errors were encountered: