ferrero-opentext/Python-Version/scripts/shared
DJP 36efd1a651 Add mTLS session handling for certificate authentication
Adds session management for mTLS to handle "No session exists" errors.

UPDATES:
- Added session storage in __init__ for mTLS mode
- Updated _make_api_request to use requests.Session with mTLS
- Session persists certificate and cookies across requests
- Added OTDSTicket cookie handling

CURRENT STATUS:
✓ Certificate loads successfully
✓ Connection test passes
⚠️  Search campaigns returns HTTP 401 "No session exists"

This suggests mTLS may need:
1. Different API endpoints than OAuth2
2. Additional session initialization step
3. Specific headers or authentication flow
4. Contact DAM API team for mTLS documentation

OAuth2 remains default and fully functional.
Use --auth-pfx flag to test mTLS when ready.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-04 18:16:21 -05:00
..
__pycache__ Add HANDOFF_NEXT_SESSION.md - Complete session handoff document 2025-11-04 12:30:36 -05:00
__init__.py Start Python automation - Foundation components 2025-10-30 16:38:26 -04:00
box_client.py Add recursive folder search, NOT APPROVED filtering, and rejection details for A5→A6 2025-11-04 14:49:19 -05:00
config_loader.py Start Python automation - Foundation components 2025-10-30 16:38:26 -04:00
dam_client.py Add mTLS session handling for certificate authentication 2025-11-04 18:16:21 -05:00
database.py Add A5→A6 rework workflow automation (Python) 2025-11-04 13:36:35 -05:00
filename_parser.py Complete Python automation implementation - All components built 2025-10-30 16:49:14 -04:00
metadata_extractor_mvp.py Add Box metadata extraction for CreativeX fields in A2→A3 workflow 2025-11-03 14:26:00 -05:00
notifier.py Add daily summary report with comprehensive statistics 2025-11-04 16:34:44 -05:00