You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Title:
Add token cache for the jwt authentication.
Description
JWT verification adds a significant latency. So it's better to have token cache: to cache the tokens with their verification results. Currently, jwt_authn filter only has jwks cache [1].
Activity
qiwzhang commentedon Aug 14, 2020
It is a reasonable request. Thanks
mk46 commentedon Oct 6, 2020
Hi @AmaliMatharaarachchi, Are you working on this issue? If not then I would like to take up this.
AmaliMatharaarachchi commentedon Oct 7, 2020
@mk46 No, I'm not working on it. Thanks, please take it.
mk46 commentedon Dec 3, 2020
@qiwzhang Could you please suggest where to start? Similar to jwks_cache.h/cc
qiwzhang commentedon Dec 3, 2020
The easier way is to add token cache feature into JwksCache class.
The the class name may be confusing, we could rename it to "Cache".
Add two functions:
class TokenResult, may need to store
token payload, payStruct, etc. for successful token, or failure status
mk46 commentedon Dec 7, 2020
@qiwzhang Thanks!. I've some quick questions.
Needs to add in JwksData or in JwksCache class?
Could we use ::google::jwt_verify::Jwt instead of TokenResult?
qiwzhang commentedon Dec 7, 2020
StatusThanks