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
This commit is contained in:
Benjamin Dauvergne 2015-05-18 14:47:19 +02:00
parent 59e93e270f
commit 6b4cabdc27
1 changed files with 1 additions and 1 deletions

View File

@ -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):