[keycloak-user] Authenticate a REST API with keycloak in express node js without using adapters

Sebastien Blanc sblanc at redhat.com
Fri Mar 3 16:47:53 EST 2017


Well the adapter works with bearer only , what is the error that you are
getting ?
Le ven. 3 mars 2017 à 21:26, Saransh Kumar <skm.8896 at gmail.com> a écrit :

> Hii Sebastien,
>
> Actually, the node js kc adapter is not working with bearer auth only.
> So, I need to verify the access token myself with keycloak in node js
> without using node js adapter or any other adapters.
> Please help me out in this  way.
>
> Thanks in advance.
> Saransh
>
> On Sat, Mar 4, 2017 at 12:06 AM, Sebastien Blanc <sblanc at redhat.com>
> wrote:
>
>
>
> On Fri, Mar 3, 2017 at 7:04 PM, Saransh Kumar <skm.8896 at gmail.com> wrote:
>
> Hello all,
>
> I have a REST API in express node js.
> I want to secure it with keycloak bearer auth only.
> So, a keycloak token would be recieved in the Authorization header of the
> GET request to the REST API.
> I have to verify the token with keycloak *without using any adapters.*
> Please help me out in the process.
>
> Are you not allowed to add any extra packages ? Just lookup the source
> code of the nodejs kc adapter and paste it into your app ;)
>
>
>
> Thanks in advance
> Saransh
> _______________________________________________
> 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