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

Reduce JWT token size #2084

Closed
ishank011 opened this issue Sep 20, 2021 · 0 comments · Fixed by #2085
Closed

Reduce JWT token size #2084

ishank011 opened this issue Sep 20, 2021 · 0 comments · Fixed by #2085
Assignees

Comments

@ishank011
Copy link
Contributor

Based on the problems described in #1935 and the proxy workaround proving to be extremely non-performant, we'll look into reducing the size of the constructed tokens.

The size inflation is because of two objects:

  • The user groups: We'll remove the groups from the user object encoded in the token and the services requiring these will make the GRPC call to the userprovider service and maintain a local cache.
  • Scopes: We'll try to use some abbreviations for the scopes. Also, to improve performance, I added some code to prematurely expand these for public shares and lightweight accounts, but this can be reverted. I'll run some benchmarks to arrive at an acceptable tradeoff.

Related owncloud/ocis#2525

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

Successfully merging a pull request may close this issue.

1 participant