<div dir="ltr">Even better a PR as well ;)</div><div class="gmail_extra"><br><div class="gmail_quote">On 26 January 2016 at 21:30, Marek Posolda <span dir="ltr"><<a href="mailto:mposolda@redhat.com" target="_blank">mposolda@redhat.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div bgcolor="#FFFFFF" text="#000000">
<div>Hi,<br>
<br>
could you please create JIRA for this?<br>
<br>
Thanks,<br>
Marek<div><div class="h5"><br>
<br>
On 26/01/16 18:53, Dean Peterson wrote:<br>
</div></div></div>
<blockquote type="cite"><div><div class="h5">
<div dir="ltr">I can see the DefaultMongoConnectionFactoryProvider
hard codes the old mongocr security:
<div><br>
</div>
<div>
<table>
<tbody>
<tr>
<td style="padding:0px 10px;vertical-align:top;font-family:Consolas,'Liberation Mono',Menlo,Courier,monospace;font-size:12px;white-space:pre-wrap;overflow:visible;word-wrap:normal">
</td>
</tr>
<tr>
<td><br>
</td>
<td style="padding:0px 10px;vertical-align:top;font-family:Consolas,'Liberation Mono',Menlo,Courier,monospace;font-size:12px;white-space:pre-wrap;overflow:visible;word-wrap:normal"> <span>MongoCredential</span> credential <span style="color:rgb(167,29,93)">=</span> <span>MongoCredential</span><span style="color:rgb(167,29,93)">.</span>createMongoCRCredential(user, dbName, password<span style="color:rgb(167,29,93)">.</span>toCharArray());</td>
</tr>
<tr>
<td><br>
</td>
<td style="padding:0px 10px;vertical-align:top;font-family:Consolas,'Liberation Mono',Menlo,Courier,monospace;font-size:12px;white-space:pre-wrap;overflow:visible;word-wrap:normal"> client <span style="color:rgb(167,29,93)">=</span> <span style="color:rgb(167,29,93)">new</span> <span>MongoClient</span>(<span style="color:rgb(167,29,93)">new</span> <span>ServerAddress</span>(host, port), <span>Collections</span><span style="color:rgb(167,29,93)">.</span>singletonList(credential), clientOptions);</td>
</tr>
<tr>
<td><br>
</td>
<td style="padding:0px 10px;vertical-align:top;font-family:Consolas,'Liberation Mono',Menlo,Courier,monospace;font-size:12px;white-space:pre-wrap;overflow:visible;word-wrap:normal"> } <span style="color:rgb(167,29,93)">else</span> {</td>
</tr>
<tr>
<td><br>
</td>
<td style="padding:0px 10px;vertical-align:top;font-family:Consolas,'Liberation Mono',Menlo,Courier,monospace;font-size:12px;white-space:pre-wrap;overflow:visible;word-wrap:normal"> client <span style="color:rgb(167,29,93)">=</span> <span style="color:rgb(167,29,93)">new</span> <span>MongoClient</span>(<span style="color:rgb(167,29,93)">new</span> <span>ServerAddress</span>(host, port), clientOptions);</td>
</tr>
<tr>
<td><br>
</td>
<td style="padding:0px 10px;vertical-align:top;font-family:Consolas,'Liberation Mono',Menlo,Courier,monospace;font-size:12px;white-space:pre-wrap;overflow:visible;word-wrap:normal"> }
</td>
</tr>
</tbody>
</table>
It should be using:</div>
<div>
<div>MongoCredential credential =
MongoCredential.createScramSha1Credential(</div>
<div><span style="white-space:pre-wrap">                                </span>System.getProperty("mongouser"),</div>
<div><span style="white-space:pre-wrap">                                </span>System.getProperty("mongodatabase"),</div>
<div><span style="white-space:pre-wrap">                                </span>System.getProperty("mongopassword").toCharArray());</div>
</div>
</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">On Tue, Jan 26, 2016 at 11:40 AM, Dean
Peterson <span dir="ltr"><<a href="mailto:peterson.dean@gmail.com" target="_blank">peterson.dean@gmail.com</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr">Does keycloak v1.3.1 support mongodb 3.0 and
it's new default scram-sha security? If not, do later
versions support it?</div>
</blockquote>
</div>
<br>
</div>
<br>
<fieldset></fieldset>
<br>
</div></div><pre>_______________________________________________
keycloak-user mailing list
<a href="mailto:keycloak-user@lists.jboss.org" target="_blank">keycloak-user@lists.jboss.org</a>
<a href="https://lists.jboss.org/mailman/listinfo/keycloak-user" target="_blank">https://lists.jboss.org/mailman/listinfo/keycloak-user</a></pre>
</blockquote>
<br>
</div>
<br>_______________________________________________<br>
keycloak-user mailing list<br>
<a href="mailto:keycloak-user@lists.jboss.org">keycloak-user@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/keycloak-user" rel="noreferrer" target="_blank">https://lists.jboss.org/mailman/listinfo/keycloak-user</a><br></blockquote></div><br></div>