Commit graph

6 commits

Author SHA1 Message Date
DJP
073f148cec Use correct Make.com API key header: x-make-apikey
Changed from custom header to Make.com's official API key header format.
Reference: https://apps.make.com/gateway

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-17 15:02:18 -05:00
DJP
3aeeae7401 Remove custom API key header for Make.com webhook
Make.com webhooks use the URL itself as authentication, not custom headers.
Removed 'Loreal-Webhook' header - only sending Content-Type: application/json.
Added payload logging for debugging.

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-17 15:00:01 -05:00
DJP
70a4d26d9b Fix 401 error: Don't pass webhook status code to client
Issue: When webhook returned 401, PHP was setting http_response_code(401)
which made the browser think the PHP endpoint was unauthorized.

Fix: Always return 200 to client, but indicate webhook failure in JSON response.
Added detailed logging of webhook failures.

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-17 14:58:10 -05:00
DJP
d11bdc634a Add debug logging to troubleshoot 401 error
- Enable display_errors for debugging
- Add SSO status logging
- Add detailed error information in response
- Log authentication user details

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-17 14:54:06 -05:00
DJP
d6c44ef3ad Fix webhook API key header name for Make.com
Changed from 'X-API-Key' to 'Loreal-Webhook' header to match Make.com webhook expectations.

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-17 14:50:58 -05:00
DJP
dbf7090d09 Initial commit: L'Oréal Box Asset Submission Form
- Set up PHP application with Composer and JWT library
- Implemented SSO authentication with local dev mode
- Created Box API service for folder validation
- Built two-column form interface (form + preview)
- Added real-time Box ID validation with AJAX
- Integrated webhook submission with status response
- Auto-populate Master Campaign Number from Box folder hierarchy
- Responsive design with Montserrat font and black/yellow theme

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-17 14:43:36 -05:00