mirror of
https://github.com/Garmelon/PFERD.git
synced 2026-04-12 23:45:05 +02:00
Add simple authenticator
... including some required authenticator infrastructure
This commit is contained in:
parent
d5f29f01c5
commit
0459ed093e
5 changed files with 155 additions and 0 deletions
|
|
@ -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", ".")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue