diff --git a/lenticular_cloud/auth_providers.py b/lenticular_cloud/auth_providers.py index 6c2cda3..2a097a7 100644 --- a/lenticular_cloud/auth_providers.py +++ b/lenticular_cloud/auth_providers.py @@ -5,21 +5,23 @@ from hmac import compare_digest as compare_hash import crypt from .model import User import logging +from abc import ABC, abstractclassmethod, abstractmethod logger = logging.getLogger(__name__) -class AuthProvider: +class AuthProvider(ABC): @classmethod - def get_name(csl): - return csl.__name__ + def get_name(cls): + return cls.__name__ @staticmethod + @abstractmethod def get_form() -> FlaskForm: - return + ... @staticmethod def check_auth(user: User, form) -> bool: