Hi,
Do you mean how do you set the bearer token when calling the REST endpoint
from the browser ?
On Fri, Aug 5, 2016 at 1:02 PM, Deepak Garg <deepakgarg.garg(a)gmail.com>
wrote:
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(a)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(a)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(a)lists.jboss.org
>>
https://lists.jboss.org/mailman/listinfo/keycloak-user
>>
>
>
>
> --
> Best Regards
> *Shiva Saxena*
> *Blog <
http://metalop.com/> | Linkedin
> <
http://in.linkedin.com/in/shivasaxena/> | StackOverflow
> <
http://stackoverflow.com/users/2490343/shiva>*
>