Allow unauthenticated search and scoring (anonymous free-tier access) #34
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
In cloud mode,
get_session()raises 401 when no session header is present. This blocks all API endpoints including/api/searchfrom unauthenticated visitors.Goal
Public users should be able to search and score eBay listings without creating an account. This:
Changes
api/cloud_session.pyCloudUser(user_id="anonymous", tier="free")instead of raising 401_anon_db_path()pointing toCLOUD_DATA_ROOT/anonymous/snipe/user.dbshared_db=_shared_db_path(),user_db=_anon_db_path()api/main.pyPOST /api/blocklistagainst anonymous users (abuse vector) — return 403 with a "sign in to report sellers" messageGET /api/blocklist,POST /api/community/signal, and all search endpoints remain openTier behavior for anon