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)
| 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. |
| 437 | func (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 |
no test coverage detected