How to configure KrakenD gateway with a reference token? (not jwt)

52 views Asked by At

I'm trying to put at place Krakend in my current architecture (micro services architecture), I have already an IDP (Identity Server).

KrakenD is able to self validate the jwt token, the problem is that for some use cases we are not using jwt token, we are using a reference token.

Is there any plugin to allow KrakendD to retirnve the token detail from my Identity Server? Some token meta datas are needed (client id, user id...) this will allow me to for example implementing a monetization mecanism or configuring the Rate limit per client id.

What is the better approach to have at the same time KrakenD and Reference Token?

I didn't try anything, I'm wondering how to do using KrakenD Apigateway

1

There are 1 answers

1
alo On

As far as I know there is no plugin that supports token introspection, but you could implement your own if you have Go knowledge: https://www.krakend.io/docs/extending/writing-plugins/