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

Transforms element is optionnal #232

Open
chaouchAbderraouf opened this issue Sep 20, 2021 · 2 comments
Open

Transforms element is optionnal #232

chaouchAbderraouf opened this issue Sep 20, 2021 · 2 comments

Comments

@chaouchAbderraouf
Copy link

chaouchAbderraouf commented Sep 20, 2021

Hello,

It's my first use of Xml signature , giving the good implementation of your library i used it and i think you for your work.

Actually, the API that i consume didn't accept the transforms element and breaks if it's present. I read the official documentation of xmlDSig and i found that the transforms element is optionnal. The implemenation here does not permit it ufortunately.

I suggest to surround the transforms node creation and it's traitement after in if condition.
https://github.com/robrichards/xmlseclibs/blob/master/src/XMLSecurityDSig.php#L665-L666

exp :

if (!empty($options['transforms'])) {
$transNodes = $this->createNewSignNode('Transforms');
$refNode->appendChild($transNodes);
if (is_array($arTransforms)) {
..........................
} elseif (! empty($this->canonicalMethod)) {
................................
}
}

Regards.
Raouf.

@chaouchAbderraouf
Copy link
Author

Hello,

Please can you consider/review my request.

Thanks.
Raouf.

@chaouchAbderraouf
Copy link
Author

Hello @robrichards can you please make a review for my issue/PR ?

Thanks,
Raouf.

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

No branches or pull requests

1 participant