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

Method scriptNonce

samlsp/middleware.go:315–320  ·  view source on GitHub ↗

scriptNonce returns the nonce for the auto-submit script of a form, or "" if ScriptNonce is not set.

(r *http.Request)

Source from the content-addressed store, hash-verified

313// scriptNonce returns the nonce for the auto-submit script of a form, or ""
314// if ScriptNonce is not set.
315func (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

Callers 4

sendLogoutRequestMethod · 0.95
postLogoutResponseMethod · 0.95
HandleStartAuthFlowMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected