Hugging Face
Models
Datasets
Spaces
Posts
Docs
Enterprise
Pricing
Log In
Sign Up
Spaces:
Severian
/
dify
like
0
Paused
App
Files
Files
Community
e06d413
dify
/
api
/
services
/
auth
/
api_key_auth_base.py
Severian
initial commit
a8b3f00
2 months ago
raw
Copy download link
history
blame
Safe
238 Bytes
from
abc
import
ABC, abstractmethod
class
ApiKeyAuthBase
(
ABC
):
def
__init__
(
self, credentials:
dict
):
self.credentials = credentials
@abstractmethod
def
validate_credentials
(
self
):
raise
NotImplementedError