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.
- 01Generate your endpoint
Choose HTTP / HTTPS and Sticky session for the complete workflow in Configure proxies.
- 02Set your proxy URL
Set
PS_PROXY_URLtohttp://USERNAME:PASSWORD@HOST:PORTusing your generated endpoint. For IP authentication, whitelist your machine and usehttp://HOST:PORT. Percent-encode special characters in credentials; these are proxy credentials, separate from your account password or API key. - 03Choose the destination
Set
Example URL · replace placeholders with your targetPS_TARGET_URLbefore 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.https://example.com/qa/account-context-preflight.htmlSet 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.
Python 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.
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.
{
"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.
| Checkpoint | Hold constant or record | Expected evidence |
|---|---|---|
| Ownership | Authorized owner and operator | Legitimate scope |
| Context | Named cookie jar or browser profile | Correct active account |
| Action | Expected permitted result | An account-specific assertion |
Troubleshoot Multiple authorized accounts results and connection errors
| Symptom | Check next | What the result tells you |
|---|---|---|
| Wrong account active | Inspect context selection | Session isolation failed |
| Same exit appears twice | Read allocation rules | IP uniqueness was not necessarily promised |
| Action result unclear | Verify completed state before retry | Avoid 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.