A LogoutResponse without an Issuer is refused instead of panicking.
(t *testing.T)
| 93 | |
| 94 | // A LogoutResponse without an Issuer is refused instead of panicking. |
| 95 | func TestValidateLogoutResponseWithoutIssuer(t *testing.T) { |
| 96 | sp := ServiceProvider{ |
| 97 | SloURL: mustParseURL("https://sp.example.com/slo"), |
| 98 | IDPMetadata: &EntityDescriptor{EntityID: "https://idp.example.com/"}, |
| 99 | } |
| 100 | resp := &LogoutResponse{Version: "2.0", Destination: "https://sp.example.com/slo", IssueInstant: TimeNow()} |
| 101 | assert.Check(t, is.ErrorContains(sp.validateLogoutResponse(resp), "issuer does not match")) |
| 102 | } |
nothing calls this directly
no test coverage detected