root / uauth / adapters.py @ 7b499930
1 | 4a9d49de | Serghei MIHAI | from mellon.adapters import DefaultAdapter |
---|---|---|---|
2 | |||
3 | from .utils import get_idp_list |
||
4 | |||
5 | |||
6 | class UAuthAdapter(DefaultAdapter): |
||
7 | def get_idps(self): |
||
8 | return get_idp_list() |
||
9 | c9c0c92c | Serghei MIHAI | |
10 | def get_idp(self, entity_id): |
||
11 | for idp in self.get_idps(): |
||
12 | if idp['ENTITY_ID'] == entity_id: |
||
13 | return idp |