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

Method SimpleSignWithNonce

simplesign_binding.go:407–412  ·  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, as PostWithNonce does.

(relayState, nonce string, sp *ServiceProvider)

Source from the content-addressed store, hash-verified

405// set as the nonce attribute of the form's auto-submit <script> element, as
406// PostWithNonce does.
407func (r *AuthnRequest) SimpleSignWithNonce(relayState, nonce string, sp *ServiceProvider) ([]byte, error) {
408 if err := checkRelayState(sp.LimitRelayStateLength, relayState); err != nil {
409 return nil, err
410 }
411 return sp.simpleSignForm(r.Destination, redirectParamSAMLRequest, r.Element(), relayState, nonce, sp.SignatureMethod)
412}
413
414// MakeSimpleSignLogoutRequest creates a SAML LogoutRequest for the IDP's
415// HTTP-POST-SimpleSign single logout endpoint. It returns an

Callers 5

SimpleSignMethod · 0.95
TestSimpleSignOutgoingFunction · 0.45
sendLogoutRequestMethod · 0.45
postLogoutResponseMethod · 0.45
HandleStartAuthFlowMethod · 0.45

Calls 3

ElementMethod · 0.95
checkRelayStateFunction · 0.85
simpleSignFormMethod · 0.80

Tested by 1

TestSimpleSignOutgoingFunction · 0.36