Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: upgrade web-token/jwt-framework 3.4 #2

Merged
merged 3 commits into from
May 29, 2024

Conversation

smith-30
Copy link
Contributor

@smith-30 smith-30 commented May 28, 2024

By updating web-token/jwt-framework to 3 series, it will be compatible with symfony 6 series.

https://web-token.spomky-labs.com/migration/from-v1.x-to-v2.0-1#list-of-deprecations

@smith-30 smith-30 requested a review from syunta May 29, 2024 03:13
$kid = $signature->getProtectedHeaderParameter('kid');
if (!$this->jwkSet->has($kid)) {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

$this->jwkSet->get 内で has を行っているため不要と判断した

$signature = $signatures[0];
if (!$signature->hasProtectedHeaderParameter('kid')) {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

$this->headerCheckerManager->check($jws, 0, ['alg', 'kid']); で kid の存在をチェックさせているので不要となりました

Copy link
Contributor

@syunta syunta left a comment

Choose a reason for hiding this comment

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

ok

@syunta syunta merged commit 357ffba into main May 29, 2024
1 check passed
@syunta syunta deleted the chore/upgrade_web-token_jwt-framework branch May 29, 2024 04:19
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.

2 participants