<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    And the java client adapter uses these values <br>
    <br>
    /**<br>
     * Configuration for Java based adapters<br>
     *<br>
     * @author &lt;a href=<a class="moz-txt-link-rfc2396E" href="mailto:bill@burkecentral.com">"mailto:bill@burkecentral.com"</a>&gt;Bill
    Burke&lt;/a&gt;<br>
     * @version $Revision: 1 $<br>
     */<br>
    @JsonPropertyOrder({"realm", "realm-public-key", "auth-server-url",
    "ssl-required",<br>
            "resource", "public-client", "credentials",<br>
            "use-resource-role-mappings",<br>
            "enable-cors", "cors-max-age", "cors-allowed-methods",<br>
            "expose-token", "bearer-only",<br>
            "connection-pool-size",<br>
            "allow-any-hostname", "disable-trust-manager", "truststore",
    "truststore-password",<br>
            "client-keystore", "client-keystore-password",
    "client-key-password",<br>
            "auth-server-url-for-backend-requests",
    "always-refresh-token",<br>
            "register-node-at-startup", "register-node-period",
    "token-store", "principal-attribute"<br>
    })<br>
    <br>
    On 04/03/16 18:39, Charles Moulliard wrote:<br>
    <blockquote cite="mid:56D9C865.40407@redhat.com" type="cite">
      <meta content="text/html; charset=windows-1252"
        http-equiv="Content-Type">
      So only these fields are required for the keycloak.js client ?<br>
      <br>
                                  kc.authServerUrl =
      config['auth-server-url'];<br>
                                  kc.realm = config['realm'];<br>
                                  kc.clientId = config['resource'];<br>
                                  kc.clientSecret =
      (config['credentials'] || {})['secret'];<br>
      <br>
      My confusion comes from that chapter which refers to the adapter
      config doc (<a moz-do-not-send="true"
        class="moz-txt-link-freetext"
href="http://keycloak.github.io/docs/userguide/keycloak-server/html/ch08.html#adapter-config">http://keycloak.github.io/docs/userguide/keycloak-server/html/ch08.html#adapter-config</a>).

      As js is also an adapter, I was thinking that all these values
      were also used by js client ;-)<br>
      <br>
      <br>
      On 04/03/16 18:18, Sebastien Blanc wrote:<br>
      <blockquote
cite="mid:CAMZCGg_CkszcwYxGN2GTaqc8FYPb2dka54Jhv4cSTXMHXaAkfA@mail.gmail.com"
        type="cite">
        <div dir="ltr">No CORS stuff needed as the keycloak.json will
          always be on the same domain as the app, it happens here <a
            moz-do-not-send="true" class="moz-txt-link-freetext"
href="https://github.com/keycloak/keycloak-js-bower/blob/master/dist/keycloak.js#L523"><a class="moz-txt-link-freetext" href="https://github.com/keycloak/keycloak-js-bower/blob/master/dist/keycloak.js#L523">https://github.com/keycloak/keycloak-js-bower/blob/master/dist/keycloak.js#L523</a></a><br>
        </div>
        <div class="gmail_extra"><br>
          <div class="gmail_quote">On Fri, Mar 4, 2016 at 6:12 PM,
            Charles Moulliard <span dir="ltr">&lt;<a
                moz-do-not-send="true"
                href="mailto:cmoulliard@redhat.com" target="_blank"><a class="moz-txt-link-abbreviated" href="mailto:cmoulliard@redhat.com">cmoulliard@redhat.com</a></a>&gt;</span>
            wrote:<br>
            <blockquote class="gmail_quote" style="margin:0 0 0
              .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
              <br>
              How is the keycloak.json file loaded by the keycloak.js
              script as I<br>
              don't see any value like this "cors-allowed-methods"
              within the<br>
              keycloak.js file ?<br>
              <br>
              Regards,<br>
              <br>
              Charles<br>
              _______________________________________________<br>
              keycloak-user mailing list<br>
              <a moz-do-not-send="true"
                href="mailto:keycloak-user@lists.jboss.org">keycloak-user@lists.jboss.org</a><br>
              <a moz-do-not-send="true"
                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>
      </blockquote>
      <br>
      <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>