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

Method ValidateLogoutResponseRequest

service_provider.go:1458–1469  ·  view source on GitHub ↗

ValidateLogoutResponseRequest validates the LogoutResponse content from the request

(req *http.Request)

Source from the content-addressed store, hash-verified

1456
1457// ValidateLogoutResponseRequest validates the LogoutResponse content from the request
1458func (sp *ServiceProvider) ValidateLogoutResponseRequest(req *http.Request) error {
1459 if data := req.URL.Query().Get("SAMLResponse"); data != "" {
1460 return sp.ValidateLogoutResponseRedirect(data)
1461 }
1462
1463 err := req.ParseForm()
1464 if err != nil {
1465 return fmt.Errorf("unable to parse form: %v", err)
1466 }
1467
1468 return sp.ValidateLogoutResponseForm(req.PostForm.Get("SAMLResponse"))
1469}
1470
1471// ValidateLogoutResponseForm returns a nil error if the logout response is valid.
1472func (sp *ServiceProvider) ValidateLogoutResponseForm(postFormData string) error {

Callers

nothing calls this directly

Calls 3

GetMethod · 0.65

Tested by

no test coverage detected