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

Method MakeSimpleSignLogoutRequest

simplesign_binding.go:419–425  ·  view source on GitHub ↗

MakeSimpleSignLogoutRequest creates a SAML LogoutRequest for the IDP's HTTP-POST-SimpleSign single logout endpoint. It returns an auto-submitting HTML form that sends the request to the IDP, signed with a SimpleSign signature made with Key and SignatureMethod, which must be set. The request carries

(nameID, relayState string, opts ...LogoutRequestOption)

Source from the content-addressed store, hash-verified

417// a SimpleSign signature made with Key and SignatureMethod, which must be
418// set. The request carries no XML signature.
419func (sp *ServiceProvider) MakeSimpleSignLogoutRequest(nameID, relayState string, opts ...LogoutRequestOption) ([]byte, error) {
420 req, err := sp.makeLogoutRequest(sp.GetSLOBindingLocation(HTTPPostSimpleSignBinding), nameID, opts...)
421 if err != nil {
422 return nil, err
423 }
424 return req.SimpleSign(relayState, sp)
425}
426
427// SimpleSign returns an auto-submitting HTML form that sends the request to
428// its Destination with the HTTP-POST-SimpleSign binding, signed with sp's

Callers 2

TestSimpleSignOutgoingFunction · 0.80

Calls 3

makeLogoutRequestMethod · 0.95
GetSLOBindingLocationMethod · 0.95
SimpleSignMethod · 0.45

Tested by 2

TestSimpleSignOutgoingFunction · 0.64