Authentication failure in Java

Hello dear Community, I am using the hibernate OGM framework to make using mongo easier. But every time when I am trying to create a connection i get this Error:

The properties arent false, its the right password and user…
Thank you for helping

Here’s your problem:

Caused by: com.mongodb.MongoSecurityException: Exception authenticating MongoCredential{mechanism=SCRAM-SHA-1, userName='admin', source='admin', password=<hidden>, mechanismProperties={}}

It’s not authenticating. Figure out why it’s not doing so, and you’ve found the problem.