Zend_OpenId-Introduction.xml 7.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!-- Reviewed: no -->
  3. <sect1 id="zend.openid.introduction">
  4. <title>Introduction</title>
  5. <para>
  6. <classname>Zend_OpenId</classname> is a Zend Framework component that provides a
  7. simple <acronym>API</acronym> for building OpenID-enabled sites and identity providers.
  8. </para>
  9. <sect2 id="zend.openid.introduction.what">
  10. <title>What is OpenID?</title>
  11. <para>
  12. OpenID is a set of protocols for user-centric digital identities.
  13. These protocols allows users to create an identity online, using an identity
  14. provider. This identity can be used on any site that supports OpenID.
  15. Using OpenID-enabled sites, users do not need to remember traditional
  16. authentication tokens such as usernames and passwords for each site. All OpenID-enabled
  17. sites accept a single OpenID identity. This identity is typically a
  18. <acronym>URL</acronym>. It may be the <acronym>URL</acronym> of the user's personal
  19. page, blog or other resource that may provide additional information about them. That
  20. mean a user needs just one identifier for all sites he or she uses. services. OpenID is
  21. an open, decentralized, and free user-centric solution. Users may choose which OpenID
  22. provider to use, or even create their own personal identity server. No central authority
  23. is required to approve or register OpenID-enabled sites or identity providers.
  24. </para>
  25. <para>
  26. For more information about OpenID visit the <ulink url="http://www.openid.net/">OpenID
  27. official site</ulink>.
  28. </para>
  29. </sect2>
  30. <sect2 id="zend.openid.introduction.how">
  31. <title>How Does it Work?</title>
  32. <para>
  33. The purpose of the <classname>Zend_OpenId</classname> component is to
  34. implement the OpenID authentication protocol as described in the following
  35. sequence diagram:
  36. </para>
  37. <para>
  38. <inlinegraphic align="center" fileref="figures/zend.openid.protocol.jpg" format="JPEG"
  39. scale="100" valign="middle" width="559" />
  40. </para>
  41. <orderedlist>
  42. <listitem>
  43. <para>
  44. Authentication is initiated by the end user, who passes their
  45. OpenID identifier to the OpenID consumer through a User-Agent.
  46. </para>
  47. </listitem>
  48. <listitem>
  49. <para>
  50. The OpenID consumer performs normalization and discovery on the user-supplied
  51. identifier. Through this process, the consumer obtains the claimed identifier,
  52. the <acronym>URL</acronym> of the OpenID provider and an OpenID protocol
  53. version.
  54. </para>
  55. </listitem>
  56. <listitem>
  57. <para>
  58. The OpenID consumer establishes an optional association with the
  59. provider using Diffie-Hellman keys. As a result, both parties have
  60. a common "shared secret" that is used for signing and verification
  61. of the subsequent messages.
  62. </para>
  63. </listitem>
  64. <listitem>
  65. <para>
  66. The OpenID consumer redirects the User-Agent to the <acronym>URL</acronym> of
  67. the OpenID provider with an OpenID authentication request.
  68. </para>
  69. </listitem>
  70. <listitem>
  71. <para>
  72. The OpenID provider checks if the User-Agent is already
  73. authenticated and, if not, offers to do so.
  74. </para>
  75. </listitem>
  76. <listitem>
  77. <para>
  78. The end user enters the required password.
  79. </para>
  80. </listitem>
  81. <listitem>
  82. <para>
  83. The OpenID provider checks if it is allowed to pass the user
  84. identity to the given consumer, and asks the user if necessary.
  85. </para>
  86. </listitem>
  87. <listitem>
  88. <para>
  89. The user allows or disallows passing his identity.
  90. </para>
  91. </listitem>
  92. <listitem>
  93. <para>
  94. The OpenID Provider redirects the User-Agent back to the OpenID
  95. consumer with an "authentication approved" or "failed" request.
  96. </para>
  97. </listitem>
  98. <listitem>
  99. <para>
  100. The OpenID consumer verifies the information received from the
  101. provider by using the shared secret it got in step 3 or by
  102. sending an additional direct request to the OpenID provider.
  103. </para>
  104. </listitem>
  105. </orderedlist>
  106. </sect2>
  107. <sect2 id="zend.openid.introduction.structure">
  108. <title>Zend_OpenId Structure</title>
  109. <para>
  110. <classname>Zend_OpenId</classname> consists of two sub-packages. The first one
  111. is <classname>Zend_OpenId_Consumer</classname> for developing OpenID-enabled sites,
  112. and the second is <classname>Zend_OpenId_Provider</classname> for developing OpenID
  113. servers. They are completely independent of each other and may be used
  114. separately.
  115. </para>
  116. <para>
  117. The only common code used by these sub-packages are the OpenID Simple
  118. Registration Extension implemented by
  119. <classname>Zend_OpenId_Extension_Sreg</classname> class and a set of utility
  120. functions implemented by the <classname>Zend_OpenId</classname> class.
  121. </para>
  122. <note>
  123. <para>
  124. <classname>Zend_OpenId</classname> takes advantage of the <ulink
  125. url="http://php.net/gmp">GMP extension</ulink>, where available. Consider
  126. enabling the GMP extension for enhanced performance when using
  127. <classname>Zend_OpenId</classname>.
  128. </para>
  129. </note>
  130. </sect2>
  131. <sect2 id="zend.openid.introduction.standards">
  132. <title>Supported OpenID Standards</title>
  133. <para>
  134. The <classname>Zend_OpenId</classname> component supports the following
  135. standards:
  136. </para>
  137. <itemizedlist>
  138. <listitem>
  139. <para>
  140. OpenID Authentication protocol version 1.1
  141. </para>
  142. </listitem>
  143. <listitem>
  144. <para>
  145. OpenID Authentication protocol version 2.0 draft 11
  146. </para>
  147. </listitem>
  148. <listitem>
  149. <para>
  150. OpenID Simple Registration Extension version 1.0
  151. </para>
  152. </listitem>
  153. <listitem>
  154. <para>
  155. OpenID Simple Registration Extension version 1.1 draft 1
  156. </para>
  157. </listitem>
  158. </itemizedlist>
  159. </sect2>
  160. </sect1>
  161. <!--
  162. vim:se ts=4 sw=4 et:
  163. -->