Skip to content

Commit

Permalink
Remove require_authentication decorator from security.py (#35340)
Browse files Browse the repository at this point in the history
This decorator was added in #34317, but it seems it's not used anywhere.
Opening this PR to see if I'm missing something
  • Loading branch information
ephraimbuddy committed Nov 1, 2023
1 parent 8c25304 commit 8387294
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions airflow/api_connexion/security.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,17 +92,6 @@ def _requires_access(*, is_authorized_callback: Callable[[], bool], func: Callab
raise PermissionDenied()


def requires_authentication(func: T):
"""Decorator for functions that require authentication."""

@wraps(func)
def decorated(*args, **kwargs):
check_authentication()
return func(*args, **kwargs)

return cast(T, decorated)


def requires_access_configuration(method: ResourceMethod) -> Callable[[T], T]:
def requires_access_decorator(func: T):
@wraps(func)
Expand Down

0 comments on commit 8387294

Please sign in to comment.