def do_aggregation(self, subject_id): logger.info("** Do VO aggregation **\nSubjectID: %s, VO:%s" % ( subject_id, self.vorg_name)) to_ask = self.members_to_ask(subject_id) if to_ask: # Find the NameIDFormat and the SPNameQualifier if self.vorg_conf and "nameid_format" in self.vorg_conf: name_id_format = self.vorg_conf["nameid_format"] sp_name_qualifier = "" else: sp_name_qualifier = self.vorg_name name_id_format = "" com_identifier = self.get_common_identifier(subject_id) resolver = AttributeResolver(self.sp) # extends returns a list of session_infos for session_info in resolver.extend(com_identifier, self.sp.config.entityid, to_ask, name_id_format=name_id_format, sp_name_qualifier=sp_name_qualifier, real_id=subject_id): _ = self._cache_session(session_info) logger.info(">Issuers: %s" % self.sp.users.issuers_of_info( subject_id)) logger.info("AVA: %s" % (self.sp.users.get_identity(subject_id),)) return True else: return False
def do_aggregation(self, name_id): logger.info("** Do VO aggregation **\nSubjectID: %s, VO:%s" % (name_id, self._name)) to_ask = self.members_to_ask(name_id) if to_ask: com_identifier = self.get_common_identifier(name_id) resolver = AttributeResolver(self.sp) # extends returns a list of session_infos for session_info in resolver.extend(com_identifier, self.sp.config.entityid, to_ask): _ = self._cache_session(session_info) logger.info(">Issuers: %s" % self.sp.users.issuers_of_info(name_id)) logger.info("AVA: %s" % (self.sp.users.get_identity(name_id),)) return True else: return False
def do_aggregation(self, name_id): logger.info("** Do VO aggregation **\nSubjectID: %s, VO:%s", name_id, self._name) to_ask = self.members_to_ask(name_id) if to_ask: com_identifier = self.get_common_identifier(name_id) resolver = AttributeResolver(self.sp) # extends returns a list of session_infos for session_info in resolver.extend( com_identifier, self.sp.config.entityid, to_ask): _ = self._cache_session(session_info) logger.info(">Issuers: %s", self.sp.users.issuers_of_info(name_id)) logger.info("AVA: %s", self.sp.users.get_identity(name_id)) return True else: return False