<html>
  <head>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    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 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"
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">cmoulliard@redhat.com</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>
  </body>
</html>