Skip to content

Commit

Permalink
remove auth check
Browse files Browse the repository at this point in the history
  • Loading branch information
mki-c2c committed Jan 21, 2025
1 parent 45d2a11 commit d53cfd6
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions backend/maelstro/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit d53cfd6

Please sign in to comment.