Skip to content

Commit

Permalink
Typo
Browse files Browse the repository at this point in the history
  • Loading branch information
pitbulk committed Jan 3, 2017
1 parent cbbe084 commit c90a62d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/onelogin/saml2/response.py
Original file line number Diff line number Diff line change
Expand Up @@ -257,13 +257,13 @@ def is_valid(self, request_data, request_id=None, raise_exceptions=False):
if security['wantAssertionsSigned'] and not has_signed_assertion:
raise OneLogin_Saml2_ValidationError(
'The Assertion of the Response is not signed and the SP require it',
OneLogin_Saml2_ValidationError.NO_SIGNED_MESSAGE
OneLogin_Saml2_ValidationError.NO_SIGNED_ASSERTION
)

if security['wantMessagesSigned'] and not has_signed_response:
raise OneLogin_Saml2_ValidationError(
'The Message of the Response is not signed and the SP require it',
OneLogin_Saml2_ValidationError.NO_SIGNED_ASSERTION
OneLogin_Saml2_ValidationError.NO_SIGNED_MESSAGE
)

if not signed_elements or (not has_signed_response and not has_signed_assertion):
Expand Down

0 comments on commit c90a62d

Please sign in to comment.