Authentication and Auth Failures

In Short

Flicker Fox sandbox routes require X-Sandbox-Auth; production launch and partner-switch use employer Tapestry session context; callbacks use partner signing keys. All failures return SPEC-001 error envelopes — branch on stable code values, never on localized message text.

Enterprise Identity Providers

Employer SSO through Okta or similar IdPs is configured at the Tapestry federation boundary — separate from partner API credentials. See Okta Integration and Identity Federation for the architecture overview.

Environment Separation

See Partner SDK for install paths and the environment reference table.

Sandbox Credentials

Self-serve developers register at Developer Account, verify email, then bootstrap Flicker Fox credentials. The one-time auth_value is shown once — store it securely and send it as X-Sandbox-Auth on sandbox API calls.

Production Partner APIs

Production signing keys are operator-governed. Do not embed long-lived secrets in client-side code or public repositories.

When Auth or Validation Fails

Tapestry returns JSON error envelopes with stable code fields. Required partner behavior:

  1. Branch on code, not on message or message_localized.
  2. Never log sandbox credentials, signing keys, or raw tokens.
  3. Include correlation_id from responses in support tickets.
CodeTypical meaning
AUTH_INVALIDSession or auth context invalid
TENANT_SCOPE_INVALIDCross-tenant or scope mismatch
PARTNER_NOT_ENABLEDPartner not launch-eligible for tenant
CONTEXT_INVALIDMalformed context_values
PARTNER_ADAPTER_NOT_FOUNDUnknown or unregistered partner key
CIRCUIT_BREAKER_OPENTemporary route cooldown — respect details.cooldown_seconds when present
PARTNER_CALLBACK_INVALIDCallback signature or payload rejected (400) — fix signing material; do not retry blindly

SDK helpers: TapestryApiError / parseErrorEnvelope() on the Partner SDK.