From 6b4cabdc27d502fcd40061263cc4980549447c6a Mon Sep 17 00:00:00 2001 From: Benjamin Dauvergne Date: Mon, 18 May 2015 14:47:19 +0200 Subject: [PATCH] adapters: fix DefaultAdapter.get_idp(), idp['ENTITY_ID'] is a string not a list This method was incorrectly using the `in' operator instead of the == operator. fixes #7270 --- mellon/adapters.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mellon/adapters.py b/mellon/adapters.py index f465491..fa97c68 100644 --- a/mellon/adapters.py +++ b/mellon/adapters.py @@ -12,7 +12,7 @@ class DefaultAdapter(object): def get_idp(self, entity_id): '''Find the first IdP definition matching entity_id''' for idp in app_settings.IDENTITY_PROVIDERS: - if entity_id in idp['ENTITY_ID']: + if entity_id == idp['ENTITY_ID']: return idp def get_idps(self):