From a8ae17775a24ccbaf4570530d7433e0d290b3793 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julian=20M=C3=B8ller=20Ellehauge?= Date: Wed, 1 Jun 2022 23:11:58 +0200 Subject: feat: Add `--auth-type=webauthn` flag (#4931) * feat: Add --use-webauth flag * Add docs * Switch from a separate flag to a variation of auth-type * Update snapshot --- lib/utils/config/definitions.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'lib/utils') diff --git a/lib/utils/config/definitions.js b/lib/utils/config/definitions.js index 92fbbd1e6..4032c552e 100644 --- a/lib/utils/config/definitions.js +++ b/lib/utils/config/definitions.js @@ -238,13 +238,15 @@ define('audit-level', { define('auth-type', { default: 'legacy', - type: ['legacy', 'sso', 'saml', 'oauth'], + type: ['legacy', 'webauthn', 'sso', 'saml', 'oauth'], deprecated: ` - This method of SSO/SAML/OAuth is deprecated and will be removed in + The SSO/SAML/OAuth methods are deprecated and will be removed in a future version of npm in favor of web-based login. `, description: ` What authentication strategy to use with \`adduser\`/\`login\`. + + Pass \`webauthn\` to use a web-based login. `, flatten, }) -- cgit v1.2.3