-
Notifications
You must be signed in to change notification settings - Fork 308
/
token.enroll.totp.html
80 lines (75 loc) · 3.14 KB
/
token.enroll.totp.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
<p class="help-block"
ng-hide="$state.includes('token.wizard')"
translate>The TOTP token is a time based token. You can paste a secret key or
have the server generate the secret and scan the QR code with a
smartphone app like the privacyIDEA Authenticator turning your
smartphone into an authentication device. You can also use other
authenticator apps like Google Authenticator, Microsoft Authenticator, Authy or FreeOTP. But note, that these
might have limitations in the supported hash algorithms or other parameters.
</p>
<ng-include src="instanceUrl + '/static/components/token/views/token.display.apps.html'">
</ng-include>
<h4 ng-hide="$state.includes('token.wizard')" translate>Token data</h4>
<div class="form-group">
<div ng-hide="checkRight('totp_force_server_generate')">
<input type="checkbox" ng-model="form.genkey"
name="generate" id="generate">
<label for="generate" translate>Generate OTP Key on the Server</label>
</div>
<div ng-show="form.genkey">
<p class="help-block" translate>
The server will create the OTP key
and a QR Code
will be
displayed to you to be scanned.
</p>
</div>
</div>
<div class="form-group"
ng-show="checkRight('totp_2step=allow') || (!$state.includes('token.wizard') && checkRight('totp_2step=force'))">
<input type="checkbox" ng-model="form['2stepinit']"
ng-disabled="checkRight('totp_2step=force')"
name="twostep_enrollment" id="twostep_enrollment">
<label for="twostep_enrollment" translate>Use two-step enrollment with the privacyIDEA Authenticator App</label>
</div>
<div class="form-group" ng-hide="form.genkey">
<label for="otpkey" translate>OTP Key</label>
<input type="text" ng-pattern="/^[0-9a-fA-F]*$/" id="otpkey"
autofocus
class="form-control"
placeholder="{{ 'Enter OTP key...'|translate }}"
ng-model="form.otpkey" name="otpkey">
</div>
<div class="form-group"
ng-hide="checkRight('totp_otplen')">
<label for="otplen" translate>OTP length</label>
<select class="form-control"
id="otplen"
ng-model="form.otplen"
ng-options="otplen for otplen in formInit.otplens">
</select>
<p class="help-block" ng-show="form.genkey" translate>
Some Authenticator Apps only support an OTP length of 6.
</p>
</div>
<div class="form-group"
ng-hide="checkRight('totp_timestep')">
<label for="timestep" translate>Timestep</label>
<select class="form-control" id="timestep"
ng-model="form.timeStep"
name="timestep"
ng-options="timestep for timestep in formInit.timesteps"></select>
seconds.
</div>
<div class="form-group"
ng-hide="checkRight('totp_hashlib')">
<label for="hashlib" translate>Hash algorithm</label>
<select class="form-control"
id="hashlib"
ng-model="form.hashlib"
ng-options="hashlib for hashlib in formInit.hashlibs">
</select>
<p class="help-block" ng-show="form.genkey" translate>
Some Authenticator Apps only support the SHA1 algorithm.
</p>
</div>