[keycloak-user] Javascript Adapter vs Node Adapter

Sebastien Blanc sblanc at redhat.com
Thu Mar 21 12:55:46 EDT 2019


On Tue, Mar 19, 2019 at 11:48 AM Adnan Khan <akhan at an10.io> wrote:

> Hi folks,
>
> I'm a junior javascript developer and am looking into ways to implement SSO
> using keycloak. My applications are javascript with backend rest node and
> front-end vue. Before I go deeper into implementation I wanted to
> understand why is there a javascript adapter and a node adapter as well. I
> understand that the javascript adapter is client side and the node adapter
> is server side. How do you authenticate a resource(end-point) from a
> client-side adapter?
>
On your front-end app you use the keycloak.js (the Javascript adapter) to
performs the login (with the redirect etc ...) , Keycloak will return you
tokens. On of this token is the access token that you can use to call a
resource (by passing the Authorization header with value "Bearer
your_access_token" , probably secured with nodejs adapter in your case.

>
> Another thing that's confusing me is keycloak.js, what is it? how is it
> used and its pros and cons?
>
> Thank you in anticipation and for bearing with the relatively noob
> questions.
>
> Regards,
> Adnan A. Khan
> _______________________________________________
> keycloak-user mailing list
> keycloak-user at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/keycloak-user
>


More information about the keycloak-user mailing list