<div dir="ltr">
<div>Hello</div><div><br></div><div>This subject has been discussed a while ago (2016-01-22) between joller_lee and Scott Cantor.</div><div><br></div><div>My Target : Trying to integrate Recaptcha on the login after 5 attempts with the same user id.<br></div><div><br></div><div>Joller did not mention the number of attempts in his answer. But he described his tricky solution.</div><div><br></div><div>Did this feature has been implemented yet in Shibboleth ? Are there code sources available for it ?<br></div><div><br></div><div>joller said :</div><div>----<br></div><div>Finally, I found a way to accomplish it, but in a quite tricky manner:<br><br>1. Add an "on-entry" element to the "ValidateUsernamePassword" action-state<br>in conditions-flow.xml,<br> which is the parent state of all those with the same name.<br> In the "on-entry" element, the reCaptcha validation is done,<br> and if it fails, the `username' property of the UsernamePasswordContext<br>is set to null<br> to prevent the LDAP authentication from being successful.<br>2. After the LDAP authentication fails, the transitions in the parent state<br>will be checked.<br> So add one that checks the previous reCaptcha validation result and, on<br>failure, add some<br> error message for display.<br></div><div>-----</div>
<div><br></div><div>Thomas de Verdière<br></div><br>-- <br><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><img src="https://www.iobeya.com/sites/default/files/Signature_default.png"></div></div></div></div>