29 lines
974 B
Python
29 lines
974 B
Python
import os
|
|
import sys
|
|
|
|
# Füge das aktuelle Verzeichnis zum Python-Pfad hinzu, damit config.py gefunden wird.
|
|
sys.path.append(os.getcwd())
|
|
|
|
try:
|
|
from config import settings
|
|
except ImportError:
|
|
print("Error: Could not import 'settings' from 'config.py'.")
|
|
sys.exit(1)
|
|
|
|
print("--- SuperOffice Configuration Debug ---")
|
|
print(f"Environment: {settings.SO_ENVIRONMENT}")
|
|
print(f"Client ID: {settings.SO_CLIENT_ID[:5]}... (Length: {len(settings.SO_CLIENT_ID)})")
|
|
# Secret nicht ausgeben, nur ob gesetzt
|
|
if settings.SO_CLIENT_SECRET:
|
|
print(f"Client Secret Set: Yes (Length: {len(settings.SO_CLIENT_SECRET)})")
|
|
else:
|
|
print("Client Secret Set: No")
|
|
|
|
if settings.SO_REFRESH_TOKEN:
|
|
print(f"Refresh Token Set: Yes (Length: {len(settings.SO_REFRESH_TOKEN)})")
|
|
else:
|
|
print("Refresh Token Set: No")
|
|
|
|
print(f"Context Identifier: {settings.SO_CONTEXT_IDENTIFIER}")
|
|
print(f"Redirect URI: {settings.SO_REDIRECT_URI}")
|
|
print("---------------------------------------") |