Skip to content

Commit

Permalink
Resolving mising args and more
Browse files Browse the repository at this point in the history
  • Loading branch information
alex-zywicki committed Nov 10, 2021
1 parent ddad308 commit e081599
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions asynction/security/validation.py
Original file line number Diff line number Diff line change
Expand Up @@ -213,8 +213,6 @@ def build_http_api_key_security_check(
if api_key_in not in ["query", "header", "cookie"]:
raise SecurityException("invalid api key location specified")

print(api_key_in, api_key_name)

def http_api_key_security_check(request: Request):
def _immutable_pop(_dict, key):
"""
Expand All @@ -238,11 +236,10 @@ def _immutable_pop(_dict, key):
apikey = get_cookie_value(cookieslist, api_key_name)
else:
return None
print(f"apiKey: {apikey}")
if apikey is None:
return None

token_info = api_key_info_func(apikey, required_scopes)
token_info = api_key_info_func(apikey, required_scopes, None)
if token_info is None:
return None

Expand Down

0 comments on commit e081599

Please sign in to comment.