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)
| 100 | // message (sstc-saml-binding-simplesign-cs-01 section 2.10). req.ParseForm |
| 101 | // must have been called. |
| 102 | func 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 |
no outgoing calls
no test coverage detected