aurora-solar-webhooks
БесплатноЗапускает вложенные скриптыНе проверенReceive and authenticate Aurora Solar webhooks. Use when setting up an Aurora Solar webhook endpoint, checking the header_auth_key token header, reading event…
от hookdeck★ 104 звезды на GitHubОб этом скилле
Aurora Solar Webhooks
Aurora Solar (solar design software) fires a webhook when something happens in your tenant: a project or design is created, a job finishes, an agreement changes status. Each webhook is a GET request with no body. The event data (identifiers and statuses) arrives in the query string, built from a URL template you provide. Webhooks are not signed, so your endpoint authenticates them with a secret header you add to the subscription.
Always set
header_auth_keyandheader_auth_valueon the Aurora Solar subscription. Aurora's webhook authentication is optional, so a subscription created without it sends no credential to check.
When to Use This Skill
- How do I receive Aurora Solar webhooks?
- How do I authenticate Aurora Solar webhooks (
header_auth_key/header_auth_value)? - Does Aurora Solar sign webhook payloads? (No: use a secret header)
- How do I read
project_idanddesign_idfrom an Aurora webhook URL? - How do I handle
project_created,design_createdorperformance_simulation_job_completed? - Why does my Aurora Solar webhook endpoint return 401?
Verification (core)
const crypto = require('crypto');
// Hash both sides: equal-length buffers, so timingSafeEqual never throws.
function safeEqual(a, b) {
const ha = crypto.createHash('sha256').update(String(a)).digest();
const hb = crypto.createHash('sha256').update(String(b)).digest();
return crypto.timingSafeEqual(ha, hb);
}
function verifyAuroraSolarRequest(
headers,
secret = process.env.AURORA_SOLAR_WEBHOOK_SECRET,
headerName = process.env.AURORA_SOLAR_WEBHOOK_HEADER || 'X-Aurora-Webhook-Token'
) {
if (!secret) return false; // never accept when unconfigured
const received = headers[headerName.toLowerCase()]; // Node lowercases header names
return Boolean(received) && safeEqual(received, secret); // whole value, no Bearer parsing
}
- The header name is user-chosen (
header_auth_key). Aurora's docs useX-Aurora-Webhook-Token; the examples read the name fromAURORA_SOLAR_WEBHOOK_HEADER(defaultX-Aurora-Webhook-Token). - The expected value is
AURORA_SOLAR_WEBHOOK_SECRET: the exact, wholeheader_auth_value, including anyBearerprefix you typed. Look the header up case-insensitively and compare the whole value; do not strip or parse a prefix. - Check the header first, then read the query parameters. Missing header or mismatch:
401. - Python:
hmac.compare_digeston bytes (encode both sides;strraises on non-ASCII). - Read any body raw (
express.raw({ type: '*/*' })); Aurora sends none, but a proxy might.
A static shared credential authenticates the sender, not the body, and gives no replay protection (no signature, no timestamp). Use an HTTPS URL, and rotate the header value on the subscription if it leaks. Aurora also offers Basic Auth; Hookdeck's Aurora Solar source does not cover it, so use header-based token authentication.
For complete handlers with tests, see examples/express/, examples/nextjs/, examples/fastapi/.
Webhook URL Template
Aurora fires GET requests to a URL generated from a template you provide when creating the
subscription (url_template). Placeholders are upper-case attribute names in angle brackets.
Each subscription is for one event, so put a static event parameter in the template and
dispatch on it:
https://<hookdeck-url>?event=project_created&project_id=<PROJECT_ID>&source=<SOURCE>
Aurora fills in the attributes, so the request looks like
GET /?event=project_created&project_id=3fa8...&source=api. Allow GET on Hookdeck's Aurora Solar source (custom methods); the receivers also accept POST for flexibility.
Respond within 10 seconds; failures (timeout, 3xx/4xx/5xx) are retried 5 more times over 24 hours.
Event Types
The event is the subscription's event (the docs list 32). Common ones:
| Event | Sent When |
|---|---|
project_created |
A project is created (project_id, source, order_id) |
project_changed |
Project attributes change (project_id, source, attributes) |
project_status_changed |
Project status changes (project_id, status; any string) |
design_created |
A design is created (project_id, design_id, source) |
performance_simulation_job_completed |
A performance simulation finishes (design_id, job_id, status, source) |
agreement_status_changed |
An agreement is sent, signed, canceled, etc. |
web_proposal_viewed |
A web proposal is viewed (design_id, project_id, is_first_view) |
See references/overview.md for all 32 events and their attributes.
Environment Variables
AURORA_SOLAR_WEBHOOK_HEADER=X-Aurora-Webhook-Token # your header_auth_key
AURORA_SOLAR_WEBHOOK_SECRET=your-header-auth-v
Установить aurora-solar-webhooks в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл aurora-solar-webhooks?
Receive and authenticate Aurora Solar webhooks. Use when setting up an Aurora Solar webhook endpoint, checking the header_auth_key token header, reading event data from the query string of GET requests, debugging 401s, or handling events like project_created, design_created, project_status_changed and performance_simulation_job_completed.
Как установить скилл aurora-solar-webhooks?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл aurora-solar-webhooks запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
skill-creator
Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
от Anthropicdiscernment-nudge
After you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
от Anthropicdata-consolidate
Joins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
от Anthropicinspection-to-capa
Runs the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…
от Anthropic