mirror of
https://github.com/Garmelon/PFERD.git
synced 2026-04-12 15:35:05 +02:00
Remove section and config parameter from Authenticator
This commit is contained in:
parent
d905e95dbb
commit
0096a0c077
5 changed files with 9 additions and 18 deletions
|
|
@ -1,7 +1,7 @@
|
|||
from abc import ABC, abstractmethod
|
||||
from typing import Tuple
|
||||
|
||||
from ..config import Config, Section
|
||||
from ..config import Section
|
||||
|
||||
|
||||
class AuthLoadError(Exception):
|
||||
|
|
@ -19,9 +19,7 @@ class AuthSection(Section):
|
|||
class Authenticator(ABC):
|
||||
def __init__(
|
||||
self,
|
||||
name: str,
|
||||
section: AuthSection,
|
||||
config: Config,
|
||||
name: str
|
||||
) -> None:
|
||||
"""
|
||||
Initialize an authenticator from its name and its section in the config
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue