Skip to content

Custom Role Claim Support in Zilla JWT Validation #1476

Description

@JVaghela-Fintech

Feature Request

Zilla’s JWT authorization only validates the scope claim (e.g., scope: "openid profile email") for permissions, ignoring custom RBAC claims like:

{
  "role": "Admin",         // Ignored
  "groups": ["Viewer"],    // Ignored
  "scope": "read:data"     // Only this is used
}

Requested Change

Extend Zilla’s JWT validator to:

  • Support custom RBAC claims (e.g., role, groups, realm_access.roles)
  • Configurable claim names (to support standards like Keycloak, Auth0, or custom IdPs).
  • Override scope-only validation
  • Allow role/groups to work alongside or replace scope checks.

Backward Compatibility

  • Retain scope support for legacy use cases.
  • Make custom claims opt-in (no breaking changes).

Metadata

Metadata

Assignees

Labels

No labels
No labels
No fields configured for Feature.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions