Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support to store JWT Token key/value pair in Redis cache #2

Closed
jmiddleton opened this issue May 24, 2018 · 3 comments
Closed

Add support to store JWT Token key/value pair in Redis cache #2

jmiddleton opened this issue May 24, 2018 · 3 comments

Comments

@jmiddleton
Copy link

The PoC implementation to use opaque tokens doesn't scale when you have multiple nginx servers in a HA solution. It would be good to have an option to use an external distributed cache like Redis or Memcached

@lcrilly
Copy link
Contributor

lcrilly commented May 24, 2018

We plan to address this by having the NGINX Plus native key-value store synchronize across a HA cluster in a future release.

@jmiddleton
Copy link
Author

I heard about that, that's good to me. Is it part of the plan to support TTL on entries?
I'm thinking if the entries will be removed from the cache once expired. If so, the opaque token PoC should work well if tokens are removed from the cache.

@lcrilly
Copy link
Contributor

lcrilly commented Sep 5, 2018

NGINX Plus R16 supports opaque tokens with the key-value store. The PoC solution for opaque_session_tokens has been upgraded and is now suitable for production use. Tokens are removed from the key-value store on a configurable TTL.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants