Skip to content
This repository has been archived by the owner on Feb 8, 2025. It is now read-only.

Chacksignature fatto con la key presente nella risposta #45

Open
pomarc opened this issue Oct 17, 2022 · 0 comments
Open

Chacksignature fatto con la key presente nella risposta #45

pomarc opened this issue Oct 17, 2022 · 0 comments

Comments

@pomarc
Copy link

pomarc commented Oct 17, 2022

nella verifica della signature della response

return signedXml.CheckSignature();

viene usato l'overload della chiamata che non passa la chiave pubblica del firmatario, ma usa quella nel nodo KeyInfo.

E' abbastanza sicuro? non sarebbe più corretto utilizzare la chiave pubblica estratta dal metadata dell'IdP?

cfr (https://learn.microsoft.com/en-us/dotnet/api/system.security.cryptography.xml.signedxml?view=dotnet-plat-ext-6.0#security-considerations-about-the-keyinfo-element)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant