Skip to content

Conversation

@stuioco
Copy link
Contributor

@stuioco stuioco commented Dec 12, 2025

Allow matcher chaining which regular JWT matcher does not due to JSON Partial matching.
This is required for example when only a substring of the JSON value must match.
So the below would match a JWT with "user_name ": "79910stuart.kelly-v1" which is not possible with normal JWT partial matching if we don't know the full string of the user_name.
{
"headers": {
"Authorization": [
{
"matcher": "jwtjsonpath",
"value": "$.user_name",
"doMatch": {
"matcher": "regex",
"value": "stuart.kelly"
}
}
]
}
}

@stuioco stuioco requested a review from tommysitu December 12, 2025 10:04
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

committed by mistake - can be deleted

Copy link
Member

@tommysitu tommysitu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@tommysitu tommysitu merged commit 6ae3368 into master Dec 12, 2025
2 of 3 checks passed
@tommysitu tommysitu deleted the feature/jwt-jsonpath-matcher branch December 12, 2025 20:41
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.

3 participants