CMS  Version 3.9
index.inc
Go to the documentation of this file.
1 <h2>How to use the Auto-Login Component</h2>
2 <p>The auto-login component provides an authentication mechanism that allows
3 access to a Fakoli site under a user's credential with a known token. This token
4 can be single- or multi-use, can optionally be limited to only allow authentication
5 from a specified IP address (or list of IP addresses). The token can also be associated
6 with a specific URI within the Fakoli site, to which processing is transferred after
7 the token has been verified.</p>
8 <p>Uses for the auto-login component include:</p>
9  <ul>
10  <li>Cross-domain sign-on between Fakoli sites</li>
11  <li>Access to user-restricted functionality from a command-line script,
12  such as a cron job or Windows scheduled task.</li>
13  <li>Simple token-based access to a site within a LAN</li>
14  </ul>
15 <p>For example, to use an authentication token to run an action from the command-line,
16 you would first create the token on the Authentication Token form, specifying the user account,
17 the IP address range, leaving "Single-Use" unchecked (so the token can be used more than once),
18 checking "Enabled" and setting the "Redirect on Success" field to have the name of the
19 action handler you wish to call after authentication. The form is prepopulated with a
20 securely generated unique token to identify these access permissions. The generated tokens are
21 32-character hexadecimal strings, based on a secure hash and timestamp. You can optionally
22 override this token with a shorter or more human-readable token, but this is not recommended.</p>
23 
24 <p>Once you have the token, you can then make a call from the command line using (for example)
25 the <b>wget</b> utility on Linux:
26 <pre>
27 wget -O http://mysite/action/auto_login/authenticate?token=8fcf1a93f799...
28 </pre>
29 <p>The action handler you populated in the Redirect On Success field will then be called under
30 the user credentials of the user associated with the token.</p>
This class provides the Fakoli CMS core.
Definition: core.inc:80
$forumRequest to