multiuser-intro.xml 3.3 KB

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