Validating SAML signature in python

前端 未结 2 1671
逝去的感伤
逝去的感伤 2021-01-19 07:24

I need to implement authentication in python from a 3rd party by using SAML2. I have looked into pysaml2 and found that to be quite confusing, and decided to give M2Crypto a

2条回答
  •  臣服心动
    2021-01-19 07:27

    You need to canonicalize the signed info before validating the signature. That's what the transformation tag implies. Basically, since the same XML can be formatted differently, one needs to validate an XML signature in a canonical format.

提交回复
热议问题