Projet

Général

Profil

Development #10155

Ability to set the "DigestMethod" of a saml response

Ajouté par Brett Gardner il y a environ 8 ans. Mis à jour il y a presque 6 ans.

Statut:
Fermé
Priorité:
Normal
Assigné à:
Catégorie:
-
Version cible:
Début:
02 mars 2016
Echéance:
% réalisé:

100%

Temps estimé:
Patch proposed:
Non
Planning:

Description

When building a signed SAML response, there is no way to set the "DigestMethod" of the signature to SHA256, It defaults to SHA1

Attached is a test case, note this is the same test case as issue 10154 hence the name "lasso-bug.tar.bz2"


<Signature xmlns="http://www.w3.org/2000/09/xmldsig#">
<SignedInfo>
<CanonicalizationMethod Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/>
<SignatureMethod Algorithm="http://www.w3.org/2001/04/xmldsig-more#rsa-sha256"/>
<Reference URI="#_A7F3AF0951AD63AB216597DE5743EC91">
<Transforms>
<Transform Algorithm="http://www.w3.org/2000/09/xmldsig#enveloped-signature"/>
<Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/>
</Transforms>
*<DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1"/>*
<DigestValue>...</DigestValue>
</Reference>
</SignedInfo>
<SignatureValue>...</SignatureValue>
<KeyInfo>
<X509Data>
<X509Certificate>...</X509Certificate>
</X509Data>
</KeyInfo>
</Signature>


Fichiers

lasso-bug.tar.bz2 (11,3 ko) lasso-bug.tar.bz2 Brett Gardner, 02 mars 2016 00:55

Révisions associées

Révision 95252372 (diff)
Ajouté par Benjamin Dauvergne il y a environ 8 ans

Choose the Reference transform based on the chosen Signature transform (fixes #10155)

i.e. if the signature use SHA2 then use SHA2 of the same strength for digesting
references.

Historique

#1

Mis à jour par Benjamin Dauvergne il y a environ 8 ans

  • Statut changé de Nouveau à Rejeté

LassoServer structure has a signature_method field for this.

#2

Mis à jour par Brett Gardner il y a environ 8 ans

I don't want to set the SignatureMethod to SHA256, I'm already doing this, I want to set the DigestMethod

#3

Mis à jour par Benjamin Dauvergne il y a environ 8 ans

  • Statut changé de Rejeté à Nouveau

It's not handled currently, please provide a patch.

#4

Mis à jour par Benjamin Dauvergne il y a environ 8 ans

  • Statut changé de Nouveau à Résolu (à déployer)
  • % réalisé changé de 0 à 100
#5

Mis à jour par Benjamin Dauvergne il y a environ 8 ans

  • Assigné à mis à Benjamin Dauvergne
#6

Mis à jour par Benjamin Dauvergne il y a environ 8 ans

  • Version cible mis à 318
#7

Mis à jour par Benjamin Dauvergne il y a presque 6 ans

  • Version cible changé de 318 à 2.6.0
#8

Mis à jour par Benjamin Dauvergne il y a presque 6 ans

  • Statut changé de Résolu (à déployer) à Fermé

Formats disponibles : Atom PDF