|
1 | 1 | <html> |
2 | 2 | <body> |
3 | 3 | <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> |
7 | 73 | </body> |
8 | 74 | </html> |
0 commit comments