Duo Security Two factor authentication web SDK php
$10-30 USD
Completed
Posted over 9 years ago
$10-30 USD
Paid on delivery
If you are not know Duo Security two factor authentication please do not bid.
I have a login script and need to add Duo factor authentication. This I have so far on the page after login and it is not working
Need some help. If you have done this before it should take a few minutes.
<?php
require_once('[login to view URL]');
$DuoAuthCookieName = 'duo_auth_cookie';
$DuoSecAuthCookieName = 'duo_secure_auth_cookie';
$DuoDebug = false;
$DuoPing = '/auth/v2/ping';
function duo_sign_request($user, $redirect) {
$ikey = ('xxxxxxx');
$skey = ('xxxxxxxx');
$host = ('xxxxxxx');
$akey = ('xxxxxxx');
$username = $user->user_login;
$duo_time = duo_get_time();
$request_sig = Duo::signRequest($ikey, $skey, $akey, $username, $duo_time);
duo_debug_log("Displaying iFrame. Username: $username cookie domain: " . COOKIE_DOMAIN . " redirect_to_url: $redirect ikey: $ikey host: $host duo_time: $duo_time");
duo_debug_log("Duo request signature: $request_sig");
}
?>
<script src="[login to view URL]"></script>
<script>
[login to view URL]({
'host': '[login to view URL]',
'post_action': '[login to view URL]',
'sig_request':<?php echo "'" . $request_sig . "'"; ?>
});
</script>
<iframe id="duo_iframe" width="620" height="330" frameborder="0"></iframe>
I have an account of website and try the example as a demo on it
so your code is not complete, glad to help you
only chat with me to send you demo and full code