Solve bandit issues

This commit is contained in:
Heitor Carvalho
2025-05-21 18:12:35 -03:00
parent 8aacb6a81c
commit cd101b673e
2 changed files with 3 additions and 1 deletions

View File

@@ -29,7 +29,7 @@ class AuthenticationCommand:
)
NONCE = secrets.token_hex(6)
STATE = secrets.token_hex(9)
SOCKET_HOST = "0.0.0.0"
SOCKET_HOST = "0.0.0.0" # nosec: B104
SOCKET_PORT = 49152
def __init__(self):
@@ -142,6 +142,7 @@ class AuthenticationCommand:
"redirect_uri": f"http://localhost:{self.SOCKET_PORT}",
"code_verifier": self.CODE_VERIFIER,
},
timeout=10,
)
if response.status_code != 200:

View File

@@ -33,6 +33,7 @@ def get_auth_token_with_refresh_token(refresh_token: str) -> dict:
"refresh_token": refresh_token,
"client_id": WORKOS_CLIENT_ID,
},
timeout=10,
)
if response.status_code != 200: