Skip to content

Commit

Permalink
remove commented out code
Browse files Browse the repository at this point in the history
  • Loading branch information
dsschult committed Jan 11, 2024
1 parent c705efe commit 3e491d4
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions lta/rest_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,22 +64,6 @@

# -----------------------------------------------------------------------------

# if bool(os.environ.get('CI_TEST_ENV', False)):
# def lta_auth(**_auth: Any) -> Callable[..., Any]:
# def make_wrapper(method: Callable[..., Any]) -> Any:
# async def wrapper(self: Any, *args: Any, **kwargs: Any) -> Any:
# # warn the user about authentication being disabled in testing
# logging.warning("TESTING: auth disabled")
# # ensure that the code provided at least one required authentication role
# # note: if the handler doesn't need auth; don't apply an auth decorator!
# roles = _auth.get('roles', [])
# if not roles:
# raise Exception("No roles provided to lta_auth decorator!")
# # go ahead and run the handler
# return await method(self, *args, **kwargs)
# return wrapper
# return make_wrapper
# else:
lta_auth = keycloak_role_auth

# -----------------------------------------------------------------------------
Expand Down

0 comments on commit 3e491d4

Please sign in to comment.