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

Method MakePostAuthenticationRequest

service_provider.go:502–508  ·  view source on GitHub ↗

MakePostAuthenticationRequest creates a SAML authentication request using the HTTP-POST binding. It returns HTML text representing an HTML form that can be sent presented to a browser to initiate the login process.

(relayState string)

Source from the content-addressed store, hash-verified

500// the HTTP-POST binding. It returns HTML text representing an HTML form that
501// can be sent presented to a browser to initiate the login process.
502func (sp *ServiceProvider) MakePostAuthenticationRequest(relayState string) ([]byte, error) {
503 req, err := sp.MakeAuthenticationRequest(sp.GetSSOBindingLocation(HTTPPostBinding), HTTPPostBinding, HTTPPostBinding)
504 if err != nil {
505 return nil, err
506 }
507 return req.Post(relayState), nil
508}
509
510// Post returns an HTML form suitable for using the HTTP-POST binding with the request
511func (req *AuthnRequest) Post(relayState string) []byte {

Calls 3

GetSSOBindingLocationMethod · 0.95
PostMethod · 0.45