mirror of
https://github.com/crewAIInc/crewAI.git
synced 2026-07-01 21:28:10 +00:00
Solve bandit issues
This commit is contained in:
@@ -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:
|
||||
|
||||
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user