<div dir="ltr">Do we support offline_access param in Node.js adapter?</div><div class="gmail_extra"><br><div class="gmail_quote">On 31 August 2016 at 09:11, Marek Posolda <span dir="ltr">&lt;<a href="mailto:mposolda@redhat.com" target="_blank">mposolda@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">
  
    
  
  <div bgcolor="#FFFFFF" text="#000000">
    <div>It depends if keycloak-nodejs adapter
      has some nice support for &quot;inject&quot; the custom value of scope
      parameter into the initial Keycloak login ( AuthorizationEndpoint
      ) URL.<br>
      <br>
      Our java adapter has support for it, as it &quot;forwards&quot; the value of
      scope parameter from the secured URL to the Keycloak login URL.
      For example if you open
      <a href="http://localhost:/yourapp/secured?scope=offline_access" target="_blank">&quot;http://localhost:/yourapp/<wbr>secured?scope=offline_access&quot;</a>, the
      adapter forwards the &quot;scope=offline_access&quot; 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<div><div class="h5"><br>
      <br>
      On 30/08/16 11:51, sheishere b wrote:<br>
    </div></div></div>
    <blockquote type="cite"><div><div class="h5">
      <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 href="https://github.com/keycloak/keycloak-nodejs-connect" target="_blank"></a><a href="https://github.com/keycloak/keycloak-nodejs-connect" target="_blank">https://github.com/keycloak/<wbr>keycloak-nodejs-connect</a> </div>
        <div>But I need to use offline access to generate offline token
          as mentioned here, <a href="https://keycloak.gitbooks.io/server-adminstration-guide/content/v/2.1/topics/sessions/offline.html" target="_blank">https://keycloak.gitbooks.io/<wbr>server-adminstration-guide/<wbr>content/v/2.1/topics/sessions/<wbr>offline.html</a> </div>
        <div>How can this be done from nodejs?</div>
      </div>
      <br>
      <fieldset></fieldset>
      <br>
      </div></div><pre>______________________________<wbr>_________________
keycloak-user mailing list
<a href="mailto:keycloak-user@lists.jboss.org" target="_blank">keycloak-user@lists.jboss.org</a>
<a href="https://lists.jboss.org/mailman/listinfo/keycloak-user" target="_blank">https://lists.jboss.org/<wbr>mailman/listinfo/keycloak-user</a></pre>
    </blockquote>
    <br>
  </div>

<br>______________________________<wbr>_________________<br>
keycloak-user mailing list<br>
<a href="mailto:keycloak-user@lists.jboss.org">keycloak-user@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/keycloak-user" rel="noreferrer" target="_blank">https://lists.jboss.org/<wbr>mailman/listinfo/keycloak-user</a><br></blockquote></div><br></div>