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

Method MakeSimpleSignAuthenticationRequest

simplesign_binding.go:388–394  ·  view source on GitHub ↗

MakeSimpleSignAuthenticationRequest creates a SAML authentication request for the IDP's HTTP-POST-SimpleSign single sign-on endpoint. It returns an auto-submitting HTML form that sends the request to the IDP. The request carries no XML signature; it is signed with a SimpleSign signature (sstc-saml-

(relayState string)

Source from the content-addressed store, hash-verified

386// the HTTP-POST binding, as for MakePostAuthenticationRequest; use
387// MakeAuthenticationRequest and AuthnRequest.SimpleSign to request another.
388func (sp *ServiceProvider) MakeSimpleSignAuthenticationRequest(relayState string) ([]byte, error) {
389 req, err := sp.MakeAuthenticationRequest(sp.GetSSOBindingLocation(HTTPPostSimpleSignBinding), HTTPPostSimpleSignBinding, HTTPPostBinding)
390 if err != nil {
391 return nil, err
392 }
393 return req.SimpleSign(relayState, sp)
394}
395
396// SimpleSign returns an auto-submitting HTML form that sends the request to
397// its Destination with the HTTP-POST-SimpleSign binding, signed with sp's

Calls 3

GetSSOBindingLocationMethod · 0.95
SimpleSignMethod · 0.45