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

Sebastien Blanc sblanc at redhat.com
Fri Mar 3 13:36:21 EST 2017


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