diff options
author | Julian Møller Ellehauge <jumoel@github.com> | 2022-07-12 22:55:00 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-07-12 22:55:00 +0300 |
commit | e8102c1aae65a18e41253fbcdffe2eff0bedae53 (patch) | |
tree | 6aa044c12a43848efc40615e41ee35274bc0dd8f /lib | |
parent | d3791e6eafab51aab16bb2f3e2d2c566b77df5cf (diff) |
feat: Add `web` auth type (#5076)
Diffstat (limited to 'lib')
-rw-r--r-- | lib/commands/adduser.js | 1 | ||||
-rw-r--r-- | lib/utils/config/definitions.js | 9 |
2 files changed, 5 insertions, 5 deletions
diff --git a/lib/commands/adduser.js b/lib/commands/adduser.js index 29eb5acf8..5e23f40dc 100644 --- a/lib/commands/adduser.js +++ b/lib/commands/adduser.js @@ -3,6 +3,7 @@ const replaceInfo = require('../utils/replace-info.js') 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'), diff --git a/lib/utils/config/definitions.js b/lib/utils/config/definitions.js index e654c6b99..665ed1efe 100644 --- a/lib/utils/config/definitions.js +++ b/lib/utils/config/definitions.js @@ -239,15 +239,14 @@ define('audit-level', { define('auth-type', { default: 'legacy', - type: ['legacy', 'webauthn', 'sso', 'saml', 'oauth'], + type: ['legacy', 'web', 'sso', 'saml', 'oauth', 'webauthn'], // deprecation in description rather than field, because not every value // is deprecated description: ` - NOTE: auth-type values "sso", "saml", and "oauth" will be removed in a future version. - - What authentication strategy to use with \`login\`. + NOTE: auth-type values "sso", "saml", "oauth", and "webauthn" will be + removed in a future version. - Pass \`webauthn\` to use a web-based login. + What authentication strategy to use with \`login\`. `, flatten (key, obj, flatOptions) { flatOptions.authType = obj[key] |