# Ways to support large number of scopes in OAuth?

**URL:** <https://community.auth0.com/t/ways-to-support-large-number-of-scopes-in-oauth/93360>\
**Category:** Get Help\
**Tags:** jwt, auth0\
**Created:** [October 30, 2022, 9:22am UTC](https://community.auth0.com/t/ways-to-support-large-number-of-scopes-in-oauth/93360 "2022-10-30T09:22:16Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ajaynarainmathur](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/ajaynarainmathur/32/40911_2.png) [@ajaynarainmathur](https://community.auth0.com/u/ajaynarainmathur)\
**Post date:** [October 30, 2022, 9:22am UTC](https://community.auth0.com/t/ways-to-support-large-number-of-scopes-in-oauth/93360/1 "2022-10-30T09:22:16Z")

</div>

Hi team,

As the product grows so does the number of entities, and permissions pool. The scopes are encoded in JWT and the web servers have a limit of 8kb ( going with least as of Node \< 14 and default Tomcat limit ). What are some of the ways to bypass this. Are there any established ways to mapping or compressing scopes to avoid hitting the limit?

Thanks,

---

<div class="post-metadata">

**Author:** ![ty.frith](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/ty.frith/32/58484_2.png) [@ty.frith](https://community.auth0.com/u/ty.frith)\
**Post date:** [November 3, 2022, 11:00pm UTC](https://community.auth0.com/t/ways-to-support-large-number-of-scopes-in-oauth/93360/2 "2022-11-03T23:00:39Z")

</div>

Hi there @ajaynarainmathur!

> [@ajaynarainmathur](#):
>
> What are some of the ways to bypass this. Are there any established ways to mapping or compressing scopes to avoid hitting the limit?

Have you had a chance to look into using [RBAC](https://auth0.com/docs/manage-users/access-control/rbac)? This might help cut down on scopes/permissions per token by having a collection of permissions under each role.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/auth0/original/3X/b/5/b560f266932fcce5d57f09a6595bd50518cae3f3.jpeg) [@system](https://community.auth0.com/u/system)\
**Post date:** [November 22, 2022, 10:57pm UTC](https://community.auth0.com/t/ways-to-support-large-number-of-scopes-in-oauth/93360/4 "2022-11-22T22:57:26Z")

</div>

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
