Skip to content

Commit 4eec1a3

Browse files
authored
Merge pull request SAML-Toolkits#30 from macfound/master
signature checks didn't work
2 parents 898f95c + 59b5748 commit 4eec1a3

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
@@ -199,10 +199,10 @@ def is_valid(self, request_data, request_id=None):
199199
if not any_subject_confirmation:
200200
raise Exception('A valid SubjectConfirmation was not found on this Response')
201201

202-
if security['wantAssertionsSigned'] and not not has_signed_assertion:
202+
if security['wantAssertionsSigned'] and not has_signed_assertion:
203203
raise Exception('The Assertion of the Response is not signed and the SP require it')
204204

205-
if security['wantMessagesSigned'] and has_signed_response:
205+
if security['wantMessagesSigned'] and not has_signed_response:
206206
raise Exception('The Message of the Response is not signed and the SP require it')
207207

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

0 commit comments

Comments
 (0)