Skip to content

Commit cbbe084

Browse files
committed
Fix name
1 parent fa6d3ea commit cbbe084

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

src/onelogin/saml2/auth.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -512,7 +512,7 @@ def __validate_signature(self, data, saml_type, raise_exceptions=False):
512512
if self.__settings.is_strict() and self.__settings.get_security_data().get('wantMessagesSigned', False):
513513
raise OneLogin_Saml2_ValidationError(
514514
'The %s is not signed. Rejected.' % saml_type,
515-
OneLogin_Saml2_ValidationError.NO_SIGNED_RESPONSE
515+
OneLogin_Saml2_ValidationError.NO_SIGNED_MESSAGE
516516
)
517517
return True
518518

src/onelogin/saml2/errors.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ class OneLogin_Saml2_ValidationError(Exception):
9696
WRONG_ISSUER = 29
9797
SESSION_EXPIRED = 30
9898
WRONG_SUBJECTCONFIRMATION = 31
99-
NO_SIGNED_RESPONSE = 32
99+
NO_SIGNED_MESSAGE = 32
100100
NO_SIGNED_ASSERTION = 33
101101
NO_SIGNATURE_FOUND = 34
102102
KEYINFO_NOT_FOUND_IN_ENCRYPTED_DATA = 35

src/onelogin/saml2/logout_request.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -296,7 +296,7 @@ def is_valid(self, request_data, raise_exceptions=False):
296296
if 'Signature' not in get_data:
297297
raise OneLogin_Saml2_ValidationError(
298298
'The Message of the Logout Request is not signed and the SP require it',
299-
OneLogin_Saml2_ValidationError.NO_SIGNED_RESPONSE
299+
OneLogin_Saml2_ValidationError.NO_SIGNED_MESSAGE
300300
)
301301

302302
return True

src/onelogin/saml2/logout_response.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ def is_valid(self, request_data, request_id=None, raise_exceptions=False):
121121
if 'Signature' not in get_data:
122122
raise OneLogin_Saml2_ValidationError(
123123
'The Message of the Logout Response is not signed and the SP require it',
124-
OneLogin_Saml2_ValidationError.NO_SIGNED_RESPONSE
124+
OneLogin_Saml2_ValidationError.NO_SIGNED_MESSAGE
125125
)
126126
return True
127127
# pylint: disable=R0801

src/onelogin/saml2/response.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@ 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_RESPONSE
260+
OneLogin_Saml2_ValidationError.NO_SIGNED_MESSAGE
261261
)
262262

263263
if security['wantMessagesSigned'] and not has_signed_response:

0 commit comments

Comments
 (0)