<div dir="ltr">Hi Deepak,<div><br></div><div>You can check this example on github</div><div><a href="https://github.com/keycloak/keycloak-nodejs-connect">https://github.com/keycloak/keycloak-nodejs-connect</a><br></div><div><br></div><div>In the admin console you will need to add a new application, it can be public or bearer depends, on the fact that will your API be directly called and request authentication or they will be called inside a pre authenticated app and just pass the token previously obtained.</div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Aug 5, 2016 at 9:59 AM, Deepak Garg <span dir="ltr">&lt;<a href="mailto:deepakgarg.garg@gmail.com" target="_blank">deepakgarg.garg@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">Hi,<div><br></div><div>I have created a nodeJS rest api application. I want to secure my nodeJS API layer using keycloak. </div><div><br></div><div>Please suggest me how I can achieve the same?</div><div><br></div><div>What configuration I need to do in the admin keycloak console? like under client-&gt;access type should be public or bearer only?</div><div><br></div><div><br></div><div>Thanks,</div><div>Deepak</div></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><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><font face="Calibri,sans-serif" color="#000000" style="font-family:Calibri,sans-serif"><div style="line-height:21.2999992370605px"><font size="2">Best Regards</font></div></font><div style="line-height:21.2999992370605px;color:rgb(68,68,68);font-family:Calibri,sans-serif"><font color="#2672ec" style="line-height:normal"><span style="line-height:21px"><font style="line-height:normal"><b style="line-height:22.7199993133545px"><font face="Calibri" style="line-height:normal" size="2">Shiva Saxena</font></b></font></span><font face="Calibri"><span style="line-height:21px"><font style="line-height:normal" size="2"><b style="line-height:18.4599990844727px">                   </b></font></span></font></font><div style="line-height:21px"><font style="line-height:normal" size="2"><b style="line-height:18.4599990844727px"><font face="Calibri" color="#2672ec" style="line-height:normal"><a href="http://metalop.com/" style="line-height:18.4599990844727px;font-weight:inherit;color:blue" target="_blank">Blog</a></font><font color="#444444" style="line-height:normal"> | <a href="http://in.linkedin.com/in/shivasaxena/" style="line-height:18.4599990844727px;font-weight:inherit;color:blue" target="_blank">Linkedin</a> | <a href="http://stackoverflow.com/users/2490343/shiva" style="line-height:18.4599990844727px;font-weight:inherit;color:blue" target="_blank">StackOverflow</a></font></b></font></div></div></div></div></div></div>
</div></div>