Provide 2 new configurations: org.hibernate.ogm.mongodb.username org.hibernate.ogm.mongodb.password
and use them into MongoDBDatastoreProvider.extractDatabase()