multiuser-intro.xml 3.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!-- EN-Revision: 19777 -->
  3. <!-- Reviewed: no -->
  4. <sect1 id="learning.multiuser.intro">
  5. <title>Building Multi-User Applications With Zend Framework</title>
  6. <sect2 id="learning.multiuser.intro.zf">
  7. <title>Zend Framework</title>
  8. <para>
  9. When the original "web" was created, it was designed to be a publishing platform
  10. for predominantly static content. As demand for content on the web grew, as did
  11. the number of consumers on the internet for web content, the demand for using the
  12. web as an application platform also grew. Since the web is inherently good at
  13. delivering a simultaneous experience to many consumers from a single location,
  14. it makes it an ideal environment for building dynamically driven, multi-user,
  15. and more commonly today, social systems.
  16. </para>
  17. <para>
  18. <acronym>HTTP</acronym> is the protocol of the web: a stateless, typically short
  19. lived, request and response protocol. This protocol was designed this way because
  20. the original intent of the web was to serve or publish static content. It is this
  21. very design that has made the web as immensely successful as it is. It is also
  22. exactly this design that brings new concerns to developers who wish to use the
  23. web as an application platform.
  24. </para>
  25. <para>
  26. These concerns and responsibilities can effectively be summed up by three questions:
  27. </para>
  28. <itemizedlist>
  29. <listitem>
  30. <para>
  31. How do you distinguish one application consumer from another?
  32. </para>
  33. </listitem>
  34. <listitem>
  35. <para>
  36. How do you identify a consumer as authentic?
  37. </para>
  38. </listitem>
  39. <listitem>
  40. <para>
  41. How do you control what a consumer has access to?
  42. </para>
  43. </listitem>
  44. </itemizedlist>
  45. <note>
  46. <title>Consumer Vs. User</title>
  47. <para>
  48. Notice we use the term "consumer" instead of person. Increasingly, web applications
  49. are becoming service driven. This means that not only are real people ("users") with
  50. real web browsers consuming and using your application, but also other web
  51. applications through machine service technologies such as <acronym>REST</acronym>,
  52. <acronym>SOAP</acronym>, and <acronym>XML-RPC</acronym>. In this respect,
  53. people, as well as other consuming applications, should all be treated in same with
  54. regard to the concerns outlined above.
  55. </para>
  56. </note>
  57. <para>
  58. In the following chapters, we'll take a look at these common problems relating to
  59. authentication and authorization in detail. We will discover how 3 main components:
  60. <classname>Zend_Session</classname>, <classname>Zend_Auth</classname>, and
  61. <classname>Zend_Acl</classname>; provide an out-of-the-box solution as well as the
  62. extension points each have that will cater to a more customized solution.
  63. </para>
  64. </sect2>
  65. </sect1>