From d53cfd61d2f9d72267b6ce6c9f7ee4db5ea22684 Mon Sep 17 00:00:00 2001 From: Moritz Kirmse Date: Tue, 21 Jan 2025 14:37:26 +0100 Subject: [PATCH] remove auth check --- backend/maelstro/main.py | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/backend/maelstro/main.py b/backend/maelstro/main.py index cd227b7..468c35f 100644 --- a/backend/maelstro/main.py +++ b/backend/maelstro/main.py @@ -20,16 +20,6 @@ def root_page(): return {"Hello": "World"} -@app.get("/auth") -def auth_page( - sec_roles: Annotated[str, Header(include_in_schema=False)] = "", -): - """ - Check if the user is authorized for the maestro sync platform via the MAELSTRO role - """ - return {"is_authorized": "ROLE_MAELSTRO" in sec_roles.split(";")} - - @app.get("/user") def user_page( sec_username: Annotated[str | None, Header(include_in_schema=False)] = None,