302 GOOGLE_CLIENT_SECRETS to GOOGLE_CLIENT_SECRET_PATH

This commit is contained in:
Taylor Wilsdon
2025-06-28 12:14:42 -07:00
parent fef8479620
commit 5f08c89468
4 changed files with 7 additions and 7 deletions

View File

@@ -64,7 +64,7 @@ class MinimalOAuthServer:
env_config = load_client_secrets_from_env()
if not env_config and not os.path.exists(CONFIG_CLIENT_SECRETS_PATH):
logger.error(f"OAuth client credentials not found. No environment variables set and no file at {CONFIG_CLIENT_SECRETS_PATH}")
return create_error_response("Server Configuration Error: OAuth client credentials not found. Please set GOOGLE_OAUTH_CLIENT_ID and GOOGLE_OAUTH_CLIENT_SECRET environment variables or provide client_secret.json file.")
return create_server_error_response("OAuth client credentials not found. Please set GOOGLE_OAUTH_CLIENT_ID and GOOGLE_OAUTH_CLIENT_SECRET environment variables or provide client_secret.json file.")
logger.info(f"OAuth callback: Received code (state: {state}). Attempting to exchange for tokens.")
@@ -112,7 +112,7 @@ class MinimalOAuthServer:
hostname = parsed_uri.hostname or 'localhost'
except Exception:
hostname = 'localhost'
try:
with socket.socket(socket.AF_INET, socket.SOCK_STREAM) as s:
s.bind((hostname, self.port))