예제 #1
0
파일: mdstore.py 프로젝트: chamindu/pysaml2
 def _providers(self, descriptor):
     res = []
     for md in self.metadata.values():
         for ent_id, ent_desc in md.items():
             if "spsso_descriptor" in ent_desc:
                 res.append(ent_id)
     return res
예제 #2
0
파일: mdstore.py 프로젝트: chamindu/pysaml2
 def items(self):
     res = {}
     for md in self.metadata.values():
         res.update(md.items())
     return res.items()
예제 #3
0
파일: mdstore.py 프로젝트: chamindu/pysaml2
 def name(self, entity_id, langpref="en"):
     for md in self.metadata.values():
         if entity_id in md.items():
             return name(md[entity_id], langpref)
     return None
예제 #4
0
파일: mdstore.py 프로젝트: chamindu/pysaml2
    def bindings(self, entity_id, typ, service):
        for md in self.metadata.values():
            if entity_id in md.items():
                return md.bindings(entity_id, typ, service)

        return None
예제 #5
0
파일: mdstore.py 프로젝트: chamindu/pysaml2
    def entities(self):
        num = 0
        for md in self.metadata.values():
            num += len(md.items())

        return num
예제 #6
0
파일: mdstore.py 프로젝트: sigmunau/pysaml2
 def items(self):
     res = {}
     for md in self.metadata.values():
         res.update(md.items())
     return res.items()
예제 #7
0
파일: mdstore.py 프로젝트: sigmunau/pysaml2
    def bindings(self, entity_id, typ, service):
        for md in self.metadata.values():
            if entity_id in md.items():
                return md.bindings(entity_id, typ, service)

        return None
예제 #8
0
파일: mdstore.py 프로젝트: sigmunau/pysaml2
 def name(self, entity_id, langpref="en"):
     for md in self.metadata.values():
         if entity_id in md.items():
             return name(md[entity_id], langpref)
     return None
예제 #9
0
파일: mdstore.py 프로젝트: sigmunau/pysaml2
    def entities(self):
        num = 0
        for md in self.metadata.values():
            num += len(md.items())

        return num