title: Connecting to MongoDB 3.0 with Java Spring
body: <p>I am having problems in using Spring to access MongoDB with credentials.
  While without credentials it works like a charme, using them just fails saying</p>
  
  <pre><code>    Failed to authenticate to database [yourdatabase], username = [yourusername], password = [x******z] 
  </code></pre>
  
  <p>It must be because of new auth default that you can read about in <a href="http://docs.mongodb.org/manual/core/authentication/">http://docs.mongodb.org/manual/core/authentication/</a></p>
  
  <blockquote>
    <p>Changed in version 3.0: SCRAM-SHA-1 is the default mechanism for MongoDB versions beginning with the 3.0 series. </p>
  </blockquote>
  
  <p><strong>Question:</strong> Anybody found out a way to use Spring with credentials ? Which version of <code>spring-data-mongodb</code> did you use to make the trick ?</p>