Skip to content

Add check for missing alg header#240

Merged
kelvinmo merged 1 commit intomasterfrom
chore/jwt-check-missing-alg
Apr 5, 2026
Merged

Add check for missing alg header#240
kelvinmo merged 1 commit intomasterfrom
chore/jwt-check-missing-alg

Conversation

@kelvinmo
Copy link
Copy Markdown
Owner

@kelvinmo kelvinmo commented Apr 5, 2026

JWT.php already implicitly checks whether the alg header is present by comparing it to $expected_alg. This commit makes this check explicit and returns a different error code (TOKEN_PARSE_ERROR instead of SIGNATURE_VERIFICATION_ERROR).

JWT.php already implicitly checks whether the alg header is present
by comparing it to $expected_alg.  This commit makes this check
explicit and returns a different error code (TOKEN_PARSE_ERROR
instead of SIGNATURE_VERIFICATION_ERROR).
@kelvinmo kelvinmo merged commit 0ec48e4 into master Apr 5, 2026
12 checks passed
@kelvinmo kelvinmo deleted the chore/jwt-check-missing-alg branch April 5, 2026 23:36
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