Skip to content

fix(storefront): Create Customer Socket Token expects 404 while socket auth is off - #71

Merged
roncodes merged 1 commit into
mainfrom
fix/socket-token-expects-404
Oct 14, 2026
Merged

roncodes merged 1 commit into
mainfrom
fix/socket-token-expects-404

Conversation

@roncodes

Copy link
Copy Markdown
Member

Socket authentication is off by default and off in production until its rollout reaches it. While it is off POST customers/socket-token answers 404 and clients connect anonymously, which the request's description already documents. The request now asserts exactly that (expected_status 404) unless the environment declares socket_auth_enabled, in which case it expects a token with expires_in and expires_at.

Pairs with a fleetbase/fleetbase PR that stops switching socket auth on in the contract stack, so the contract runs match production.

…t auth is off

Socket authentication is off by default and off in production until its rollout
reaches it, so the documented answer is 404 and clients connect anonymously. The
request asserts that unless the environment declares socket_auth_enabled, in which
case it expects a token with its expiry.
@roncodes
roncodes merged commit 69995fd into main Oct 14, 2026
1 check passed
roncodes added a commit to fleetbase/fleetbase that referenced this pull request Oct 14, 2026
The contract stack should match production, where socket auth stays off until the
#710 rollout reaches it. The socket-token endpoints answer 404 while it is off, and
fleetbase/postman#71 asserts that unless the environment declares
socket_auth_enabled. Reverts the switch from #717/#718.
@roncodes
roncodes deleted the fix/socket-token-expects-404 branch October 14, 2026 08:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant