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)
| 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. |
| 502 | func (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 |
| 511 | func (req *AuthnRequest) Post(relayState string) []byte { |