example.com -> example.org
[Seppo.git] / doc / 00006_--_arch_design.txt
blobb679c972ba233b24b4b2892be57b87cd6d892e5e
2 Q: How login.
4 A: Via webform or HTTP Digest RFC 7616
6 Requires:
7 - ban ->00007
8 - auth ->00005
10 Implementation:
12 Shaarli-compliant in url, form fields and response behaviour.
14 GET /seppo.cgi?do=login
16 <?xml version="1.0" encoding="UTF-8"?>
17 <?xml-stylesheet type='text/xsl' href='./themes/current/do=login.xslt'?>
18 <!--
19   A Shaarli-compatible clear-text password login.
21   Must be compatible with https://code.mro.name/mro/Shaarli-API-test/src/master/tests/test-post.sh
22   https://code.mro.name/mro/ShaarliOS/src/1d124e012933d1209d64071a90237dc5ec6372fc/ios/ShaarliOS/API/ShaarliCmd.m#L386
23 -->
24 <html xmlns="http://www.w3.org/1999/xhtml">
25 <head><title>My Seppo</title></head>
26 <body>
27   <form method="post" name="loginform">
28     <input type="text" name="login" />
29     <input type="password" name="password" />
30     <input type="submit" value="Login" />
31     <input type="checkbox" name="longlastingsession" />
32     <input type="hidden" name="token" value="ff13e7eaf9541ca2ba30fd44er64c3ff014d2bc9" />
33     <input type="hidden" name="returnurl" value="" />
34   </form>
35 </body>
36 </html>