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

Function assertCBCRefused

cbc_integrity_test.go:65–71  ·  view source on GitHub ↗
(t *testing.T, err error)

Source from the content-addressed store, hash-verified

63}
64
65func assertCBCRefused(t *testing.T, err error) {
66 t.Helper()
67 privateErr := spcovPrivateErr(t, err)
68 assert.Check(t, errors.Is(privateErr, ErrInvalidSignature), "%v", privateErr)
69 assert.Check(t, !errors.Is(privateErr, ErrDecryptionFailed), "%v", privateErr)
70 assert.Check(t, is.ErrorContains(privateErr, "RequireSignedResponseForCBC"))
71}
72
73// By default, an unsigned Response carrying a CBC EncryptedAssertion whose
74// assertion is signed inside the encryption is still accepted.

Calls 1

spcovPrivateErrFunction · 0.85

Tested by

no test coverage detected