MCPcopy Create free account
hub / github.com/crewjam/saml / isSimpleSignRequest

Function isSimpleSignRequest

simplesign_binding.go:102–106  ·  view source on GitHub ↗

isSimpleSignRequest reports whether the posted form of req carries a SigAlg or Signature control, which marks it as an HTTP-POST-SimpleSign message (sstc-saml-binding-simplesign-cs-01 section 2.10). req.ParseForm must have been called.

(req *http.Request)

Source from the content-addressed store, hash-verified

100// message (sstc-saml-binding-simplesign-cs-01 section 2.10). req.ParseForm
101// must have been called.
102func isSimpleSignRequest(req *http.Request) bool {
103 _, hasSigAlg := req.PostForm[redirectParamSigAlg]
104 _, hasSignature := req.PostForm[redirectParamSignature]
105 return hasSigAlg || hasSignature
106}
107
108// parseSimpleSignRequest reads the HTTP-POST-SimpleSign message carried in
109// messageParam (SAMLRequest or SAMLResponse) of the posted form of req. It

Callers 3

ValidateLogoutRequestMethod · 0.85
parseSimpleSignRequestFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected