scriptNonce returns the nonce for the auto-submit script of a form, or "" if ScriptNonce is not set.
(r *http.Request)
| 313 | // scriptNonce returns the nonce for the auto-submit script of a form, or "" |
| 314 | // if ScriptNonce is not set. |
| 315 | func (m *Middleware) scriptNonce(r *http.Request) string { |
| 316 | if m.ScriptNonce == nil { |
| 317 | return "" |
| 318 | } |
| 319 | return m.ScriptNonce(r) |
| 320 | } |
| 321 | |
| 322 | // setNoCacheHeaders sets the headers the SAML bindings ask of an HTTP |
| 323 | // response that carries a SAML message, so that neither the browser nor a |
no outgoing calls
no test coverage detected