Skip to content

When user is part of multiple organizations, JWT token size limit reached #122

@AcidRaZor

Description

@AcidRaZor

When a user has access to multiple organizations, the claims role & Feature grows outside the bounds of the size limit for a cookie.

Steps to reproduce the behavior:

  1. Add a user with multiple roles and Features to multiple organizations until it breaks

Expected behavior:
Unsure to be honest. Although it might not pose a problem for most, there is a scalability issue, especially if you're an administrative person looking after multiple organizations or a user with multiple features stretched across several organizations

Snippet of a large one, but still within it's limits (for now)

"Feature": [
    "Platform_platform_trial_features",
    "Platform_platform_pro_features",
    "Platform_platform_enterprise_features",
    "Platform_platform_basic_features",
    "Tenant_tenant_trial_features#|#org_PpVJEFqv20Krx1HM72SDjw",
    "Tenant_tenant_pro_features#|#org_PpVJEFqv20Krx1HM72SDjw",
    "Tenant_tenant_enterprise_features#|#org_PpVJEFqv20Krx1HM72SDjw",
    "Tenant_Tenant_Basic_features#|#org_PpVJEFqv20Krx1HM72SDjw",
    "Tenant_tenant_trial_features#|#org_yw6lU9RJZ0eYTFizJ6ocMg",
    "Tenant_tenant_pro_features#|#org_yw6lU9RJZ0eYTFizJ6ocMg",
    "Tenant_tenant_enterprise_features#|#org_yw6lU9RJZ0eYTFizJ6ocMg",
    "Tenant_Tenant_Basic_features#|#org_yw6lU9RJZ0eYTFizJ6ocMg",
    "Tenant_tenant_trial_features#|#org_mECoLGB0rU2RUjGHloONlw",
    "Tenant_tenant_pro_features#|#org_mECoLGB0rU2RUjGHloONlw",
    "Tenant_tenant_enterprise_features#|#org_mECoLGB0rU2RUjGHloONlw",
    "Tenant_Tenant_Basic_features#|#org_mECoLGB0rU2RUjGHloONlw"
  ],

Metadata

Metadata

Assignees

No one assigned

    Labels

    design defectSomething does not work the best way, or is missing somethingfunctional defectSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions