Hibernate OGM with MongoDB and SCRAM_SHA_256 authentication

Hello,

I’m using MongoDB with SCRAM_SHA_256 authentication mechanism and trying to make it work with Hibernate OGM. It seems however that OGM is not supporting this mechanism, or at least I can’t see valid values for hibernate.ogm.mongodb.authentication_mechanism in persistence.xml?

I tried other parameter values (e.g. SCRAM_SHA_1) but all I get are authentication errors.

Are there any workarounds or any plans to support this in the future?

I’m using “Hibernate-ogm-mongodb 5.4.1-Final” and MongoDB 4.2.6 (deployed using MongoDB community Kubernetes operator)

Thx a lot and kind regards,
Anze