mirror of
https://github.com/casdoor/casdoor.git
synced 2025-07-03 12:30:19 +08:00
feat: change canonicalizer algorithm to xml-exc-c14n# (#2440)
This commit is contained in:
@ -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)
|
||||
|
Reference in New Issue
Block a user