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)
| 405 | // set as the nonce attribute of the form's auto-submit <script> element, as |
| 406 | // PostWithNonce does. |
| 407 | func (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 |