|
|
@@ -16,7 +16,7 @@
|
|
|
the web application.
|
|
|
</para>
|
|
|
<para>
|
|
|
- The OpenID identity is just a URI that points to a web site
|
|
|
+ The OpenID identity is just a <acronym>URI</acronym> that points to a web site
|
|
|
with information about a user, along with special tags that
|
|
|
describes which server to use and which identity to submit there.
|
|
|
You can read more about OpenID at the
|
|
|
@@ -32,7 +32,7 @@
|
|
|
<para>
|
|
|
<classname>Zend_OpenId</classname> takes advantage of the <ulink
|
|
|
url="http://php.net/gmp">GMP extension</ulink>, where available. Consider
|
|
|
- enabling the GMP extension for better performance when using
|
|
|
+ enabling the <acronym>GMP</acronym> extension for better performance when using
|
|
|
<classname>Zend_Auth_Adapter_OpenId</classname>.
|
|
|
</para>
|
|
|
</note>
|
|
|
@@ -53,12 +53,12 @@
|
|
|
<para>
|
|
|
However, as opposed to other <classname>Zend_Auth</classname> adapters,
|
|
|
<classname>Zend_Auth_Adapter_OpenId</classname> performs authentication on an external
|
|
|
- server in two separate HTTP requests. So the
|
|
|
- <classname>Zend_Auth_Adapter_OpenId::authenticate()</classname> method must be called
|
|
|
+ server in two separate <acronym>HTTP</acronym> requests. So the
|
|
|
+ <methodname>Zend_Auth_Adapter_OpenId::authenticate()</methodname> method must be called
|
|
|
twice. On the first invocation the method won't return, but will redirect the user to
|
|
|
their OpenID server. Then after the user is authenticated on the remote server, they
|
|
|
will be redirected back and the script for this second request must call
|
|
|
- <classname>Zend_Auth_Adapter_OpenId::authenticate()</classname> again to verify the
|
|
|
+ <methodname>Zend_Auth_Adapter_OpenId::authenticate()</methodname> again to verify the
|
|
|
signature which comes with the redirected request from the server to complete the
|
|
|
authentication process. On this second invocation, the method will return the
|
|
|
<classname>Zend_Auth_Result</classname> object as expected.
|
|
|
@@ -67,12 +67,12 @@
|
|
|
<para>
|
|
|
The following example shows the usage of
|
|
|
<classname>Zend_Auth_Adapter_OpenId</classname>. As previously mentioned, the
|
|
|
- <classname>Zend_Auth_Adapter_OpenId::authenticate()</classname> must be called two
|
|
|
- times. The first time is after the user submits the HTML form with the
|
|
|
- <varname>$_POST['openid_action']</varname> set to <emphasis>"login"</emphasis>,
|
|
|
- and the second time is after the HTTP redirection from OpenID server with
|
|
|
- <varname>$_GET['openid_mode']</varname> or <varname>$_POST['openid_mode']</varname>
|
|
|
- set.
|
|
|
+ <methodname>Zend_Auth_Adapter_OpenId::authenticate()</methodname> must be called two
|
|
|
+ times. The first time is after the user submits the <acronym>HTML</acronym> form with
|
|
|
+ the <varname>$_POST['openid_action']</varname> set to <emphasis>"login"</emphasis>,
|
|
|
+ and the second time is after the <acronym>HTTP</acronym> redirection from OpenID server
|
|
|
+ with <varname>$_GET['openid_mode']</varname> or
|
|
|
+ <varname>$_POST['openid_mode']</varname> set.
|
|
|
</para>
|
|
|
|
|
|
<programlisting language="php"><![CDATA[
|