00006_--_arch_design.txt 1.0 KB

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