Skip to content

Commit

Permalink
Re-add webauthn
Browse files Browse the repository at this point in the history
  • Loading branch information
jumoel committed Jun 28, 2022
1 parent a65bd05 commit d00685b
Show file tree
Hide file tree
Showing 8 changed files with 19 additions and 18 deletions.
6 changes: 3 additions & 3 deletions docs/content/commands/npm-adduser.md
Expand Up @@ -93,9 +93,9 @@ npm init --scope=@foo --yes
#### `auth-type`

* Default: "legacy"
* Type: "legacy", "web", "sso", "saml", or "oauth"
* DEPRECATED: The SSO/SAML/OAuth methods are deprecated and will be removed in
a future version of npm in favor of web-based login.
* Type: "legacy", "web", "sso", "saml", "oauth", or "webauthn"
* DEPRECATED: The SSO/SAML/OAuth/Webauthn methods are deprecated and will be
removed in a future version of npm in favor of web-based login.

What authentication strategy to use with `adduser`/`login`.

Expand Down
6 changes: 3 additions & 3 deletions docs/content/using-npm/config.md
Expand Up @@ -1908,9 +1908,9 @@ When set to `dev` or `development`, this is an alias for `--include=dev`.
#### `auth-type`

* Default: "legacy"
* Type: "legacy", "web", "sso", "saml", or "oauth"
* DEPRECATED: The SSO/SAML/OAuth methods are deprecated and will be removed in
a future version of npm in favor of web-based login.
* Type: "legacy", "web", "sso", "saml", "oauth", or "webauthn"
* DEPRECATED: The SSO/SAML/OAuth/Webauthn methods are deprecated and will be
removed in a future version of npm in favor of web-based login.

What authentication strategy to use with `adduser`/`login`.

Expand Down
1 change: 1 addition & 0 deletions lib/commands/adduser.js
Expand Up @@ -4,6 +4,7 @@ const BaseCommand = require('../base-command.js')
const authTypes = {
legacy: require('../auth/legacy.js'),
web: require('../auth/legacy.js'),
webauthn: require('../auth/legacy.js'),
oauth: require('../auth/oauth.js'),
saml: require('../auth/saml.js'),
sso: require('../auth/sso.js'),
Expand Down
4 changes: 2 additions & 2 deletions lib/utils/config/definitions.js
Expand Up @@ -238,9 +238,9 @@ define('audit-level', {

define('auth-type', {
default: 'legacy',
type: ['legacy', 'web', 'sso', 'saml', 'oauth'],
type: ['legacy', 'web', 'sso', 'saml', 'oauth', 'webauthn'],
deprecated: `
The SSO/SAML/OAuth methods are deprecated and will be removed in
The SSO/SAML/OAuth/Webauthn methods are deprecated and will be removed in
a future version of npm in favor of web-based login.
`,
description: `
Expand Down
4 changes: 2 additions & 2 deletions tap-snapshots/test/lib/load-all-commands.js.test.cjs
Expand Up @@ -33,7 +33,7 @@ npm adduser
Options:
[--registry <registry>] [--scope <@scope>]
[--auth-type <legacy|web|sso|saml|oauth>]
[--auth-type <legacy|web|sso|saml|oauth|webauthn>]
aliases: login, add-user
Expand Down Expand Up @@ -499,7 +499,7 @@ npm adduser
Options:
[--registry <registry>] [--scope <@scope>]
[--auth-type <legacy|web|sso|saml|oauth>]
[--auth-type <legacy|web|sso|saml|oauth|webauthn>]
aliases: login, add-user
Expand Down
4 changes: 2 additions & 2 deletions tap-snapshots/test/lib/npm.js.test.cjs
Expand Up @@ -190,7 +190,7 @@ All commands:
Options:
[--registry <registry>] [--scope <@scope>]
[--auth-type <legacy|web|sso|saml|oauth>]
[--auth-type <legacy|web|sso|saml|oauth|webauthn>]
aliases: login, add-user
Expand Down Expand Up @@ -577,7 +577,7 @@ All commands:
Options:
[--registry <registry>] [--scope <@scope>]
[--auth-type <legacy|web|sso|saml|oauth>]
[--auth-type <legacy|web|sso|saml|oauth|webauthn>]
aliases: login, add-user
Expand Down
6 changes: 3 additions & 3 deletions tap-snapshots/test/lib/utils/config/definitions.js.test.cjs
Expand Up @@ -253,9 +253,9 @@ exports[`test/lib/utils/config/definitions.js TAP > config description for auth-
#### \`auth-type\`
* Default: "legacy"
* Type: "legacy", "web", "sso", "saml", or "oauth"
* DEPRECATED: The SSO/SAML/OAuth methods are deprecated and will be removed in
a future version of npm in favor of web-based login.
* Type: "legacy", "web", "sso", "saml", "oauth", or "webauthn"
* DEPRECATED: The SSO/SAML/OAuth/Webauthn methods are deprecated and will be
removed in a future version of npm in favor of web-based login.
What authentication strategy to use with \`adduser\`/\`login\`.
Expand Down
6 changes: 3 additions & 3 deletions tap-snapshots/test/lib/utils/config/describe-all.js.test.cjs
Expand Up @@ -1781,9 +1781,9 @@ When set to \`dev\` or \`development\`, this is an alias for \`--include=dev\`.
#### \`auth-type\`
* Default: "legacy"
* Type: "legacy", "web", "sso", "saml", or "oauth"
* DEPRECATED: The SSO/SAML/OAuth methods are deprecated and will be removed in
a future version of npm in favor of web-based login.
* Type: "legacy", "web", "sso", "saml", "oauth", or "webauthn"
* DEPRECATED: The SSO/SAML/OAuth/Webauthn methods are deprecated and will be
removed in a future version of npm in favor of web-based login.
What authentication strategy to use with \`adduser\`/\`login\`.
Expand Down

0 comments on commit d00685b

Please sign in to comment.