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

caching the users roles #2

Open
tttp opened this issue Nov 22, 2022 · 0 comments
Open

caching the users roles #2

tttp opened this issue Nov 22, 2022 · 0 comments
Labels
enhancement New feature or request

Comments

@tttp
Copy link
Member

tttp commented Nov 22, 2022

right now, at every request, we are querying an api on proca-server that:

  • validate the jwt
  • returns the list of orgs belonging to the user

to improve performance, we could cache the result of that request for the duration of the jwt validity and check if the roles are in the cache before hitting the server

@tttp tttp added the enhancement New feature or request label Nov 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant