title: How to correctly authorize into Mongo server using Scala?
body: <p>I have added authorization to my Mongo database and now I can't perform any queries whats so ever.</p>
  
  <p>Every time I try I get:</p>
  
  <blockquote>
    <p>reactivemongo.core.commands.DefaultCommandError: BSONCommandError['command failed      because the 'ok' field is missing or equals 0'] with original doc {
      ok: BSONDouble(0.0),
      errmsg: BSONString(unauthorized)
    }</p>
  </blockquote>
  
  <p>And my Authorization bit seams to be alright but it is just not doing the job:</p>
  
  <pre><code>private val driver = new MongoDriver(actorSystem)
  private val dbName = "myDatabase"
  private val userName = "root"
  private val password = "pass"
  private val credentials = Seq(Authenticate(dbName, userName, password))
  private val connection = driver.connection(List("111.111.111.11"), credentials)
  //connection.authenticate(dbName, userName, password)
  private val db = connection(dbName)
  </code></pre>
  
  <p>The user credentials were created 
  Any ideas on what is wrong here?</p>