#!/bin/bash # ============================================================================ # test-auth.sh — Teste l'authentification à l'API Furious. # ============================================================================ set -e SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)" source "$SCRIPT_DIR/.env" echo "🔍 Test auth Furious..." echo "URL : $FURIOUS_API_URL" echo "User : $FURIOUS_USERNAME" echo "" # Test simple : lecture d'un user (id=1) curl -s -u "$FURIOUS_USERNAME:$FURIOUS_PASSWORD" \ -X POST "$FURIOUS_API_URL" \ -H "Content-Type: application/json" \ -d '{ "User": { "Search": { "fields": ["id", "first_name"], "limit": 1 } } }' | python3 -m json.tool