Add simple authenticator

... including some required authenticator infrastructure
This commit is contained in:
Joscha
2021-05-11 00:27:43 +02:00
parent d5f29f01c5
commit 0459ed093e
5 changed files with 155 additions and 0 deletions

View File

@ -138,6 +138,15 @@ class Config:
return result
def authenticator_sections(self) -> List[Tuple[str, SectionProxy]]:
result = []
for section_name, section_proxy in self._parser.items():
if section_name.startswith("auth:"):
crawler_name = section_name[5:]
result.append((crawler_name, section_proxy))
return result
@property
def working_dir(self) -> Path:
pathstr = self.default_section.get("working_dir", ".")