<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">Hi,<br>
      <br>
      could you please create JIRA for this?<br>
      <br>
      Thanks,<br>
      Marek<br>
      <br>
      On 26/01/16 18:53, Dean Peterson wrote:<br>
    </div>
    <blockquote
cite="mid:CAFGzvP=kn8twgtBdoEt607oqBYgcUVwg9NeaQ+3818UEW46eRw@mail.gmail.com"
      type="cite">
      <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">
</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"><br>
                </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"><br>
                </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"><br>
                </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"><br>
                </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"><br>
                </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">&lt;<a moz-do-not-send="true"
              href="mailto:peterson.dean@gmail.com" target="_blank">peterson.dean@gmail.com</a>&gt;</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 class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
keycloak-user mailing list
<a class="moz-txt-link-abbreviated" href="mailto:keycloak-user@lists.jboss.org">keycloak-user@lists.jboss.org</a>
<a class="moz-txt-link-freetext" href="https://lists.jboss.org/mailman/listinfo/keycloak-user">https://lists.jboss.org/mailman/listinfo/keycloak-user</a></pre>
    </blockquote>
    <br>
  </body>
</html>