[keycloak-user] Javascript Adapter vs Node Adapter

Adnan Khan akhan at an10.io
Thu Mar 21 13:55:54 EDT 2019


Awesome, thank you! This was just what I was looking for. I was trying to
do that using keycloaks endpoints but I was having problems with CORS. I’ll
try using the adapter, hopefully that’ll solve the problem. Otherwise I’ll
get back on this thread 👍🏼

On Thu, 21 Mar 2019 at 9:55 pm, Sebastien Blanc <sblanc at redhat.com> wrote:

>
>
> 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