You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

api_key_auth_base.py 238B

12345678910
  1. from abc import ABC, abstractmethod
  2. class ApiKeyAuthBase(ABC):
  3. def __init__(self, credentials: dict):
  4. self.credentials = credentials
  5. @abstractmethod
  6. def validate_credentials(self):
  7. raise NotImplementedError