Project

General

Profile

Download (312 Bytes) Statistics
| Branch: | Tag: | Revision:

root / uauth / adapters.py @ c9c0c92c

1
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

    
10
    def get_idp(self, entity_id):
11
        for idp in self.get_idps():
12
            if idp['ENTITY_ID'] == entity_id:
13
                return idp
(2-2/8)