Skip to content

Commit 03f9e2f

Browse files
Allow data entry
1 parent 15598e7 commit 03f9e2f

3 files changed

Lines changed: 71 additions & 3 deletions

File tree

v2/failure.html renamed to idv/v2/failure.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,6 @@
66
</head>
77
<body>
88
<b>Failure</b>
9+
<p><a href="../../idv_testing.html">Up</a></p>
910
</body>
1011
</html>

v2/success.html renamed to idv/v2/success.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,6 @@
66
</head>
77
<body>
88
<b>Success</b>
9+
<p><a href="../../idv_testing.html">Up</a></p>
910
</body>
1011
</html>

idv_testing.html

Lines changed: 69 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,74 @@
11
<html>
22
<body>
33
<h1>Links for IDV testing</h1>
4-
<p><a href="v2/success.html">IDV Success</a></p>
5-
<p><a href="v2/failure.html">IDV Failure</a></p>
6-
<p><a href="index.html">Up</a></p>
4+
<p><a href="index.html">Up</a></p>
5+
6+
You can set the values returned from the PeopleApi <code>/people/process_idv_status_change</code> simulator.<br>
7+
Before these values will take effect you must enable the feature in the Debug settings screen of the app.
8+
9+
<form action="idv/v2/success.html" method="get">
10+
11+
<h5>Status</h5>
12+
<input type="radio" id="success" name="status" value="success" checked="checked">
13+
<label for="success">Success</label><br>
14+
15+
<input type="radio" id="name_mismatch" name="status" value="name_mismatch">
16+
<label for="name_mismatch">Name Mismatch</label><br>
17+
18+
<input type="radio" id="failed" name="status" value="failed">
19+
<label for="failed">Failed</label><br>
20+
21+
<h5>Attempts</h5>
22+
<label for="attempts_remaining">Attempts remaining:</label>
23+
<input type="number" id="attempts_remaining" name="attempts_remaining" value="3"><br>
24+
25+
<label for="can_attempt_again">Can attempt again?</label>
26+
<input type="checkbox" id="can_attempt_again" name="can_attempt_again" checked="checked"><br>
27+
28+
<h5>Acceptable Names</h5>
29+
These values are only applicable for status of Name Mismatch<br>
30+
<label for="first_name">First name:</label>
31+
<input type="text" id="first_name" name="first_name" value="Ted"><br>
32+
<label for="last_name">Last name:</label>
33+
<input type="text" id="last_name" name="last_name" value="Bear"><br><br>
34+
35+
<input type="submit" value="Submit">
36+
</form>
37+
<pre>
38+
set the change status result: success, name update required, failed
39+
set the user verification state: verified, name mismatch, not attempted, failed, reset required
40+
set acceptableNames
41+
set attemptsRemaining
42+
set canAttemptVerificationAgain
43+
44+
how?
45+
- this web page allows user to control what is returned from people api.
46+
- if a debug setting is enabled then the people api goes to the fake backend for the
47+
response to the change idv status and user verification json blobs. The IDV url is also
48+
changed to go to this site
49+
-
50+
51+
Process IDV Change Status result
52+
status {
53+
Success
54+
NameUpdateRequired
55+
Failed
56+
}
57+
acceptableNames
58+
attemptsRemaining
59+
canAttemptVerificationAgain
60+
61+
User Verification response from PeopleApi
62+
status {
63+
VERIFIED,
64+
NAME_MISMATCH,
65+
NOT_ATTEMPTED,
66+
IDV_FAILED,
67+
RESET,
68+
RESET_REQUIRED
69+
}
70+
attemptsRemaining
71+
canAttemptAgain
72+
</pre>
773
</body>
874
</html>

0 commit comments

Comments
 (0)