Skip to content

USE CASE / SOCIAL & MESSAGING

Multiple authorized accounts proxy workflows

For organizations managing accounts they are entitled to operate, keep network configuration, browser state, and account permissions explicit.

In this guide

WORKFLOW SNAPSHOT

  • Maintain a clear mapping between approved test accounts and their browser contexts for QA.
  • Suggested starting behavior: Static assignment
  • Validate the real application and destination

A practical Multiple authorized accounts workflow

Maintain a clear mapping between approved test accounts and their browser contexts for QA.

  • Record the owner and purpose of each authorized account.
  • Separate cookie jars and credentials using the client’s supported isolation.
  • Keep a stable route within each coherent account session.

Why assign a stable route to each approved account context?

Keep a clear mapping between each authorized test account, browser context and chosen assignment. A new IP is not a substitute for isolated browser storage. Avoid rotating during an in-progress login or form transaction unless that transition is the explicit test.

Which account-to-profile mappings should you verify before scale?

A different IP does not make accounts unrelated or authorize fake identities, spam, or restriction evasion.

Confirm the active account and intended context before any state-changing operation. Use official delegated-access tools where available.

Verify the Multiple authorized accounts connection boundary

Confirm the expected account after every context switch and verify that storage from another test is absent. A permission or verification response should remain tied to the correct account rather than being interpreted as a generic route failure.

Check a neutral fixture before an account-context test

Fetches a neutral application document through the selected assignment before you continue a separately authorized account-context test.

  1. 01
    Generate your endpoint

    Choose HTTP / HTTPS and Sticky session for the complete workflow in Configure proxies.

  2. 02
    Set your proxy URL

    Set PS_PROXY_URL to http://USERNAME:PASSWORD@HOST:PORT using your generated endpoint. For IP authentication, whitelist your machine and use http://HOST:PORT. Percent-encode special characters in credentials; these are proxy credentials, separate from your account password or API key.

  3. 03
    Choose the destination

    Set PS_TARGET_URL before running the code. Use a public, non-sensitive fixture on the application you are authorized to test, chosen as the same preflight target for each approved account context.

    Example URL · replace placeholders with your targethttps://example.com/qa/account-context-preflight.html

    Set PS_EXPECT_TEXT to the fixture's application or environment name, never an account token. This optional check inspects the returned text without running JavaScript.

ps_multi_account.pyFetches a neutral application document through the selected assignment before you continue a separately authorized account-context test.
Before you runPython 3.10+ · python -m pip install requests · python ps_multi_account.py
# Fetches a neutral application document through the selected assignment before you continue a separately authorized account-context test.
# Use a public, non-sensitive fixture on the application you are authorized to test, chosen as the same preflight target for each approved account context.
import hashlib
import json
import os
import time
from pathlib import Path
from urllib.parse import urlsplit

import requests

class InspectSession(requests.Session):
    # Leave redirect bodies streamed instead of preparing the next request.
    def resolve_redirects(self, *args, **kwargs):
        return iter(())

proxy = os.environ["PS_PROXY_URL"]  # HTTP endpoint from ProxySight
target = os.environ["PS_TARGET_URL"]  # https://example.com/qa/account-context-preflight.html
if urlsplit(proxy).scheme != "http":
    raise ValueError("Use your generated HTTP proxy endpoint for this example.")
if urlsplit(target).scheme not in ("http", "https"):
    raise ValueError("PS_TARGET_URL must be an HTTP or HTTPS URL.")

with InspectSession() as client:
    client.trust_env = False  # No ambient proxy, NO_PROXY or netrc overrides
    started = time.monotonic()
    with client.get(
        target,
        proxies={"http": proxy, "https": proxy},
        headers={"Accept-Language": "en-US,en;q=0.9"},
        timeout=(10, 20), allow_redirects=False, stream=True,
    ) as response:
        body = bytearray()
        for chunk in response.iter_content(16384):
            body.extend(chunk)
            if len(body) > 1048576:
                raise RuntimeError("Response exceeds this example's 1 MiB limit.")
        Path("account-context-preflight.html").write_bytes(body)
        print(json.dumps({
            "workflow": "multi-account", "status": response.status_code,
            "elapsed_ms": round((time.monotonic() - started) * 1000),
            "bytes": len(body), "sha256": hashlib.sha256(body).hexdigest(),
            "headers": {name: response.headers.get(name) for name in ['Content-Type', 'Content-Language', 'Location']},
        }, indent=2))
        expected = os.getenv("PS_EXPECT_TEXT", "")
        if expected:
            text = body.decode(response.encoding or "utf-8", errors="replace")
            print("Expected text:", "found" if expected in text else "absent")
        # A 200 status alone does not prove the intended page was returned.
        # Inspect redirects, login prompts, 403 and 429 before another request.
Understand the result

Confirm the expected document marker and save its fingerprint with your non-secret context identifier. This standalone GET has no browser cookie jar and cannot verify account identity, role or storage isolation; assert those inside each approved browser context.

Response bodies are limited to 1 MiB for a small diagnostic. TLS verification stays enabled; redirects are left for you to inspect. Connection guide

Example: map approved accounts to isolated test contexts

Create a mapping between each authorized account, its owner, browser context, and intended task. Verify the active account before any state-changing action. Route settings should be attached to that context rather than copied between unknown profiles.

Use official role delegation where available. A test record should show the approved operator and outcome without collecting account passwords or private session material.

Illustrative observation record · replace with your test data
{
  "account": "APPROVED_TEST_ACCOUNT",
  "operator": "AUTHORIZED_ROLE",
  "context": "ISOLATED_CONTEXT_ID",
  "result": "RECORD_RESULT"
}

Multiple authorized accounts verification checklist

For this Multiple authorized accounts workflow, record ownership, context and action alongside the actual result. Use the evidence below to decide whether another observation is comparable before increasing the workload.

CheckpointHold constant or recordExpected evidence
OwnershipAuthorized owner and operatorLegitimate scope
ContextNamed cookie jar or browser profileCorrect active account
ActionExpected permitted resultAn account-specific assertion

Troubleshoot Multiple authorized accounts results and connection errors

SymptomCheck nextWhat the result tells you
Wrong account activeInspect context selectionSession isolation failed
Same exit appears twiceRead allocation rulesIP uniqueness was not necessarily promised
Action result unclearVerify completed state before retryAvoid duplicate mutations

Audit browser storage and account identity before repeating a test

Create a small account-context inventory with non-secret identifiers. Test one approved action, verify the resulting account state and close the context deliberately. Record assignment changes and session resets so another operator can reproduce the case without copying cookies or credentials.

A LITTLE CLARITY

Common questions.

Do proxies guarantee accounts cannot be linked?

No. Platforms can observe many signals beyond the exit IP.

Why verify the active account immediately before an action?

A correct route does not prevent a stale browser session from selecting the wrong account.

Which account-to-profile mappings should you verify before scale?

Confirm the expected account after every context switch and verify that storage from another test is absent. A permission or verification response should remain tied to the correct account rather than being interpreted as a generic route failure.

PUT THE KNOWLEDGE TO WORK

Your workflow.
Your next connection.

Try the controls, choose your IP behavior, and start with one clear connection check.

Explore the configurator ↗