Download api/services/auth/api_key_auth_base.py from Underground-Digital/Workflow-Engine: direct link, hf CLI and curl.
- Browser
- Download file 238 Bytes
-
https://huggingface.co/spaces/Underground-Digital/Workflow-Engine/resolve/main/api/services/auth/api_key_auth_base.py
- Command line
-
hf download hf://spaces/Underground-Digital/Workflow-Engine/api/services/auth/api_key_auth_base.py
-
curl -L -o api_key_auth_base.py https://huggingface.co/spaces/Underground-Digital/Workflow-Engine/resolve/main/api/services/auth/api_key_auth_base.py
238 Bytes
| from abc import ABC, abstractmethod | |
| class ApiKeyAuthBase(ABC): | |
| def __init__(self, credentials: dict): | |
| self.credentials = credentials | |
| def validate_credentials(self): | |
| raise NotImplementedError | |