From f4a350002c52255a9c1a1eb9838c55952e8a9cbb Mon Sep 17 00:00:00 2001 From: Danny Date: Wed, 10 Mar 2021 15:49:22 -0500 Subject: [PATCH] Fix: webauthn platform (#132) * fix: add webauthn platform as a supported factor (#128) * 4.4.2 Co-authored-by: Jarrett Helton --- package-lock.json | 2 +- package.json | 2 +- src/constants.js | 3 ++- tests/auth0/handlers/guardianFactors.tests.js | 6 ++++-- 4 files changed, 8 insertions(+), 5 deletions(-) diff --git a/package-lock.json b/package-lock.json index c6bf668..0db7a91 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "auth0-source-control-extension-tools", - "version": "4.4.1", + "version": "4.4.2", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index 376c426..1abc560 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "auth0-source-control-extension-tools", - "version": "4.4.1", + "version": "4.4.2", "description": "Supporting tools for the Source Control extensions", "main": "lib/index.js", "scripts": { diff --git a/src/constants.js b/src/constants.js index 271d0ad..b4c236e 100644 --- a/src/constants.js +++ b/src/constants.js @@ -113,7 +113,8 @@ constants.GUARDIAN_FACTORS = [ 'otp', 'email', 'duo', - 'webauthn-roaming' + 'webauthn-roaming', + 'webauthn-platform' ]; constants.GUARDIAN_POLICIES = [ 'all-applications', diff --git a/tests/auth0/handlers/guardianFactors.tests.js b/tests/auth0/handlers/guardianFactors.tests.js index e6417d6..1bd01cf 100644 --- a/tests/auth0/handlers/guardianFactors.tests.js +++ b/tests/auth0/handlers/guardianFactors.tests.js @@ -62,7 +62,8 @@ describe('#guardianFactors handler', () => { { name: 'otp', enabled: true }, { name: 'email', enabled: true }, { name: 'duo', enabled: false }, - { name: 'webauthn-roaming', enabled: false } + { name: 'webauthn-roaming', enabled: false }, + { name: 'webauthn-platform', enabled: false } ]; const auth0 = { @@ -84,7 +85,8 @@ describe('#guardianFactors handler', () => { { name: 'otp', enabled: true }, { name: 'email', enabled: true }, { name: 'duo', enabled: false }, - { name: 'webauthn-roaming', enabled: false } + { name: 'webauthn-roaming', enabled: false }, + { name: 'webauthn-platform', enabled: false } ]; const auth0 = {