Skip to content

Commit

Permalink
feat: default auth-type to web
Browse files Browse the repository at this point in the history
BREAKING CHANGE: the default `auth-type` config value is now `web`
  • Loading branch information
wraithgar committed Sep 21, 2022
1 parent d3ff2aa commit c93210d
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion docs/content/using-npm/config.md
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ exit code.

#### `auth-type`

* Default: "legacy"
* Default: "web"
* Type: "legacy", "web", "sso", "saml", "oauth", or "webauthn"

NOTE: auth-type values "sso", "saml", "oauth", and "webauthn" will be
Expand Down
2 changes: 1 addition & 1 deletion lib/utils/config/definitions.js
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ define('audit-level', {
})

define('auth-type', {
default: 'legacy',
default: 'web',
type: ['legacy', 'web', 'sso', 'saml', 'oauth', 'webauthn'],
// deprecation in description rather than field, because not every value
// is deprecated
Expand Down
4 changes: 2 additions & 2 deletions tap-snapshots/test/lib/commands/config.js.test.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ exports[`test/lib/commands/config.js TAP config list --json > output matches sna
"also": null,
"audit": true,
"audit-level": null,
"auth-type": "legacy",
"auth-type": "web",
"before": null,
"bin-links": true,
"browser": null,
Expand Down Expand Up @@ -175,7 +175,7 @@ allow-same-version = false
also = null
audit = true
audit-level = null
auth-type = "legacy"
auth-type = "web"
before = null
bin-links = true
browser = null
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ exit code.
exports[`test/lib/utils/config/definitions.js TAP > config description for auth-type 1`] = `
#### \`auth-type\`
* Default: "legacy"
* Default: "web"
* Type: "legacy", "web", "sso", "saml", "oauth", or "webauthn"
NOTE: auth-type values "sso", "saml", "oauth", and "webauthn" will be
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ exit code.
#### \`auth-type\`
* Default: "legacy"
* Default: "web"
* Type: "legacy", "web", "sso", "saml", "oauth", or "webauthn"
NOTE: auth-type values "sso", "saml", "oauth", and "webauthn" will be
Expand Down

0 comments on commit c93210d

Please sign in to comment.