Forum Discussion

saradhipb's avatar
saradhipb
Occasional Contributor
9 years ago

SCRAM-SHA-1 mongodb authentication using SOAP UI grrovy

I am trying to write a script for connecting mongodb on the server using groovy, MongoDB uses 'SCRAM-SHA-1' auth mechanism, application is in SSL mode. I have imported key strokes in VM options file,...
  • saradhipb's avatar
    saradhipb
    9 years ago

    Finally I got a solution by using MongoClientOptions

    (MongoClientOptions.builder().sslEnabled(true).sslInvalidHostNameAllowed(true).build())