doc/ARCHITECTURE.txt added where explained internals of Brisk.
[brisk.git] / doc / ARCHITECTURE.txt
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))
+