Skip to content

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

Open
jescalada wants to merge 4 commits into
mainfrom
improve-jwt-role-mapping
Open

jescalada wants to merge 4 commits 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. Also improves matching for claims with array values.

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 ready!

Name Link
🔨 Latest commit a4c41cd
🔍 Latest deploy log https://app.netlify.com/projects/endearing-brigadeiros-63f9d0/deploys/6b0519b338aa8ad2128ba81d
😎 Deploy Preview https://deploy-preview-1913.git-proxy.preview.finos.org
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@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

❌ Patch coverage is 90.90909% with 1 line in your changes missing coverage. Please review.
✅ Project coverage is 89.06%. Comparing base (ceb88d2) to head (a4c41cd).

Files with missing lines Patch % Lines
src/service/passport/jwtUtils.ts 83.33% 0 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1913      +/-   ##
==========================================
+ Coverage   88.98%   89.06%   +0.07%     
==========================================
  Files         132      132              
  Lines        7281     7286       +5     
  Branches     1365     1370       +5     
==========================================
+ Hits         6479     6489      +10     
+ Misses        494      490       -4     
+ Partials      308      307       -1     

☔ 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