Skip to content

Commit 19451a3

Browse files
Merge pull request #181 from RD1991/master
Define attributes variable before reference
2 parents abf206c + 6f42b2b commit 19451a3

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/satosa/frontends/saml2.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -254,6 +254,7 @@ def _get_approved_attributes(self, idp, idp_policy, sp_entity_id, state):
254254

255255
def _filter_attributes(self, idp, internal_response, context,):
256256
idp_policy = idp.config.getattr("policy", "idp")
257+
attributes = {}
257258
if idp_policy:
258259
approved_attributes = self._get_approved_attributes(idp, idp_policy, internal_response.requester,
259260
context.state)

0 commit comments

Comments
 (0)