<div dir="ltr">I can see the DefaultMongoConnectionFactoryProvider hard codes the old mongocr security:<div><br></div><div><table class="" style="border-collapse:collapse;border-spacing:0px;color:rgb(51,51,51);font-family:Helvetica,arial,nimbussansl,liberationsans,freesans,clean,sans-serif,'Apple Color Emoji','Segoe UI Emoji','Segoe UI Symbol';font-size:13px;line-height:18.2px"><tbody><tr><td id="LC189" class="" style="padding:0px 10px;vertical-align:top;font-family:Consolas,'Liberation Mono',Menlo,Courier,monospace;font-size:12px;white-space:pre;overflow:visible;word-wrap:normal"><br></td></tr><tr><td id="L191" class="" style="padding:0px 10px;width:50px;min-width:50px;white-space:nowrap;font-family:Consolas,'Liberation Mono',Menlo,Courier,monospace;font-size:12px;line-height:18px;color:rgba(0,0,0,0.298039);vertical-align:top;text-align:right;border-style:solid;border-color:rgb(238,238,238);border-width:0px 1px 0px 0px"></td><td id="LC191" class="" style="padding:0px 10px;vertical-align:top;font-family:Consolas,'Liberation Mono',Menlo,Courier,monospace;font-size:12px;white-space:pre;overflow:visible;word-wrap:normal"> <span class="">MongoCredential</span> credential <span class="" style="color:rgb(167,29,93)">=</span> <span class="">MongoCredential</span><span class="" style="color:rgb(167,29,93)">.</span>createMongoCRCredential(user, dbName, password<span class="" style="color:rgb(167,29,93)">.</span>toCharArray());</td></tr><tr><td id="L192" class="" style="padding:0px 10px;width:50px;min-width:50px;white-space:nowrap;font-family:Consolas,'Liberation Mono',Menlo,Courier,monospace;font-size:12px;line-height:18px;color:rgba(0,0,0,0.298039);vertical-align:top;text-align:right;border-style:solid;border-color:rgb(238,238,238);border-width:0px 1px 0px 0px"></td><td id="LC192" class="" style="padding:0px 10px;vertical-align:top;font-family:Consolas,'Liberation Mono',Menlo,Courier,monospace;font-size:12px;white-space:pre;overflow:visible;word-wrap:normal"> client <span class="" style="color:rgb(167,29,93)">=</span> <span class="" style="color:rgb(167,29,93)">new</span> <span class="">MongoClient</span>(<span class="" style="color:rgb(167,29,93)">new</span> <span class="">ServerAddress</span>(host, port), <span class="">Collections</span><span class="" style="color:rgb(167,29,93)">.</span>singletonList(credential), clientOptions);</td></tr><tr><td id="L193" class="" style="padding:0px 10px;width:50px;min-width:50px;white-space:nowrap;font-family:Consolas,'Liberation Mono',Menlo,Courier,monospace;font-size:12px;line-height:18px;color:rgba(0,0,0,0.298039);vertical-align:top;text-align:right;border-style:solid;border-color:rgb(238,238,238);border-width:0px 1px 0px 0px"></td><td id="LC193" class="" style="padding:0px 10px;vertical-align:top;font-family:Consolas,'Liberation Mono',Menlo,Courier,monospace;font-size:12px;white-space:pre;overflow:visible;word-wrap:normal"> } <span class="" style="color:rgb(167,29,93)">else</span> {</td></tr><tr><td id="L194" class="" style="padding:0px 10px;width:50px;min-width:50px;white-space:nowrap;font-family:Consolas,'Liberation Mono',Menlo,Courier,monospace;font-size:12px;line-height:18px;color:rgba(0,0,0,0.298039);vertical-align:top;text-align:right;border-style:solid;border-color:rgb(238,238,238);border-width:0px 1px 0px 0px"></td><td id="LC194" class="" style="padding:0px 10px;vertical-align:top;font-family:Consolas,'Liberation Mono',Menlo,Courier,monospace;font-size:12px;white-space:pre;overflow:visible;word-wrap:normal"> client <span class="" style="color:rgb(167,29,93)">=</span> <span class="" style="color:rgb(167,29,93)">new</span> <span class="">MongoClient</span>(<span class="" style="color:rgb(167,29,93)">new</span> <span class="">ServerAddress</span>(host, port), clientOptions);</td></tr><tr><td id="L195" class="" style="padding:0px 10px;width:50px;min-width:50px;white-space:nowrap;font-family:Consolas,'Liberation Mono',Menlo,Courier,monospace;font-size:12px;line-height:18px;color:rgba(0,0,0,0.298039);vertical-align:top;text-align:right;border-style:solid;border-color:rgb(238,238,238);border-width:0px 1px 0px 0px"></td><td id="LC195" class="" style="padding:0px 10px;vertical-align:top;font-family:Consolas,'Liberation Mono',Menlo,Courier,monospace;font-size:12px;white-space:pre;overflow:visible;word-wrap:normal"> }
</td></tr></tbody></table>It should be using:</div><div><div>MongoCredential credential = MongoCredential.createScramSha1Credential(</div><div><span class="" style="white-space:pre">                                </span>System.getProperty("mongouser"),</div><div><span class="" style="white-space:pre">                                </span>System.getProperty("mongodatabase"),</div><div><span class="" style="white-space:pre">                                </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>