Files
dify/api/services/auth/api_key_auth_base.py
T
ba5f8afaa8 Feat/firecrawl data source (#5232)
Co-authored-by: Nicolas <[email protected]>
Co-authored-by: chenhe <[email protected]>
Co-authored-by: takatost <[email protected]>
2024-06-15 02:46:02 +08:00

11 lines
238 B
Python

from abc import ABC, abstractmethod
class ApiKeyAuthBase(ABC):
def __init__(self, credentials: dict):
self.credentials = credentials
@abstractmethod
def validate_credentials(self):
raise NotImplementedError