harbor run -t openthoughts/tasktrove-exp-rle-adversarial-5k-adversarial-4460
harbor download openthoughts/tasktrove-exp-rle-adversarial-5k-adversarial-4460
Task: Implement a minimal in-memory UsersService for authentication
Requirements:
Define a simple User data model with a single field:
Provide a factory function:
Implement the UsersService class with the following methods:
authenticate_user(username: str, password: str) -> User
get_user(username: str) -> User
async def find_user_by_api_key(api_key: str) -> User
Notes: