Skip to content

chore: Jwt migration to the monorepo - #9690

Open
Hectorhammett wants to merge 323 commits into
mainfrom
jwt-migration
Open

Hectorhammett wants to merge 323 commits into
mainfrom
jwt-migration

Conversation

@Hectorhammett

Copy link
Copy Markdown
Collaborator

No description provided.

robertdimarco and others added 30 commits April 1, 2015 10:12
…ctor

Refactor decode() code path to address security vulnerabilities
…tests

Add a few add'l tests - more forthcoming
target-dir was meant to allow using the root of the package as a PSR-4 root and make composer prepend the target dir when installing to make it compatible with PSR-0, before PSR-4 was a reality.
This setting is deprecated in Composer in favor of using PSR-4, and it is not needed anyway when using the classmap autoloading.
Remove the useless target-dir setting from the composer config
Provide a leeway in verification of times to account for clock skew
Allow using \ArrayAccess as $key in \JWT::decode
…t-isolation

Reset clock skew / leeway after relevant tests & update README
bshaffer and others added 17 commits March 27, 2026 13:47
…leapis/php-jwt#634)

* fix: validate numeric type of iat, nbf and exp claims in encode

The decode() path already rejected non-numeric iat/nbf/exp values, but
encode() accepted any type and silently produced an invalid token. Add
the same is_numeric guards in encode() and cover them with unit tests.

Signed-off-by: Guillaume Delré <delre.guillaume@gmail.com>

* test: add regression test for numeric string timestamps in encode

Covers the case where iat/nbf/exp are passed as numeric strings
(e.g. (string) time()), which must remain accepted to avoid a
breaking change.

Signed-off-by: Guillaume Delré <delre.guillaume@gmail.com>

---------

Signed-off-by: Guillaume Delré <delre.guillaume@gmail.com>
Co-authored-by: Brent Shaffer <betterbrent@google.com>
…ase--branches--main

chore(main): release 7.1.1
@Hectorhammett Hectorhammett added the do not merge Indicates a pull request not ready for merge, due to either quality or timing. label Sep 14, 2026
@Hectorhammett
Hectorhammett force-pushed the jwt-migration branch 2 times, most recently from 037a45a to 63098db Compare September 14, 2026 23:33
@Hectorhammett
Hectorhammett force-pushed the jwt-migration branch 3 times, most recently from e3414cd to 2af2c23 Compare September 15, 2026 21:53
@Hectorhammett
Hectorhammett marked this pull request as ready for review September 16, 2026 00:27
@Hectorhammett
Hectorhammett requested a review from a team as a code owner September 16, 2026 00:27
@Hectorhammett Hectorhammett removed the do not merge Indicates a pull request not ready for merge, due to either quality or timing. label Sep 16, 2026
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.