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:
parent
59e93e270f
commit
6b4cabdc27
|
@ -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):
|
||||
|
|
Loading…
Reference in New Issue