@ideem/zsm-client-sdk 2.6.3 → 2.7.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +15 -1
- package/FIDO2ClientBase.js +2 -2
- package/RelyingPartyBase.js +4 -0
- package/UMFAClientBase.js +1 -1
- package/WASMRustInterface.js +1295 -1293
- package/WebAuthnClientBase.js +2 -0
- package/ZSMClientSDK.js +6 -1
- package/package.json +1 -1
package/WebAuthnClientBase.js
CHANGED
|
@@ -287,6 +287,7 @@ class WebAuthnClientBase {
|
|
|
287
287
|
GLOBAL.dispatchEvent(new CustomEvent("MPCResponse", {bubbles: true, cancelable: false, detail: mpcResponse }));
|
|
288
288
|
|
|
289
289
|
const credential = mpcResponse.result;
|
|
290
|
+
return credential;
|
|
290
291
|
let authFinishResponse = await this.relyingParty.authenticationFinish(credential);
|
|
291
292
|
|
|
292
293
|
if (authFinishResponse instanceof Error) throw new Error(authFinishResponse);
|
|
@@ -380,6 +381,7 @@ class WebAuthnClientBase {
|
|
|
380
381
|
GLOBAL.dispatchEvent(new CustomEvent("MPCResponse", {bubbles: true, cancelable: false, detail: mpcResponse }));
|
|
381
382
|
|
|
382
383
|
const getCredential = mpcResponse.result;
|
|
384
|
+
return getCredential;
|
|
383
385
|
return {
|
|
384
386
|
signature: getCredential.response.signature,
|
|
385
387
|
signedChallenge: getCredential.response.clientDataJSON,
|
package/ZSMClientSDK.js
CHANGED
|
@@ -4,6 +4,8 @@ import {FIDO2Client as FIDO2ClientCore} from './FIDO2Client.js';
|
|
|
4
4
|
import RelyingParty from './RelyingParty.js';
|
|
5
5
|
import WebAuthnClient from './WebAuthnClient.js';
|
|
6
6
|
import {zsmPluginManager} from './PluginManager.js';
|
|
7
|
+
import GLOBAL from './GlobalScoping.js';
|
|
8
|
+
|
|
7
9
|
|
|
8
10
|
class UMFAClient {
|
|
9
11
|
constructor(config) {
|
|
@@ -35,4 +37,7 @@ zsmPluginManager.registerPlugin('Core', {
|
|
|
35
37
|
mode: 'OVERRIDE'
|
|
36
38
|
});
|
|
37
39
|
|
|
38
|
-
|
|
40
|
+
const ZSMClientSDKVersion = '2.7.1';
|
|
41
|
+
const ZSMVersions = GLOBAL.ZSMVersions = (GLOBAL.ZSMVersions) ? {...GLOBAL.ZSMVersions, CORE: ZSMClientSDKVersion} : { CORE: ZSMClientSDKVersion }
|
|
42
|
+
|
|
43
|
+
export { UMFAClient, FIDO2Client, ZSMVersions };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name" : "@ideem/zsm-client-sdk",
|
|
3
|
-
"version" : "2.
|
|
3
|
+
"version" : "2.7.1",
|
|
4
4
|
"description" : "ZSM makes 2FA easy and invisible for everyone, all the time, using advanced cryptography like MPC to establish cryptographic proof of the origin of any transaction or login attempt, while eliminating opportunities for social engineering. ZSM has no reliance on specific hardware. Our cryptographic module has completed FIPS 140-3 NIST approved lab testing, is FIDO2-ready, and is on the Modules In Progress (MIP) list. Superior Usability. no opt-in, no codes, no downloads, no authenticator apps. Better Security.",
|
|
5
5
|
"author" : "Jason Jurusz <jj@useideem.com>",
|
|
6
6
|
"keywords" : [ "ideem", "zsm", "zsm-client-sdk", "umfaclient", "fido2client", "library", "umfa", "fido", "fido2", "client", "javascript", "multifactor", "multi-factor", "webauthn", "authentication", "security", "cryptography", "mpc", "fips", "nist", "mip", "passkeys" ],
|