patrickpissurno / fastify-esso

The easiest authentication plugin for Fastify, with built-in support for single sign-on (SSO)
https://npm.im/fastify-esso
MIT License
52 stars 6 forks source link

How to integrate this code with keycloak? #20

Closed clabnet closed 1 year ago

clabnet commented 1 year ago

Hello, I have a running local instance of keycloak server and one Fastify microservice with REST APIs. I need to authenticate these routes with token produced by keycloak. Can you tell me please how to verify token created by keycloak on Fastify server using fastify-esso ? Thanks in advance

patrickpissurno commented 1 year ago

So, that's something out of scope for this project. Currently, it only supports validating tokens it generated itself. Adding support for a different generator would increase complexity, so at least for now, it's not something I'm planning to support.

Thanks