cvs: pear /Perm_LiveUser/docs readme.html
| From: | Bj�rn Kraus | Date: | Sun, 23 Mar 2003 22:49:23 +0000 |
| Subject: | cvs: pear /Perm_LiveUser/docs readme.html | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-9602@lists.php.net to get a copy of this message | ||
krausbn Sun Mar 23 17:49:23 2003 EDT
Modified files:
/pear/Perm_LiveUser/docs readme.html
Log:
* Added description for the LoMa.
Index: pear/Perm_LiveUser/docs/readme.html
diff -u pear/Perm_LiveUser/docs/readme.html:1.2 pear/Perm_LiveUser/docs/readme.html:1.3
--- pear/Perm_LiveUser/docs/readme.html:1.2 Sun Mar 23 14:47:45 2003
+++ pear/Perm_LiveUser/docs/readme.html Sun Mar 23 17:49:22 2003
@@ -40,7 +40,166 @@
of storing permissions and user data. Just make a new container type and you're
ready to go!<br />
Currently available are RDBMS containers using PEAR::DB.</p>
-<h1>Auth containers</h1>
+<p> </p>
+<h1>Table of contents</h1>
+<p><a href="#LoginManager">The LoginManager</a><br>
+ <a href="#Auth">The Auth Containers</a><br>
+ <a href="#Perm">The Perm Containers</a></p>
+<p> </p>
+<h1>The LoginManager<a name="LoginManager"></a></h1>
+<p>The LoginManager is the heart of LiveUser. It manages the hole login and init
+ process (validate login, include necessary files, etc.)</p>
+<h2>Options</h2>
+<table border="1" cellpadding="5" cellspacing="0">
+ <tr>
+ <th>Option</th>
+ <th>Value</th>
+ <th>Description</th>
+ </tr>
+ <tr valign="top">
+ <td>sessionName</td>
+ <td><i>string<br>
+ </i>Default: "LiveUser"</td>
+ <td>The session name to be used for all sessions.</td>
+ </tr>
+ <tr valign="top">
+ <td>sessionVarName</td>
+ <td><i>string<br>
+ </i>Default: "ludata"</td>
+ <td>The name of the session variable in which the auth object will be stored.</td>
+ </tr>
+ <tr valign="top">
+ <td>handleParamName</td>
+ <td>
+ <p><i>string</i><br>
+ Default: "handle"</p>
+ </td>
+ <td>The variable name for the user handle that comes from a HTML login form.</td>
+ </tr>
+ <tr valign="top">
+ <td>passwdParamName</td>
+ <td><i>string</i><br>
+ Default: "passwd"</td>
+ <td>The variable name for the password that comes from a HTML login form.</td>
+ </tr>
+ <tr valign="top">
+ <td>loginInputType</td>
+ <td>"POST" <i>or</i> "GET"</td>
+ <td>The input channel in which to look for login information. Can be POST
+ for form input or GET for URL input.</td>
+ </tr>
+ <tr valign="top">
+ <td>logoutParamName</td>
+ <td><i>string</i><br>
+ Default: "logout"</td>
+ <td>Name of the GET-Parameter that is being monitored for logging out. If
+ present, the auth object in the session will be destroyed.</td>
+ </tr>
+ <tr valign="top">
+ <td>cookieName</td>
+ <td><i>string</i><br>
+ Default: "loginData"</td>
+ <td> The name for the cookie to store auth information in (used for the "remember
+ me" function).</td>
+ </tr>
+ <tr valign="top">
+ <td>allowCookies</td>
+ <td><i>bolean</i><br>
+ Default: false</td>
+ <td>This flag determines if "remember me" cookies are allowed. If not, the
+ LoginManager won't even look for a cookie, so login information has to be
+ re-entered for every session. This is the recommended behaviour!!!<br>
+ Set to 0 for not allowing cookies, set to 1 for allowing them.</td>
+ </tr>
+ <tr valign="top">
+ <td>cookieParamName</td>
+ <td><i>string</i><br>
+ Default: "useCookie"</td>
+ <td>The name of the "remember me" checkbox on a HTML form. If this is provided
+ via the channel defined in loginInputType (GET or POST), and allowCookies
+ has been set to 1, a cookie with user information will be set so the user
+ won't have to login using his username and password again as long as the
+ cookie exists.</td>
+ </tr>
+ <tr valign="top">
+ <td>cookieLifetime</td>
+ <td><i>integer</i><br>
+ Default: 30</td>
+ <td>The lifetime of the "remember me" cookie in days. Note that the cookie
+ lifetime will be refreshed every time the user logs in.</td>
+ </tr>
+ <tr valign="top">
+ <td>cookieDomain</td>
+ <td><i>string</i><br>
+ Default: "localhost"</td>
+ <td>The domain for the "remember me" cookie. Example:
"21st.de".</td>
+ </tr>
+ <tr valign="top">
+ <td>cookiePath</td>
+ <td><i>string</i><br>
+ Default: "/"</td>
+ <td>The path for the "remember me" cookie.</td>
+ </tr>
+ <tr valign="top">
+ <td>logoutRedirectURL</td>
+ <td><i>string</i><br>
+ Default: ""</td>
+ <td>The URL to redirect to when the user logs out.</td>
+ </tr>
+ <tr valign="top">
+ <td>destroySessionOnLogout</td>
+ <td><i>bolean</i><br>
+ Default: true</td>
+ <td>Determines whether or not to destroy the entire session on logout.</td>
+ </tr>
+ <tr valign="top">
+ <td>authContainers</td>
+ <td><i>array</i></td>
+ <td>See chapter Auth containers and the examples how to configure this option.</td>
+ </tr>
+ <tr valign="top">
+ <td>authContainerTypeVar</td>
+ <td><i>string</i><br>
+ Default: "authContainerType"</td>
+ <td>Name of the session variable that is used to store information on the
+ backend in which the auth data resides. This is needed to include the correct
+ backend class definition on demand.</td>
+ </tr>
+ <tr valign="top">
+ <td>permContainer</td>
+ <td><i>array</i></td>
+ <td>See chapter Perm containers and the examples how to configure this option.</td>
+ </tr>
+</table>
+<h2>Properties</h2>
+<p>Most properties can be can be accessed via getProperty() method, because they
+ are stored in the auth and perm containers. Some other can be accessed by using
+ the get... functions. All other properties can only available accessed by direct
+ call:</p>
+<table border="1" cellspacing="0" cellpadding="5">
+ <tr>
+ <th nowrap>Property name</th>
+ <th>Description</th>
+ </tr>
+ <tr>
+ <td valign="top">expired</td>
+ <td>Flag: Has the auth session expired?</td>
+ </tr>
+ <tr>
+ <td valign="top">idled</td>
+ <td>Flag: Is the maximum idletime over?</td>
+ </tr>
+ <tr>
+ <td valign="top">status</td>
+ <td>
+ <p>Current authentication status. Instead of direct access you can call
+ the getStatus() method. This flag can have the following values:</p>
+ <pre>LIVEUSER_AUTH_OK = 1<br>LIVEUSER_AUTH_IDLED =
-1<br>LIVEUSER_AUTH_EXPIRED = -2<br>LIVEUSER_AUTH_WRONG_LOGIN =
-3<br>LIVEUSER_AUTH_ISINACTIVE = -4</pre>
+ </td>
+ </tr>
+</table>
+<p> </p>
+<h1><a name="#Auth">The Auth containers</a></h1>
<p>Currently there are only two containers available which both support the same
features: The DB container, using PEAR::DB, and the XML container, using XML::Tree
to extract the data from an xml file.</p>
@@ -186,7 +345,8 @@
<td>Timestamp of current login (last to be written).</td>
</tr>
</table>
-<h1>Perm containers</h1>
+<p> </p>
+<h1><a name="Perm">The Perm containers</a></h1>
<p>The perm containers differ between very simple once with only a few options
and complex containers with a large set of possibilities to maintain the different
rights. Until we have no docu for each container, you have to look at the examples