adapter returning entity matching idp

This commit is contained in:
Serghei Mihai 2015-03-24 16:46:23 +01:00
parent 318ca21be1
commit c9c0c92c65
1 changed files with 5 additions and 0 deletions

View File

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