Skip to content

fix: assign jwt roles to user based on actual roleMapping entries - #1913

Open
jescalada wants to merge 1 commit into
mainfrom
improve-jwt-role-mapping
Open

jescalada wants to merge 1 commit into
mainfrom
improve-jwt-role-mapping

Conversation

@jescalada

@jescalada jescalada commented Nov 23, 2026 •

Copy link
Copy Markdown
Contributor

Description

Originally reported by @prnjlksingh

Improves JWT auth implementation to use actual roleMapping entries instead of assigning the whole payload to the user.

Related Issue

Resolves #

Checklist

General

Documentation

  • Documentation has been added/updated for any new features

Configuration

  • If configuration schema (config.schema.json) was modified:
    • TypeScript types regenerated (npm run generate-config-types)
    • Schema reference docs regenerated (npm run gen-schema-doc)

Tests

  • Tests have been added/updated for new functionality
  • Unit tests pass (npm test)
  • Linting and formatting pass (npm run lint and npm run format:check)
  • Type checks pass (npm run check-types)

@jescalada
jescalada requested a review from a team as a code owner November 23, 2026 10:47
@netlify

netlify Bot commented Nov 23, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for endearing-brigadeiros-63f9d0 canceled.

Name Link
🔨 Latest commit c9f061f
🔍 Latest deploy log https://app.netlify.com/projects/endearing-brigadeiros-63f9d0/deploys/6b0419d94b6e3254c381010f

@github-actions github-actions Bot added the fix label Nov 23, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Dependency Review

✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.

Scanned Files

None

@codecov

codecov Bot commented Nov 23, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 89.07%. Comparing base (ceb88d2) to head (c9f061f).

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1913      +/-   ##
==========================================
+ Coverage   88.98%   89.07%   +0.08%     
==========================================
  Files         132      132              
  Lines        7281     7284       +3     
  Branches     1365     1366       +1     
==========================================
+ Hits         6479     6488       +9     
+ Misses        494      490       -4     
+ Partials      308      306       -2     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant