From a545169d7e6be6944089e34ba7741a4a41d6df75 Mon Sep 17 00:00:00 2001 From: Florens Douwes Date: Sat, 29 Mar 2014 23:25:49 +0100 Subject: [PATCH] Added documentation for 4chan pass. --- docs/pass.txt | 50 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 docs/pass.txt diff --git a/docs/pass.txt b/docs/pass.txt new file mode 100644 index 00000000..4cf2defa --- /dev/null +++ b/docs/pass.txt @@ -0,0 +1,50 @@ +Authorizing pass: +POST https://sys.4chan.org/auth +act=do_login&id=HASH&pin=PIN +(optional) long_login=yes + + +Login response: +Set-Cookie:pass_id=0; expires=Thu, 01-Jan-1970 00:00:01 GMT; Max-Age=-1396102928; path=/; domain=sys.4chan.org; secure; httponly +Set-Cookie:pass_id=PASS_ID; expires=Sun, 30-Mar-2014 14:22:09 GMT; Max-Age=86400; path=/; domain=.4chan.org; secure; httponly +Set-Cookie:pass_enabled=1; expires=Sun, 30-Mar-2014 14:22:09 GMT; Max-Age=86400; path=/; domain=.4chan.org + + + + + + + + 4chan Pass - Authenticated + + + + +
+
4chan Pass
+
+
+
+

You are authenticated.

+

[Logout]

+ + + + +Error responses: +
Error: Your Token must be exactly 10 characters.



[Return]
+ + +This Pass is already in use by another IP. Please wait 19 minutes and re-authorize by visiting this page again to change IPs. + + + +And when posting: +Cookie: pass_id=PASS_ID; pass_enabled=1; + +Logging out: +sets cookies pass_id=0 and pass_enabled=0 + + + +