Interplane page as plain text, for reading tools and agents. English is the reference text: translate it with your own tool. Text in backticks and in ``` blocks (commands, fingerprints, file names) and link targets in <...> are exact: copy them, never translate them. Page: /drakestapleton/interplane-forge/blob/main/social/tests/onebox.sh # interplane-forge INTERPLANE Forge Brought by drakestapleton Sign in to star 0 stars 0 watching About Files History Releases Proposed changes Issues For developers branch `main` Branches Tags History `interplane-forge / social / tests / onebox.sh` 23 lines ยท 1845 bytes Raw Blame History 1 #!/bin/bash 2 # One-box sign-in (2026-11-15): the page shows one command and one box; the pasted block is the 3 # account id line followed by the signature. Checks the page, a valid paste, a paste whose id line 4 # names another key (refused), and a paste with no id line (refused). Helpers: tests/lib.sh. 5 . "$(dirname "$0")/lib.sh" 6 start 7 login_get 8 grep -q "curl -fsSL https://interplane.io/signin.sh | sh -s -- interplane-forge-login:$NONCE:$TS" "$T/body" && ok "page shows the one command with the challenge" || bad "one command not in page" 9 grep -q "name=\"did\"" "$T/body" && bad "page still has a DID field" || ok "page has no DID field" 10 [ "$(grep -c " 403 12 sign "$T/k1"; { echo "$D2"; cat "$T/sig"; } > "$T/blk"; mv "$T/blk" "$T/sig"; c=$(login_post ""); check "$c" 403 "NEG one-box paste with another key id refused" 13 # NEGATIVE: signature only, no id line -> 400 14 login_get; sign "$T/k1"; c=$(login_post ""); check "$c" 400 "NEG one-box paste without the id line refused" 15 # POSITIVE: id line + signature, CRLF line ends as a browser sends them 16 login_get; sign "$T/k1"; { echo "$D1"; cat "$T/sig"; } | sed "s/\$/\r/" > "$T/blk"; mv "$T/blk" "$T/sig"; c=$(login_post ""); check "$c" 303 "one-box paste signs in" 17 SES=$(hdr set-cookie | sed -n "s/^__Host-forge_session=\([0-9a-f]*\);.*/\1/p"); [ ${#SES} = 64 ] && ok "session cookie issued" || bad "no session cookie" 18 # POSITIVE: the output of signin.sh itself 19 if [ -f "$(dirname "$0")/../signin.sh" ]; then 20 login_get; INTERPLANE_KEY="$T/k2" sh "$(dirname "$0")/../signin.sh" "interplane-forge-login:$NONCE:$TS" > "$T/sig" 2> /dev/null; c=$(login_post ""); check "$c" 303 "the block signin.sh prints signs in" 21 fi 22 echo "---- $PASS passed, $FAIL failed" 23 [ "$FAIL" = 0 ]