motiv-labs / janus

An API Gateway written in Go
https://hellofresh.gitbooks.io/janus
MIT License
2.79k stars 317 forks source link

JWT - Revoke Token #333

Closed RodriigoGS closed 5 years ago

RodriigoGS commented 6 years ago

Hello!

Have you found any solutions to revoke the token with JWT?

Regards, Rodrigo Silveira.

vgarvardt commented 6 years ago

At the moment there are two available strategies for JWT tokens verification:

More details are available at https://hellofresh.gitbooks.io/janus/content/auth/oauth.html

In the past, in the first versions of Janus, we used to have redis storage strategy, that used to save all issued/refreshed tokens to redis storage and removed them on successfull revoke requests, but then we removed this approach as it was not very reliable.