docs: add quixzoom-auth-core product to AAMOS
- Product documentation in docs/products/ - Updated MEMORY.md with product info - quiXzoom Auth Core as AAMOS Identity product
This commit is contained in:
Executable
+36
@@ -0,0 +1,36 @@
|
||||
#!/bin/bash
|
||||
# Update all quixzoom sites with SSO auth integration
|
||||
|
||||
echo "🔄 Updating quixzoom sites with SSO auth..."
|
||||
|
||||
# List of sites to update
|
||||
SITES=(
|
||||
"/home/bernt/.openclaw/workspace/quixzoom-landing-fixed"
|
||||
"/home/bernt/.openclaw/workspace/quixzoom-asia-pages"
|
||||
"/home/bernt/.openclaw/workspace/quixzoom-market-pages"
|
||||
)
|
||||
|
||||
AUTH_SNIPPET='<script type="module" src="https://auth.quixzoom.com/site-auth-snippet.js"></script>'
|
||||
|
||||
for site in "${SITES[@]}"; do
|
||||
if [ -d "$site" ]; then
|
||||
echo "📁 Processing: $site"
|
||||
|
||||
# Find all HTML files
|
||||
find "$site" -name "*.html" -type f | while read -r file; do
|
||||
# Check if already has auth snippet
|
||||
if ! grep -q "site-auth-snippet.js" "$file"; then
|
||||
# Add auth snippet before </head>
|
||||
sed -i "s|</head>| $AUTH_SNIPPET\n</head>|" "$file"
|
||||
echo " ✅ Updated: $(basename "$file")"
|
||||
else
|
||||
echo " ⏭️ Already has auth: $(basename "$file")"
|
||||
fi
|
||||
done
|
||||
fi
|
||||
done
|
||||
|
||||
echo ""
|
||||
echo "✅ All sites updated!"
|
||||
echo ""
|
||||
echo "Next: Deploy updated sites to S3/CloudFront"
|
||||
Reference in New Issue
Block a user