Estoy tratando de usar Duo Auth en mi aplicación, pero después de ingresar el código de acceso o la notificación automática, no sucede nada. Creo que Duo publicaría en la página de inicio de sesión o devolvería alguna respuesta, pero no sé cómo publicar u obtener la respuesta automáticamente en el JS.
Estoy usando el ejemplohttps://github.com/duosecurity/duo_php/tree/master/demos/simple , el código completo se puede encontrar en el enlace.
Hay algunas funciones en el JS, incluida esta, pero no puedo acceder a ella con el evento "respuesta".
function doPostBack(response) { // create a hidden input to contain the response token var input = document.createElement('input'); input.type = 'hidden'; input.name = postArgument; input.value = response + ':' + appSig; // user may supply their own form with additional inputs var form = document.getElementById('duo_form'); // if the form doesn't exist, create one if (!form) { form = document.createElement('form'); // insert the new form after the iframe iframe.parentElement.insertBefore(form, iframe.nextSibling); } // make sure we are actually posting to the right place form.method = 'POST'; form.action = postAction; // add the response token input to the form form.appendChild(input); // away we go! if (typeof submitCallback === "function") { submitCallback.call(null, form); } else { form.submit(); } }