mirror of
https://github.com/Ylianst/MeshCentral.git
synced 2025-01-24 13:13:13 -05:00
Version 1.0.27
This commit is contained in:
parent
fd0e349854
commit
dc7f055c33
Binary file not shown.
@ -3628,6 +3628,7 @@ module.exports.CreateMeshUser = function (parent, db, ws, req, args, domain, use
|
|||||||
|
|
||||||
// Send the registration request
|
// Send the registration request
|
||||||
var registrationOptions = parent.webauthn.generateRegistrationChallenge("Anonymous Service", { id: Buffer.from(user._id, 'binary').toString('base64'), name: user._id, displayName: user._id.split('/')[2] });
|
var registrationOptions = parent.webauthn.generateRegistrationChallenge("Anonymous Service", { id: Buffer.from(user._id, 'binary').toString('base64'), name: user._id, displayName: user._id.split('/')[2] });
|
||||||
|
//console.log('registrationOptions', registrationOptions);
|
||||||
obj.webAuthnReqistrationRequest = { action: 'webauthn-startregister', keyname: command.name, request: registrationOptions };
|
obj.webAuthnReqistrationRequest = { action: 'webauthn-startregister', keyname: command.name, request: registrationOptions };
|
||||||
ws.send(JSON.stringify(obj.webAuthnReqistrationRequest));
|
ws.send(JSON.stringify(obj.webAuthnReqistrationRequest));
|
||||||
break;
|
break;
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "meshcentral",
|
"name": "meshcentral",
|
||||||
"version": "1.0.26",
|
"version": "1.0.27",
|
||||||
"keywords": [
|
"keywords": [
|
||||||
"Remote Device Management",
|
"Remote Device Management",
|
||||||
"Remote Device Monitoring",
|
"Remote Device Monitoring",
|
||||||
|
File diff suppressed because it is too large
Load Diff
@ -2883,11 +2883,11 @@
|
|||||||
message.request.user.id = Uint8Array.from(atob(message.request.user.id), function (c) { return c.charCodeAt(0) })
|
message.request.user.id = Uint8Array.from(atob(message.request.user.id), function (c) { return c.charCodeAt(0) })
|
||||||
navigator.credentials.create({ publicKey: publicKey }).then(function(newCredentialInfo) {
|
navigator.credentials.create({ publicKey: publicKey }).then(function(newCredentialInfo) {
|
||||||
// Public key credential
|
// Public key credential
|
||||||
var r = { rawId: btoa(String.fromCharCode.apply(null, new Uint8Array(newCredentialInfo.rawId))), response: { attestationObject: btoa(String.fromCharCode.apply(null, new Uint8Array(newCredentialInfo.response.attestationObject))), clientDataJSON: btoa(String.fromCharCode.apply(null, new Uint8Array(newCredentialInfo.response.clientDataJSON))) }, type: newCredentialInfo.type };
|
meshserver.send({ action: 'webauthn-endregister', response: { rawId: btoa(String.fromCharCode.apply(null, new Uint8Array(newCredentialInfo.rawId))), response: { attestationObject: btoa(String.fromCharCode.apply(null, new Uint8Array(newCredentialInfo.response.attestationObject))), clientDataJSON: btoa(String.fromCharCode.apply(null, new Uint8Array(newCredentialInfo.response.clientDataJSON))) }, type: newCredentialInfo.type } });
|
||||||
meshserver.send({ action: 'webauthn-endregister', response: r });
|
|
||||||
setDialogMode(0);
|
setDialogMode(0);
|
||||||
}, function(error) {
|
}, function(error) {
|
||||||
// Error
|
// Error
|
||||||
|
console.log("ERROR: " + error);
|
||||||
setDialogMode(2, "Add Security Key", 1, null, "ERROR: " + error);
|
setDialogMode(2, "Add Security Key", 1, null, "ERROR: " + error);
|
||||||
});
|
});
|
||||||
break;
|
break;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user