You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: lock in marketplace API surface and 403 auth handling
Third spike run confirmed the marketplace API lives at
marketplace-api.mendix.com/v1/content (not appstore.home.mendix.com as
earlier drafts claimed) and accepts PAT auth via the documented
"Authorization: MxToken <pat>" scheme. /v1/content, /v1/content/{id},
and /v1/content/{id}/versions all return 200 with useful JSON;
minSupportedMendixVersion on version objects gives us version-
compatibility filtering without extra work.
Updates the marketplace proposal with the validated base URL, endpoint
list, response shapes, and remaining open questions (download URL and
search semantics still need one more probe round). Adds a Spike Results
section to the platform auth proposal summarizing the findings.
Extends authTransport to treat 403 as ErrUnauthenticated in addition
to 401 — Mendix portal docs state PAT rejection returns 403, and we
saw 401 in practice against marketplace. Both wrap as the same typed
error so callers get a single "run mxcli auth login" hint regardless
of which status the backend chose.
Also adds scripts/auth-spike-summary.sh, a tiny awk filter that strips
the 300-line CSP headers from the spike report so the relevant status
codes and body snippets are pasteable.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
0 commit comments