Skip to content

Commit e54ebea

Browse files
Merge pull request #88 from jkakavas/master
Fix for #86
2 parents 52a9299 + 9830647 commit e54ebea

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/satosa/base.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -135,9 +135,10 @@ def _auth_resp_finish(self, context, internal_response):
135135
internal_attributes = internal_response.attributes
136136
for attribute in hash_attributes:
137137
# hash all attribute values individually
138-
hashed_values = [UserIdHasher.hash_data(self.config["USER_ID_HASH_SALT"], v)
138+
if attribute in internal_attributes:
139+
hashed_values = [UserIdHasher.hash_data(self.config["USER_ID_HASH_SALT"], v)
139140
for v in internal_attributes[attribute]]
140-
internal_attributes[attribute] = hashed_values
141+
internal_attributes[attribute] = hashed_values
141142

142143
# remove all session state
143144
context.request = None

0 commit comments

Comments
 (0)