lemonldap-ng/doc/pages/documentation/1.4/securetoken.html
David COUTADEUR e9dd825518 - updating documentation accordingly with new handler call (My::Packages -> Lemonldap::NG::Handler) in branch 1.4
- regenerating documentation with make documentation
(references #630)
2014-05-22 10:51:39 +00:00

92 lines
3.8 KiB
HTML

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"
lang="en" dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title></title>
<!-- metadata -->
<meta name="generator" content="Offline" />
<meta name="version" content="Offline 0.1" />
<!-- style sheet links -->
<link rel="stylesheet" media="all" type="text/css" href="../../../css/all.css" />
<link rel="stylesheet" media="screen" type="text/css" href="../../../css/screen.css" />
<link rel="stylesheet" media="print" type="text/css" href="../../../css/print.css" />
</head>
<body>
<div class="dokuwiki export">
<h1><a name="secure_token_handler" id="secure_token_handler">Secure Token Handler</a></h1>
<div class="level1">
</div>
<!-- SECTION "Secure Token Handler" [1-36] -->
<h2><a name="presentation" id="presentation">Presentation</a></h2>
<div class="level2">
<p>
The Secure Token Handler is a special Handler that create a token for each request and send it to the protected application. The real user identifier is stored in a Memcached server and the protected application can the request the Memcached server to get user identifier.
</p>
<p>
This mechanism allow to do <acronym title="Single Sign On">SSO</acronym> on application with an unsafe link between Handler and the application, but with a safe link with the Memcached server.
</p>
</div>
<!-- SECTION "Presentation" [37-488] -->
<h2><a name="configuration" id="configuration">Configuration</a></h2>
<div class="level2">
</div>
<!-- SECTION "Configuration" [489-515] -->
<h3><a name="virtual_host_in_apache" id="virtual_host_in_apache">Virtual host in Apache</a></h3>
<div class="level3">
<p>
Configure the virtual host like other <a href="../../documentation/1.4/configvhost.html" class="wikilink1" title="documentation:1.4:configvhost">protected virtual host</a> but use Secure Token Handler instead of default Handler.
</p>
<pre class="code file apache">&lt;<span class="kw3">VirtualHost</span> *:80&gt;
<span class="kw1">ServerName</span> secure.example.com
&nbsp;
<span class="co1"># Load SecureToken Handler</span>
PerlRequire Lemonldap/NG/Handler/Specific/SecureToken.pm
PerlHeaderParserHandler Lemonldap::NG::Handler::Specific::SecureToken
&nbsp;
...
&nbsp;
&lt;/<span class="kw3">VirtualHost</span>&gt;</pre>
</div>
<!-- SECTION "Virtual host in Apache" [516-974] -->
<h3><a name="handler_parameters" id="handler_parameters">Handler parameters</a></h3>
<div class="level3">
<p>
Go in Manager, <code>Default parameters</code> » <code>Advanced parameters</code> » <code>Special handlers</code> » <code>Secure Token</code>, and edit the different keys:
</p>
<ul>
<li class="level1"><div class="li"> <strong>Memcached servers</strong>: addresses of Memcached servers, separated with spaces.</div>
</li>
<li class="level1"><div class="li"> <strong>Token expiration</strong>: time in seconds for token expiration (remove from Memcached server).</div>
</li>
<li class="level1"><div class="li"> <strong>Attribute to store</strong>: the session key that will be stored in Memcached.</div>
</li>
<li class="level1"><div class="li"> <strong>Protected URLs</strong>: Regexp of URLs for which the secure token will be sent, separated by spaces</div>
</li>
<li class="level1"><div class="li"> <strong>Header name</strong>: name of the <acronym title="Hyper Text Transfer Protocol">HTTP</acronym> header carrying the secure token.</div>
</li>
<li class="level1"><div class="li"> <strong>Allow requests in error</strong>: allow a request that has generated an error in token generation to be forwarded to the protected application without secure token (default: yes)</div>
</li>
</ul>
</div>
<!-- SECTION "Handler parameters" [975-] --></div><!-- closes <div class="dokuwiki export">-->