Download src/security/auth.py from DataEyond/Agentic-Service-Data-Eyond-Catalog: direct link, hf CLI and curl.
- Browser
- Download file 480 Bytes
-
https://huggingface.co/spaces/DataEyond/Agentic-Service-Data-Eyond-Catalog/resolve/ae50194de0d72e5b8f551bb4325bec31bfa803be/src/security/auth.py
- Command line
-
hf download hf://spaces/DataEyond/Agentic-Service-Data-Eyond-Catalog@ae50194de0d72e5b8f551bb4325bec31bfa803be/src/security/auth.py
-
curl -L -o auth.py https://huggingface.co/spaces/DataEyond/Agentic-Service-Data-Eyond-Catalog/resolve/ae50194de0d72e5b8f551bb4325bec31bfa803be/src/security/auth.py
480 Bytes
| """Authentication helpers: password hashing, JWT encode/decode, get_user. | |
| Receives the working implementation from the previous src/users/users.py | |
| during the cleanup phase. | |
| """ | |
| def hash_password(plaintext: str) -> str: | |
| raise NotImplementedError | |
| def verify_password(plaintext: str, hashed: str) -> bool: | |
| raise NotImplementedError | |
| def encode_jwt(payload: dict) -> str: | |
| raise NotImplementedError | |
| def decode_jwt(token: str) -> dict: | |
| raise NotImplementedError | |