Skip to content

Commit f6fcc9f

Browse files
committed
File formating.
1 parent 8e0a84e commit f6fcc9f

File tree

1 file changed

+26
-25
lines changed

1 file changed

+26
-25
lines changed

src/saml2/response.py

Lines changed: 26 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -219,8 +219,8 @@ def for_me(conditions, myself):
219219

220220

221221
def authn_response(conf, return_addrs, outstanding_queries=None, timeslack=0,
222-
asynchop=True, allow_unsolicited=False,
223-
want_assertions_signed=False, conv_info=None):
222+
asynchop=True, allow_unsolicited=False,
223+
want_assertions_signed=False, conv_info=None):
224224
sec = security_context(conf)
225225
if not timeslack:
226226
try:
@@ -237,7 +237,7 @@ def authn_response(conf, return_addrs, outstanding_queries=None, timeslack=0,
237237

238238
# comes in over SOAP so synchronous
239239
def attribute_response(conf, return_addrs, timeslack=0, asynchop=False,
240-
test=False, conv_info=None):
240+
test=False, conv_info=None):
241241
sec = security_context(conf)
242242
if not timeslack:
243243
try:
@@ -254,7 +254,7 @@ class StatusResponse(object):
254254
msgtype = "status_response"
255255

256256
def __init__(self, sec_context, return_addrs=None, timeslack=0,
257-
request_id=0, asynchop=True, conv_info=None):
257+
request_id=0, asynchop=True, conv_info=None):
258258
self.sec = sec_context
259259
self.return_addrs = return_addrs
260260

@@ -431,7 +431,7 @@ class LogoutResponse(StatusResponse):
431431
msgtype = "logout_response"
432432

433433
def __init__(self, sec_context, return_addrs=None, timeslack=0,
434-
asynchop=True, conv_info=None):
434+
asynchop=True, conv_info=None):
435435
StatusResponse.__init__(self, sec_context, return_addrs, timeslack,
436436
asynchop=asynchop, conv_info=conv_info)
437437
self.signature_check = self.sec.correctly_signed_logout_response
@@ -441,7 +441,7 @@ class NameIDMappingResponse(StatusResponse):
441441
msgtype = "name_id_mapping_response"
442442

443443
def __init__(self, sec_context, return_addrs=None, timeslack=0,
444-
request_id=0, asynchop=True, conv_info=None):
444+
request_id=0, asynchop=True, conv_info=None):
445445
StatusResponse.__init__(self, sec_context, return_addrs, timeslack,
446446
request_id, asynchop, conv_info=conv_info)
447447
self.signature_check = self.sec \
@@ -452,7 +452,7 @@ class ManageNameIDResponse(StatusResponse):
452452
msgtype = "manage_name_id_response"
453453

454454
def __init__(self, sec_context, return_addrs=None, timeslack=0,
455-
request_id=0, asynchop=True, conv_info=None):
455+
request_id=0, asynchop=True, conv_info=None):
456456
StatusResponse.__init__(self, sec_context, return_addrs, timeslack,
457457
request_id, asynchop, conv_info=conv_info)
458458
self.signature_check = self.sec.correctly_signed_manage_name_id_response
@@ -467,11 +467,11 @@ class AuthnResponse(StatusResponse):
467467
msgtype = "authn_response"
468468

469469
def __init__(self, sec_context, attribute_converters, entity_id,
470-
return_addrs=None, outstanding_queries=None,
471-
timeslack=0, asynchop=True, allow_unsolicited=False,
472-
test=False, allow_unknown_attributes=False,
473-
want_assertions_signed=False, want_response_signed=False,
474-
conv_info=None, **kwargs):
470+
return_addrs=None, outstanding_queries=None,
471+
timeslack=0, asynchop=True, allow_unsolicited=False,
472+
test=False, allow_unknown_attributes=False,
473+
want_assertions_signed=False, want_response_signed=False,
474+
conv_info=None, **kwargs):
475475

476476
StatusResponse.__init__(self, sec_context, return_addrs, timeslack,
477477
asynchop=asynchop, conv_info=conv_info)
@@ -525,6 +525,7 @@ def loads(self, xmldata, decode=True, origxml=None):
525525
except AttributeError:
526526
pass
527527
elif self.allow_unsolicited:
528+
# Should check that I haven't seen this before
528529
pass
529530
else:
530531
logger.exception(
@@ -821,7 +822,7 @@ def _assertion(self, assertion, verified=False):
821822
raise
822823

823824
def decrypt_assertions(self, encrypted_assertions, decr_txt, issuer=None,
824-
verified=False):
825+
verified=False):
825826
""" Moves the decrypted assertion from the encrypted assertion to a
826827
list.
827828
@@ -1143,8 +1144,8 @@ class AuthnQueryResponse(AuthnResponse):
11431144
msgtype = "authn_query_response"
11441145

11451146
def __init__(self, sec_context, attribute_converters, entity_id,
1146-
return_addrs=None, timeslack=0, asynchop=False, test=False,
1147-
conv_info=None):
1147+
return_addrs=None, timeslack=0, asynchop=False, test=False,
1148+
conv_info=None):
11481149
AuthnResponse.__init__(self, sec_context, attribute_converters,
11491150
entity_id, return_addrs, timeslack=timeslack,
11501151
asynchop=asynchop, test=test,
@@ -1162,8 +1163,8 @@ class AttributeResponse(AuthnResponse):
11621163
msgtype = "attribute_response"
11631164

11641165
def __init__(self, sec_context, attribute_converters, entity_id,
1165-
return_addrs=None, timeslack=0, asynchop=False, test=False,
1166-
conv_info=None):
1166+
return_addrs=None, timeslack=0, asynchop=False, test=False,
1167+
conv_info=None):
11671168
AuthnResponse.__init__(self, sec_context, attribute_converters,
11681169
entity_id, return_addrs, timeslack=timeslack,
11691170
asynchop=asynchop, test=test,
@@ -1180,8 +1181,8 @@ class AuthzResponse(AuthnResponse):
11801181
msgtype = "authz_decision_response"
11811182

11821183
def __init__(self, sec_context, attribute_converters, entity_id,
1183-
return_addrs=None, timeslack=0, asynchop=False,
1184-
conv_info=None):
1184+
return_addrs=None, timeslack=0, asynchop=False,
1185+
conv_info=None):
11851186
AuthnResponse.__init__(self, sec_context, attribute_converters,
11861187
entity_id, return_addrs, timeslack=timeslack,
11871188
asynchop=asynchop, conv_info=conv_info)
@@ -1195,8 +1196,8 @@ class ArtifactResponse(AuthnResponse):
11951196
msgtype = "artifact_response"
11961197

11971198
def __init__(self, sec_context, attribute_converters, entity_id,
1198-
return_addrs=None, timeslack=0, asynchop=False, test=False,
1199-
conv_info=None):
1199+
return_addrs=None, timeslack=0, asynchop=False, test=False,
1200+
conv_info=None):
12001201
AuthnResponse.__init__(self, sec_context, attribute_converters,
12011202
entity_id, return_addrs, timeslack=timeslack,
12021203
asynchop=asynchop, test=test,
@@ -1208,9 +1209,9 @@ def __init__(self, sec_context, attribute_converters, entity_id,
12081209

12091210

12101211
def response_factory(xmlstr, conf, return_addrs=None, outstanding_queries=None,
1211-
timeslack=0, decode=True, request_id=0, origxml=None,
1212-
asynchop=True, allow_unsolicited=False,
1213-
want_assertions_signed=False, conv_info=None):
1212+
timeslack=0, decode=True, request_id=0, origxml=None,
1213+
asynchop=True, allow_unsolicited=False,
1214+
want_assertions_signed=False, conv_info=None):
12141215
sec_context = security_context(conf)
12151216
if not timeslack:
12161217
try:
@@ -1254,7 +1255,7 @@ class AssertionIDResponse(object):
12541255
msgtype = "assertion_id_response"
12551256

12561257
def __init__(self, sec_context, attribute_converters, timeslack=0,
1257-
**kwargs):
1258+
**kwargs):
12581259

12591260
self.sec = sec_context
12601261
self.timeslack = timeslack

0 commit comments

Comments
 (0)