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

Method SimpleSignWithNonce

simplesign_binding.go:437–442  ·  view source on GitHub ↗

SimpleSignWithNonce is like SimpleSign, but if nonce is not empty it is set as the nonce attribute of the form's auto-submit element.

(relayState, nonce string, sp *ServiceProvider)

Source from the content-addressed store, hash-verified

435// SimpleSignWithNonce is like SimpleSign, but if nonce is not empty it is
436// set as the nonce attribute of the form's auto-submit <script> element.
437func (r *LogoutRequest) SimpleSignWithNonce(relayState, nonce string, sp *ServiceProvider) ([]byte, error) {
438 if err := checkRelayState(sp.LimitRelayStateLength, relayState); err != nil {
439 return nil, err
440 }
441 return sp.simpleSignForm(r.Destination, redirectParamSAMLRequest, r.Element(), relayState, nonce, sp.logoutSignatureMethod())
442}
443
444// MakeSimpleSignLogoutResponse creates a SAML LogoutResponse for the IDP's
445// HTTP-POST-SimpleSign single logout endpoint. It returns an

Callers 1

SimpleSignMethod · 0.95

Calls 4

ElementMethod · 0.95
checkRelayStateFunction · 0.85
simpleSignFormMethod · 0.80
logoutSignatureMethodMethod · 0.80

Tested by

no test coverage detected