133 lines
6.4 KiB
HTML
133 lines
6.4 KiB
HTML
![]() |
<!DOCTYPE html>
|
||
|
<html lang="en" dir="ltr">
|
||
|
<head>
|
||
|
<meta charset="utf-8" />
|
||
|
<title>documentation:2.0:totp2f</title>
|
||
|
<meta name="generator" content="DokuWiki"/>
|
||
|
<meta name="robots" content="noindex,nofollow"/>
|
||
|
<meta name="keywords" content="documentation,2.0,totp2f"/>
|
||
|
<link rel="search" type="application/opensearchdescription+xml" href="lib/exe/opensearch.html" title="LemonLDAP::NG"/>
|
||
|
<link rel="start" href="totp2f.html"/>
|
||
|
<link rel="contents" href="totp2f.html" title="Sitemap"/>
|
||
|
<link rel="stylesheet" type="text/css" href="lib/exe/css.php.t.bootstrap3.css"/>
|
||
|
<!-- //if:usedebianlibs
|
||
|
<link rel="stylesheet" type="text/css" href="/javascript/bootstrap/css/bootstrap.min.css" />
|
||
|
//elsif:useexternallibs
|
||
|
<link rel="stylesheet" type="text/css" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css"></script>
|
||
|
//elsif:cssminified
|
||
|
<link rel="stylesheet" type="text/css" href="/static/bwr/bootstrap/dist/css/bootstrap.min.css" />
|
||
|
//else -->
|
||
|
<link rel="stylesheet" type="text/css" href="/static/bwr/bootstrap/dist/css/bootstrap.css" />
|
||
|
<!-- //endif -->
|
||
|
<script type="text/javascript">/*<![CDATA[*/var NS='documentation:2.0';var JSINFO = {"id":"documentation:2.0:totp2f","namespace":"documentation:2.0"};
|
||
|
/*!]]>*/</script>
|
||
|
<script type="text/javascript" charset="utf-8" src="lib/exe/js.php.t.bootstrap3.js"></script>
|
||
|
<!-- //if:usedebianlibs
|
||
|
<script type="text/javascript" src="/javascript/jquery/jquery.min.js"></script>
|
||
|
//elsif:useexternallibs
|
||
|
<script type="text/javascript" src="http://code.jquery.com/jquery-2.2.0.min.js"></script>
|
||
|
//elsif:jsminified
|
||
|
<script type="text/javascript" src="/static/bwr/jquery/dist/jquery.min.js"></script>
|
||
|
//else -->
|
||
|
<script type="text/javascript" src="/static/bwr/jquery/dist/jquery.js"></script>
|
||
|
<!-- //endif -->
|
||
|
<!-- //if:usedebianlibs
|
||
|
<script type="text/javascript" src="/javascript/jquery-ui/jquery-ui.min.js"></script>
|
||
|
//elsif:useexternallibs
|
||
|
<script type="text/javascript" src="http://code.jquery.com/ui/1.10.4/jquery-ui.min.js"></script>
|
||
|
//elsif:jsminified
|
||
|
<script type="text/javascript" src="/lib/scripts/jquery-ui.min.js"></script>
|
||
|
//else -->
|
||
|
<script type="text/javascript" src="/lib/scripts/jquery-ui.js"></script>
|
||
|
<!-- //endif -->
|
||
|
</head>
|
||
|
<body>
|
||
|
<div class="dokuwiki export container">
|
||
|
<!-- TOC START -->
|
||
|
<div id="dw__toc">
|
||
|
<h3 class="toggle">Table of Contents</h3>
|
||
|
<div>
|
||
|
|
||
|
<ul class="toc">
|
||
|
<li class="level1"><div class="li"><a href="#configuration">Configuration</a></div></li>
|
||
|
<li class="level1"><div class="li"><a href="#assistance">Assistance</a></div></li>
|
||
|
<li class="level1"><div class="li"><a href="#developer_corner">Developer corner</a></div></li>
|
||
|
</ul>
|
||
|
</div>
|
||
|
</div>
|
||
|
<!-- TOC END -->
|
||
|
|
||
|
<h1 class="sectionedit1" id="totp_2nd_factor_authentication_u2f">TOTP 2nd Factor Authentication (U2F)</h1>
|
||
|
<div class="level1">
|
||
|
|
||
|
<p>
|
||
|
<a href="https://en.wikipedia.org/wiki/Time-based_One-time_Password_Algorithm" class="urlextern" title="https://en.wikipedia.org/wiki/Time-based_One-time_Password_Algorithm" rel="nofollow">Time based One Time Password</a> (TOTP) is an algorithm that computes a one-time password from a shared secret key and the current time. This is currently what <a href="https://en.wikipedia.org/wiki/Google_Authenticator" class="urlextern" title="https://en.wikipedia.org/wiki/Google_Authenticator" rel="nofollow">Google Authenticator</a> or <a href="https://freeotp.github.io/" class="urlextern" title="https://freeotp.github.io/" rel="nofollow">FreeOTP</a> use.
|
||
|
</p>
|
||
|
|
||
|
<p>
|
||
|
LLNG can propose to users to register this kind of software to increase authentication level.
|
||
|
</p>
|
||
|
<div class="notetip">Note that it's a second factor, not an authentication module. Users are authenticated by both login form and TOTP.
|
||
|
</div>
|
||
|
</div>
|
||
|
<!-- EDIT1 SECTION "TOTP 2nd Factor Authentication (U2F)" [1-633] -->
|
||
|
<h2 class="sectionedit2" id="configuration">Configuration</h2>
|
||
|
<div class="level2">
|
||
|
|
||
|
<p>
|
||
|
In the manager (advanced parameters), you just have to enable it:
|
||
|
</p>
|
||
|
<ul>
|
||
|
<li class="level1"><div class="li"> TOTP ⇒ Activation: set it to “on”</div>
|
||
|
</li>
|
||
|
<li class="level1"><div class="li"> TOTP ⇒ Self registration: set it to “on” <em>(to display this application on the menu, create an application that points to <a href="https://auth.your.domain/totpregister.html" class="urlextern" title="https://auth.your.domain/totpregister.html" rel="nofollow">https://auth.your.domain/totpregister.html</a>)</em></div>
|
||
|
</li>
|
||
|
<li class="level1"><div class="li"> TOTP ⇒ Authentication level: you can overwrite here auth level for TOTP registered users. Leave it blank keeps auth level provided by first authentication module <em>(default: 2 for user/password based modules)</em></div>
|
||
|
</li>
|
||
|
<li class="level1"><div class="li"> TOTP ⇒ Issuer: default to portal hostname</div>
|
||
|
</li>
|
||
|
<li class="level1"><div class="li"> TOTP ⇒ Interval: interval for TOTP algorithm (default: 30)</div>
|
||
|
</li>
|
||
|
<li class="level1"><div class="li"> TOTP ⇒ Range: number of additional intervals to test (default: 1)</div>
|
||
|
</li>
|
||
|
<li class="level1"><div class="li"> TOTP ⇒ Digits: number of digit of codes (default: 6)</div>
|
||
|
</li>
|
||
|
</ul>
|
||
|
<div class="noteimportant">If you want to use a custom rule for “activation” and want to keep self-registration, you must include this in your rule that <code>$_totp2fSecret</code> is set, else TOTP will be required even if users are not registered. This is automatically done when “activation” is simply set to “on”.
|
||
|
</div>
|
||
|
</div>
|
||
|
<!-- EDIT2 SECTION "Configuration" [634-1701] -->
|
||
|
<h2 class="sectionedit3" id="assistance">Assistance</h2>
|
||
|
<div class="level2">
|
||
|
|
||
|
<p>
|
||
|
If a user lost its key, you may remove it's persistent session using the session explorer.
|
||
|
</p>
|
||
|
|
||
|
</div>
|
||
|
<!-- EDIT3 SECTION "Assistance" [1702-1817] -->
|
||
|
<h2 class="sectionedit4" id="developer_corner">Developer corner</h2>
|
||
|
<div class="level2">
|
||
|
|
||
|
<p>
|
||
|
If you have another TOTP registration interface, you have to populate session (using exported variables) to set these keys:
|
||
|
</p>
|
||
|
<div class="table sectionedit5"><table class="inline table table-bordered table-striped">
|
||
|
<thead>
|
||
|
<tr class="row0 roweven">
|
||
|
<th class="col0"> Name </th><th class="col1"> Value </th>
|
||
|
</tr>
|
||
|
</thead>
|
||
|
<tr class="row1 rowodd">
|
||
|
<td class="col0"> _totp2fSecret </td><td class="col1"> key handle value, base32 encoded </td>
|
||
|
</tr>
|
||
|
<tr class="row2 roweven">
|
||
|
<td class="col0"> _u2fUserKey </td><td class="col1"> user key value, base64 encoded </td>
|
||
|
</tr>
|
||
|
</table></div>
|
||
|
<!-- EDIT5 TABLE [1973-2091] -->
|
||
|
</div>
|
||
|
<!-- EDIT4 SECTION "Developer corner" [1818-] --></div>
|
||
|
</body>
|
||
|
</html>
|