Files
OSIT-AE-API-FastAPI/tests/integration/debug_auth_dependency.py
Scott Idem 29f6cf258f chore(tests): reorganize test suite and archive redundant scripts
- Moved legacy/redundant tests to tests/archive/.
- Relocated root-level debug scripts to tests/integration/.
- Updated tests/README.md with final organized inventory.
- Cleaned up root directory from one-off reproduction scripts.
2026-02-03 16:18:57 -05:00

25 lines
662 B
Python

import asyncio
from typing import Optional
from app.routers.dependencies_v3 import get_account_context_optional
async def debug_auth():
print("--- Debugging get_account_context_optional ---")
API_KEY = "IDF68Em5X4HTZlswRNgepQ"
# Simulate Query Param
ctx = get_account_context_optional(
x_aether_api_key_query=API_KEY
)
print(f"Auth Method: {ctx.auth_method}")
print(f"Account ID: {ctx.account_id}")
if ctx.auth_method == 'guest':
print("❌ Result: Guest (Failure)")
else:
print(f"✅ Result: {ctx.auth_method} (Success)")
if __name__ == "__main__":
asyncio.run(debug_auth())