You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Both JWSLoader and JWELoader loadAndVerifyWithKey() does a header validation.
If I want ensure some header parameters exists, I have to repeat the same header validation with $mandatoryHeaderParameters set.
This could be done in one step, if loadAndVerifyWithKey() accepts and forwards $mandatoryHeaderParameters to $this->headerCheckerManager->check(); in processRecipient()
Example
No response
The text was updated successfully, but these errors were encountered:
Modified the JWELoader class to accept mandatoryHeaderParameters in loadAndDecryptWithKey and loadAndDecryptWithKeySet methods, and forward them to the HeaderCheckerManager in the processRecipient method.
Disclaimer: The concept of solution was created by AI and you should never copy paste this code before you check the correctness of generated code. Solution might not be complete, you should use this code as an inspiration only.
Latta AI seeks to solve problems in open source projects as part of its mission to support developers around the world. Learn more about our mission at https://latta.ai/ourmission . If you no longer want Latta AI to attempt solving issues on your repository, you can block this account.
Description
Both JWSLoader and JWELoader
loadAndVerifyWithKey()
does a header validation.If I want ensure some header parameters exists, I have to repeat the same header validation with
$mandatoryHeaderParameters
set.This could be done in one step, if
loadAndVerifyWithKey()
accepts and forwards$mandatoryHeaderParameters
to$this->headerCheckerManager->check();
inprocessRecipient()
Example
No response
The text was updated successfully, but these errors were encountered: