<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">It depends if keycloak-nodejs adapter
      has some nice support for "inject" the custom value of scope
      parameter into the initial Keycloak login ( AuthorizationEndpoint
      ) URL.<br>
      <br>
      Our java adapter has support for it, as it "forwards" the value of
      scope parameter from the secured URL to the Keycloak login URL.
      For example if you open
      <a class="moz-txt-link-rfc2396E" href="http://localhost:/yourapp/secured?scope=offline_access">"http://localhost:/yourapp/secured?scope=offline_access"</a>, the
      adapter forwards the "scope=offline_access" to the Keycloak. Our
      keycloak.js adapter also has support for adding custom scope.
      However not really sure about keycloak-nodejs-connect.<br>
      <br>
      Maybe either someone more familiar with keycloak nodeJS adapter
      will reply. Or you can try to dig yourself and eventually create
      JIRA (or even better send PR) for adding the missing
      functionality.<br>
      <br>
      Marek<br>
      <br>
      On 30/08/16 11:51, sheishere b wrote:<br>
    </div>
    <blockquote
cite="mid:CAKmGKAFZN=51JEHYr3JiPs-32dUyo4Ec_P1y9VEUuNB9_3iHVA@mail.gmail.com"
      type="cite">
      <div dir="ltr">
        <div>Hello,</div>
        <div><br>
        </div>
        <div>From nodejs, I am trying to integrate with keycloak server.</div>
        <div>Have followed the steps mentioned in <a
            moz-do-not-send="true"
            href="https://github.com/keycloak/keycloak-nodejs-connect"><a class="moz-txt-link-freetext" href="https://github.com/keycloak/keycloak-nodejs-connect">https://github.com/keycloak/keycloak-nodejs-connect</a></a> </div>
        <div>But I need to use offline access to generate offline token
          as mentioned here, <a moz-do-not-send="true"
href="https://keycloak.gitbooks.io/server-adminstration-guide/content/v/2.1/topics/sessions/offline.html">https://keycloak.gitbooks.io/server-adminstration-guide/content/v/2.1/topics/sessions/offline.html</a> </div>
        <div>How can this be done from nodejs?</div>
      </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>