mirror of
https://github.com/Garmelon/PFERD.git
synced 2023-12-21 10:23:01 +01:00
Add simple authenticator
... including some required authenticator infrastructure
This commit is contained in:
@ -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", ".")
|
||||
|
Reference in New Issue
Block a user