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

Function TestIDPServeSSOStatusErrorCannotSign

idp_error_response_test.go:209–218  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

207}
208
209func TestIDPServeSSOStatusErrorCannotSign(t *testing.T) {
210 test := idpErrNewTest(t)
211 test.IDP.AssertionMaker = idpcovAssertionMakerFunc(func(*IdpAuthnRequest, *Session) error {
212 return &StatusError{TopLevel: StatusResponder}
213 })
214 test.IDP.SignatureMethod = "urn:idperr:bogus-signature-method"
215 w := httptest.NewRecorder()
216 test.IDP.ServeSSO(w, idpcovSSORequest(t, test))
217 assert.Check(t, is.Equal(http.StatusInternalServerError, w.Code))
218}
219
220func TestIDPServeIDPInitiatedAssertionMakerStatusError(t *testing.T) {
221 test := idpErrNewTest(t)

Callers

nothing calls this directly

Calls 4

idpErrNewTestFunction · 0.85
idpcovAssertionMakerFuncFuncType · 0.85
idpcovSSORequestFunction · 0.85
ServeSSOMethod · 0.80

Tested by

no test coverage detected