Skip to content

chore: add firebase/php-jwt and gapple/structured-field as dependencies#2413

Open
mickenordin wants to merge 2 commits intomasterfrom
add-firebase-php-jwt
Open

chore: add firebase/php-jwt and gapple/structured-field as dependencies#2413
mickenordin wants to merge 2 commits intomasterfrom
add-firebase-php-jwt

Conversation

@mickenordin
Copy link
Copy Markdown

@mickenordin mickenordin commented May 5, 2026

The nextcloud/server PR nextcloud/server#60136 implements RFC9421 http-signatures. Rather than implementing some of the JWK primitives ourselves, we can lean on firebase/php-jwt. Also the parsing of structured fields can largely be done with gapple/structured-field and this PR adds those dependencies here.

The nextcloud/server PR nextcloud/server#60136
implements RFC9421 http-signatures. Rather than implementing some of the
JWK primitives our selfs, we can lean on firebase/php-jwt and that is
this commit adds that dependency here.

Signed-off-by: Micke Nordin <kano@sunet.se>
@mickenordin mickenordin force-pushed the add-firebase-php-jwt branch from 6fd261d to 015e995 Compare May 5, 2026 11:21
@mickenordin mickenordin requested a review from CarlSchwan May 5, 2026 11:22
mickenordin added a commit to nextcloud/server that referenced this pull request May 5, 2026
Companion to nextcloud/3rdparty#2413, which adds firebase/php-jwt v7.
Required for the RFC 9421 verifier and signer.

Signed-off-by: Micke Nordin <kano@sunet.se>
mickenordin added a commit to nextcloud/server that referenced this pull request May 5, 2026
Companion to nextcloud/3rdparty#2413, which adds firebase/php-jwt v7.
Required for the RFC 9421 verifier and signer.

Signed-off-by: Micke Nordin <kano@sunet.se>
@mickenordin mickenordin changed the title chore: add firebase/php-jwt as dependency chore: add firebase/php-jwt as dependency and gapple/structured-field May 5, 2026
The gapple/structured-fields package implements RFC 8941 (HTTP
Structured Field Values) and RFC 9651. nextcloud/server's RFC 9421
HTTP Message Signatures verifier and signer use it to drop the
hand-rolled Signature-Input / Signature dictionary parser, per review
feedback on nextcloud/server#60136.

Signed-off-by: Micke Nordin <kano@sunet.se>
@mickenordin mickenordin force-pushed the add-firebase-php-jwt branch from 4225696 to e73f85f Compare May 5, 2026 13:56
mickenordin added a commit to nextcloud/server that referenced this pull request May 5, 2026
Companion to nextcloud/3rdparty#2413. firebase/php-jwt handles JWK
parsing and JWS algorithm dispatch; gapple/structured-fields handles
RFC 8941 Structured Field parsing for Signature-Input / Signature.

Signed-off-by: Micke Nordin <kano@sunet.se>
mickenordin added a commit to nextcloud/server that referenced this pull request May 5, 2026
Companion to nextcloud/3rdparty#2413. firebase/php-jwt handles JWK
parsing and JWS algorithm dispatch; gapple/structured-fields handles
RFC 8941 Structured Field parsing for Signature-Input / Signature.

Signed-off-by: Micke Nordin <kano@sunet.se>
@mickenordin mickenordin changed the title chore: add firebase/php-jwt as dependency and gapple/structured-field chore: add firebase/php-jwt and gapple/structured-field as dependencies May 5, 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.

1 participant