Exception authenticating MongoCredential

I am receiving the Exception below.

{“date”:“2022-05-25T18:51:45.079195Z”,“level”:“ERROR”,“systemName”:“LPA_ULAD”,“targetBusiness”:“SFUW”,“applicationMessage”:“Error occurred during get
TotalCountByQuery”,“threadId”:82,“contextMap”:{},“applicationContext”:{},“applicationException”:" org.springframework.data.mongodb.UncategorizedMongo
DbException: Exception authenticating MongoCredential{mechanism=SCRAM-SHA-1, userName=‘admin’, source=‘admin’, password=, mechanismProperties
=}; nested exception is com.mongodb.MongoSecurityException: Exception authenticating MongoCredential{mechanism=SCRAM-SHA-1, userName=‘admin’,
source=‘admin’, password=, mechanismProperties=}\r\n\tat org.springframework.data.mongodb.core.MongoExceptionTranslator.translateExc
eptionIfPossible(MongoExceptionTranslator.java:140)\r\n\tat org.springframework.data.mongodb.core.MongoTemplate.potentiallyConvertRuntimeException(Mo
ngoTemplate.java:2899)\r\n\tat org.springframework.data.mongodb.core.MongoTemplate.execute(MongoTemplate.java:555)\r\n\tat org.springframework.data.m
ongodb.core.MongoTemplate.doCount(MongoTemplate.java:1130)\r\n\tat org.springframework.data.mongodb.core.MongoTemplate.count(MongoTemplate.java:1120)
\r\n\tat org.springframework.data.mongodb.core.MongoTemplate.count(MongoTemplate.java:1103)

I have been able to log onto the mongodb via shell just fine but cannot access via Springboot Application.

I Have configured my code to use 2 MongoTemplates for 2 Seperate Mongo Sessions one on 27017 and one on 27018. Not sure why I am getting this Exception.