Skip to content

JWT for local dev: use local DB permissions, allow expired JWT - #3347

Draft
mattjreynolds wants to merge 1 commit into
mainfrom
task/simplify-local-jwt-testing
Draft

mattjreynolds wants to merge 1 commit into
mainfrom
task/simplify-local-jwt-testing

Conversation

@mattjreynolds

@mattjreynolds mattjreynolds commented Sep 11, 2026

Copy link
Copy Markdown
Contributor

Description

Makes local development / testing easier by allowing use of an expired token, not verifying the token against cognito, and forcing use of permissionSets from the local DB not those from the token.

This allows use of a JWT without setting up a cognito environment or adding any ENV variables. Any JWT that has an entraObjectId or appId at the root of the payload should work.

Permission sets will be looked up from the local DB each time, this allows a very quick feedback loop for testing of modifying the user / permission_sets in the local CMS and re-running the query.

This is completely insecure, and probably wants more thought before we even consider merging it in (or maybe even a wholly different approach to reducing friction for local testing / development of non-public data and functions), but for now it has value, so leaving it here.

@sonarqubecloud

Copy link
Copy Markdown

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant