doc/ARCHITECTURE.txt added where explained internals of Brisk.
authorMatteo Nastasi (mop) <nastasi@alternativeoutput.it>
Sun, 20 Mar 2011 16:17:09 +0000 (17:17 +0100)
committerMatteo Nastasi (mop) <nastasi@alternativeoutput.it>
Sun, 20 Mar 2011 16:17:09 +0000 (17:17 +0100)
doc/ARCHITECTURE.txt [new file with mode: 0644]

diff --git a/doc/ARCHITECTURE.txt b/doc/ARCHITECTURE.txt
new file mode 100644 (file)
index 0000000..b350151
--- /dev/null
@@ -0,0 +1,19 @@
+Sparse documentation about Brisk.
+
+Many things aren't documented at all, but I start with authentication workflow.
+
+
+
+AUTHENTICATION WORKFLOW
+
+--- CLI ------------
+index.php:
+  onsubmit="return j_login_manager(this);" ->
+            sync xhr(index_wr.php?mesg=getchallenge&cli_name=<username>)
+
+--- SRV ------------
+  GET index_wr.php send the string: "1|<tokens>"
+
+--- CLI ------------
+  POST index.php with passid_private field equal to calcMD5(tokens[1]+calcMD5(form.elements['passid'].value))
+