This repository has been archived on 2023-02-21. You can view files and clone it, but cannot push or open issues or pull requests.
|
from mellon.adapters import DefaultAdapter
|
|
|
|
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
|