gruhit-patel commited on
Commit
ed9937c
1 Parent(s): a1025a5
Files changed (1) hide show
  1. main.py +2 -0
main.py CHANGED
@@ -12,6 +12,8 @@ oauth2_scheme = OAuth2PasswordBearer(tokenUrl="token")
12
 
13
  # Function to check of the incoming API call is from valid host or not
14
  def api_key_auth(api_key:str = Depends(oauth2_scheme)):
 
 
15
  if api_key != API_KEY:
16
  raise HTTPException(
17
  status_code = status.HTTP_401_UNAUTHORIZED,
 
12
 
13
  # Function to check of the incoming API call is from valid host or not
14
  def api_key_auth(api_key:str = Depends(oauth2_scheme)):
15
+ print(f'User sent API: {api_key}')
16
+ print(f'Auth API_KEY: {API_KEY}')
17
  if api_key != API_KEY:
18
  raise HTTPException(
19
  status_code = status.HTTP_401_UNAUTHORIZED,