Skip to content

Commit c90a62d

Browse files
committed
Typo
1 parent cbbe084 commit c90a62d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/onelogin/saml2/response.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -257,13 +257,13 @@ def is_valid(self, request_data, request_id=None, raise_exceptions=False):
257257
if security['wantAssertionsSigned'] and not has_signed_assertion:
258258
raise OneLogin_Saml2_ValidationError(
259259
'The Assertion of the Response is not signed and the SP require it',
260-
OneLogin_Saml2_ValidationError.NO_SIGNED_MESSAGE
260+
OneLogin_Saml2_ValidationError.NO_SIGNED_ASSERTION
261261
)
262262

263263
if security['wantMessagesSigned'] and not has_signed_response:
264264
raise OneLogin_Saml2_ValidationError(
265265
'The Message of the Response is not signed and the SP require it',
266-
OneLogin_Saml2_ValidationError.NO_SIGNED_ASSERTION
266+
OneLogin_Saml2_ValidationError.NO_SIGNED_MESSAGE
267267
)
268268

269269
if not signed_elements or (not has_signed_response and not has_signed_assertion):

0 commit comments

Comments
 (0)