feat: change canonicalizer algorithm to xml-exc-c14n# (#2440)

This commit is contained in:
jump2cn 2023-10-24 14:13:09 +08:00 committed by GitHub
parent 8a4758c22d
commit 0bfe683108
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -326,7 +326,7 @@ func GetSamlResponse(application *Application, user *User, samlRequest string, h
ctx.Hash = crypto.SHA1
if application.EnableSamlC14n10 {
ctx.Canonicalizer = dsig.MakeC14N10RecCanonicalizer()
ctx.Canonicalizer = dsig.MakeC14N10ExclusiveCanonicalizerWithPrefixList("")
}
//signedXML, err := ctx.SignEnvelopedLimix(samlResponse)