注册流程
LOG
Successfully registered device:
No vendor metadata present!
No device metadata present!
Device transports: USB
Registration Request javascript demo
var request = {"appId":"https://localhost:8443","registeredKeys":[],"registerRequests":[{"version":"U2F_V2","challenge":"nHglnR_DvvW08BojQ22-Rai02rtTbNVePPwThhGprhc","appId":"https://localhost:8443"}]};
setTimeout(function() {
u2f.register(
request.appId,
request.registerRequests,
request.registeredKeys,
function(data) {
var form = document.getElementById('form');
var reg = document.getElementById('tokenResponse');
if(data.errorCode) {
switch (data.errorCode) {
case 4:
alert("This device