mirror of
https://github.com/casdoor/casdoor.git
synced 2025-05-22 18:25:47 +08:00
feat: change canonicalizer algorithm to xml-exc-c14n# (#2440)
This commit is contained in:
parent
8a4758c22d
commit
0bfe683108
@ -326,7 +326,7 @@ func GetSamlResponse(application *Application, user *User, samlRequest string, h
|
|||||||
ctx.Hash = crypto.SHA1
|
ctx.Hash = crypto.SHA1
|
||||||
|
|
||||||
if application.EnableSamlC14n10 {
|
if application.EnableSamlC14n10 {
|
||||||
ctx.Canonicalizer = dsig.MakeC14N10RecCanonicalizer()
|
ctx.Canonicalizer = dsig.MakeC14N10ExclusiveCanonicalizerWithPrefixList("")
|
||||||
}
|
}
|
||||||
|
|
||||||
//signedXML, err := ctx.SignEnvelopedLimix(samlResponse)
|
//signedXML, err := ctx.SignEnvelopedLimix(samlResponse)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user