-- -- (C) 2013-26 - ntop.org -- local dirs = ntop.getDirs() package.path = dirs.installdir .. "/scripts/lua/modules/?.lua;" .. package.path require "lua_utils" sendHTTPContentTypeHeader('text/html') local token = _GET["token"] or "" local reason = _GET["reason"] local http_prefix = ntop.getHttpPrefix() if isEmptyString(token) then print('') return end local token_info = ntop.getWebAuthnPendingToken(token) if not token_info then print('') return end local challenge = token_info.challenge local username = token_info.username -- Get user's registered credentials (for allowCredentials list) local creds_json = ntop.getWebAuthnCredentials(username) print([[ Passkey Verification

Passkey Verification

Use your passkey (fingerprint, face, or security key) to verify your identity.

]]) if reason == "invalid-key" then print([[ ]]) end print([[
← Back to login
]])