Skip to content

Commit a1f9526

Browse files
committed
Reformat code
Signed-off-by: Ivan Kanakarakis <[email protected]>
1 parent d2e538f commit a1f9526

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/satosa/frontends/saml2.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,8 @@ def _handle_authn_request(self, context, binding_in, idp):
224224
idp_policy = idp.config.getattr("policy", "idp")
225225
if idp_policy:
226226
internal_req.attributes = self._get_approved_attributes(
227-
idp, idp_policy, requester, context.state)
227+
idp, idp_policy, requester, context.state
228+
)
228229

229230
return self.auth_req_callback_func(context, internal_req)
230231

@@ -376,9 +377,8 @@ def _handle_authn_response(self, context, internal_response, idp):
376377
request_state["relay_state"], response=True)
377378

378379
# Set the common domain cookie _saml_idp if so configured.
379-
if 'common_domain_cookie' in self.config:
380-
if self.config['common_domain_cookie']:
381-
self._set_common_domain_cookie(internal_response, http_args, context)
380+
if self.config.get('common_domain_cookie'):
381+
self._set_common_domain_cookie(internal_response, http_args, context)
382382

383383
del context.state[self.name]
384384
return make_saml_response(resp_args["binding"], http_args)

0 commit comments

Comments
 (0)