Skip to content

Commit 74305d5

Browse files
committed
Typo
1 parent 667b132 commit 74305d5

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
@@ -271,13 +271,13 @@ def is_valid(self, request_data, request_id=None, raise_exceptions=False):
271271
if security.get('wantAssertionsSigned', False) and not has_signed_assertion:
272272
raise OneLogin_Saml2_ValidationError(
273273
'The Assertion of the Response is not signed and the SP require it',
274-
OneLogin_Saml2_ValidationError.NO_SIGNED_MESSAGE
274+
OneLogin_Saml2_ValidationError.NO_SIGNED_ASSERTION
275275
)
276276

277277
if security.get('wantMessagesSigned', False) and not has_signed_response:
278278
raise OneLogin_Saml2_ValidationError(
279279
'The Message of the Response is not signed and the SP require it',
280-
OneLogin_Saml2_ValidationError.NO_SIGNED_ASSERTION
280+
OneLogin_Saml2_ValidationError.NO_SIGNED_MESSAGE
281281
)
282282

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

0 commit comments

Comments
 (0)