Skip to content

Commit 6e8bf88

Browse files
author
Ioannis Kakavas
committed
Allow idp_blacklst_enabled to be absent
1 parent 1c85e44 commit 6e8bf88

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/satosa/backends/saml2.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ def authn_request(self, context, entity_id):
152152

153153
# If IDP blacklisting is enabled and the selected IDP is blacklisted,
154154
# stop here
155-
if self.config["sp_config"]["idp_blacklist_enabled"]:
155+
if self.config["sp_config"].get("idp_blacklist_enabled", None):
156156
with open(self.config["sp_config"]["idp_blacklist_file"]) as blacklist_file:
157157
blacklist_array = json.load(blacklist_file)['blacklist']
158158
if entity_id in blacklist_array:

0 commit comments

Comments
 (0)