feat: sign in to IMVU for Access Pass products #4

Merged
dhkatz merged 1 commits from feat/signed-in into main 2026-11-08 16:15:05 +00:00
Owner

The importer signs in to IMVU, so Access Pass products import too. It needs the hub's matching PR (list jobs, /listing and /info).

What it does:

  • Signing in: it uses the first of the console's accounts, in order, that IMVU takes. It reports ok with whether the account has Access Pass (IMVU shows that to the account itself only), or sign_in_failed with IMVU's message.
  • Sessions: kept in IMPORTER_DATA/sessions, so a restart resumes rather than signing in again (IMVU limits sign-ins). A refused account isn't tried again for an hour unless its password changes; this is stored, so restarts respect it too. If IMVU ends a session, a job signs in again and retries once.
  • list jobs: lists the shop signed in, in pages of 1000 (deduplicated), after checking the session is still alive (signed out, IMVU would quietly list general-rated products only), and reports it to the hub.
  • Jobs without a rating: the product is hidden from the hub, so the importer looks it up signed in and reports it. It goes on with the hub's rating, or fails with the reason: another creator's, not visible even signed in, or no Access Pass.
  • User-Agent: IMVU's sign-in works only with a desktop browser's User-Agent. With anything else, including the same with the importer's name added, it answers 500 OUTBOUND VALIDATION-004. So signed-in requests to IMVU's API send Mozilla/5.0 (Windows NT 10.0; Win64; x64). The CDN and the hub still get t5de-importer/<version>.
  • Line endings: adds .gitattributes (LF, as in the other Go repos); the Windows checkout had CRLF files that gofmt -l flagged.

Checks

  • Tests: a new test with a fake IMVU API (internal/imvutest/api.go) covers:
    • a refused account, then an Access Pass one
    • a listing that includes the Access Pass product
    • a hidden product looked up, reported and imported as AP
    • a deleted product failing
    • a restart resuming the session without signing in, and not retrying the refused account
    • IMVU ending the session: one new sign-in, and both listings succeed
  • Repeat runs: the importer tests pass 4 times in a row.
  • Live, with your Access Pass account, Dilfi:
    • It signed in and reported Access Pass.
    • NellLuna's shop listed 763 products, and 124 were queued.
    • Four Access Pass products imported, rated adult.
    • DemoCreator's listing failed as expected: it's a made-up account.

🤖 Generated with Claude Code

The importer signs in to IMVU, so Access Pass products import too. It needs the hub's matching PR (`list` jobs, `/listing` and `/info`). **What it does:** - **Signing in:** it uses the first of the console's accounts, in order, that IMVU takes. It reports `ok` with whether the account has Access Pass (IMVU shows that to the account itself only), or `sign_in_failed` with IMVU's message. - **Sessions:** kept in `IMPORTER_DATA/sessions`, so a restart resumes rather than signing in again (IMVU limits sign-ins). A refused account isn't tried again for an hour unless its password changes; this is stored, so restarts respect it too. If IMVU ends a session, a job signs in again and retries once. - **`list` jobs:** lists the shop signed in, in pages of 1000 (deduplicated), after checking the session is still alive (signed out, IMVU would quietly list general-rated products only), and reports it to the hub. - **Jobs without a rating:** the product is hidden from the hub, so the importer looks it up signed in and reports it. It goes on with the hub's rating, or fails with the reason: another creator's, not visible even signed in, or no Access Pass. - **User-Agent:** IMVU's sign-in works only with a desktop browser's User-Agent. With anything else, including the same with the importer's name added, it answers 500 `OUTBOUND VALIDATION-004`. So signed-in requests to IMVU's API send `Mozilla/5.0 (Windows NT 10.0; Win64; x64)`. The CDN and the hub still get `t5de-importer/<version>`. - **Line endings:** adds `.gitattributes` (LF, as in the other Go repos); the Windows checkout had CRLF files that `gofmt -l` flagged. **Checks** - **Tests:** a new test with a fake IMVU API (`internal/imvutest/api.go`) covers: - a refused account, then an Access Pass one - a listing that includes the Access Pass product - a hidden product looked up, reported and imported as AP - a deleted product failing - a restart resuming the session without signing in, and not retrying the refused account - IMVU ending the session: one new sign-in, and both listings succeed - **Repeat runs:** the importer tests pass 4 times in a row. - **Live, with your Access Pass account, Dilfi:** - It signed in and reported Access Pass. - NellLuna's shop listed 763 products, and 124 were queued. - Four Access Pass products imported, rated adult. - DemoCreator's listing failed as expected: it's a made-up account. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
dhkatz added 1 commit 2026-11-08 15:40:05 +00:00
feat: sign in to IMVU for Access Pass products
CI / build (pull_request) Successful in 21s
CI / image (pull_request) Skipped
Pull request / title (pull_request) Successful in 1s
7dfbeb5ba3
The importer signs in with the first of the console's accounts that IMVU takes, reports refusals and whether the
account has Access Pass, and keeps the session so restarts don't sign in again. With it, it lists whole shops
signed in for the hub ("list" jobs) and looks up products the hub can't see before importing them, so Access Pass
products import too. IMVU's sign-in works only with a desktop browser's User-Agent, which signed-in requests send.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
dhkatz merged commit 145ebf25c1 into main 2026-11-08 16:15:05 +00:00
dhkatz deleted branch feat/signed-in 2026-11-08 16:15:05 +00:00
Sign in to join this conversation.
No Reviewers
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: t5de/t5de-importer#4