Hi Shiva,

Thanks for the reply. I have already gone through this article.

I am specially looking for how to set the access type to bearer when using the API from other application and pass on the token? How to pass the authentication token to API and how keycloak would determine the same?

Also, I may need to change the keycloak.json as well based upon access type

Please suggest me example based upon above requirement.

Thanks,
Deepak

On Fri, Aug 5, 2016 at 12:24 PM, Shiva Saxena <shivasaxena999@gmail.com> wrote:
Hi Deepak,

You can check this example on github
https://github.com/keycloak/keycloak-nodejs-connect

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.

On Fri, Aug 5, 2016 at 9:59 AM, Deepak Garg <deepakgarg.garg@gmail.com> wrote:
Hi,

I have created a nodeJS rest api application. I want to secure my nodeJS API layer using keycloak. 

Please suggest me how I can achieve the same?

What configuration I need to do in the admin keycloak console? like under client->access type should be public or bearer only?


Thanks,
Deepak

_______________________________________________
keycloak-user mailing list
keycloak-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/keycloak-user



--
Best Regards
Shiva Saxena