title: Authentication in mongoose using SCRAM-SHA-1
body: <p>I recently upgraded from MongoDB 2.6 to 3.0.4 and also upgraded the Mongoose version to 4.0.0.</p>
  
  <p>Now when ever i try to connect to mongo using mongoose:</p>
  
  <pre><code>mongoose.connect('mongodb://user:password@host:port/dbname')
  </code></pre>
  
  <p>On mongo logs i receive this message</p>
  
  <blockquote>
    <p>SCRAM-SHA-1 authentication failed for user on dbname from client
    xxx.xxx.xxx.xxx</p>
  </blockquote>
  
  <p>I checked in mongodb, the user exists in the admin. The command that i used is
  <code>db.system.users.findOne({user:'user'})</code></p>
  
  <p>The information returned by this statement contains SCRAM-SHA-1 information. </p>
  
  <p>My question is how to specify SCRAM related information in mongoose while establishing connection. I read lots of articles, but failed to understand how its done</p>