From 7ad98b8d28a70de1074d15f17eadc201720283a2 Mon Sep 17 00:00:00 2001 From: Tom Hacohen Date: Sun, 27 Dec 2020 17:30:17 +0200 Subject: [PATCH] Implement is_etebase. --- etebase_fastapi/authentication.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/etebase_fastapi/authentication.py b/etebase_fastapi/authentication.py index 51ba80d..e355aa4 100644 --- a/etebase_fastapi/authentication.py +++ b/etebase_fastapi/authentication.py @@ -223,6 +223,11 @@ def validate_login_request( raise ValidationError("login_bad_signature", "Wrong password for user.", status.HTTP_401_UNAUTHORIZED) +@authentication_router.get("/is_etebase/") +async def is_etebase(): + return MsgpackResponse({}) + + @authentication_router.post("/login_challenge/") async def login_challenge(user: User = Depends(get_login_user)): enc_key = get_encryption_key(user.userinfo.salt)