dify/api/services/auth/api_key_auth_base.py

11 lines
238 B
Python
Raw Permalink Normal View History

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