adapter returning entity matching idp
This commit is contained in:
parent
318ca21be1
commit
c9c0c92c65
|
@ -6,3 +6,8 @@ from .utils import get_idp_list
|
|||
class UAuthAdapter(DefaultAdapter):
|
||||
def get_idps(self):
|
||||
return get_idp_list()
|
||||
|
||||
def get_idp(self, entity_id):
|
||||
for idp in self.get_idps():
|
||||
if idp['ENTITY_ID'] == entity_id:
|
||||
return idp
|
||||
|
|
Reference in New Issue