Skip to content

Simplify JWT: remove capability claims and enforce server-side authorization #7901

@tommaso-ascani

Description

@tommaso-ascani

Description

JWT tokens currently include capability claims, which increases token size.
The purpose of this request is to simplify token payloads and make authorization logic fully centralized on the server, so permission updates are applied consistently without relying on token-embedded capabilities.

Proposed solution

  • Remove capability claims (and non-essential profile metadata claims) from JWT payload generation in middleware.
  • Keep only minimal authentication claims required for identity and session/2FA handling.
  • Enforce permission checks server-side only (using in-memory profiles/users data and reload mechanisms already in place).

Metadata

Metadata

Assignees

No one assigned

    Labels

    nethvoiceBug or features releted to the NethVoice projectverifiedAll test cases were verified successfully

    Type

    No type

    Projects

    Status

    Verified

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions