First steps for webauthn

This commit is contained in:
Garrett Mills 2023-01-24 18:00:32 -06:00
parent 0b8c4b87df
commit 3d6908b7ec
4 changed files with 20 additions and 1 deletions

View File

@ -104,6 +104,11 @@ const template = `
@click="change_password"
>{{ t['password.change'] }}</button>
</li>
<li class="list-group-item">
<h4>{{ t['authn.authn'] }}</h4>
<p>{{ t['authn.desc'].replace(/APP_NAME/g, app_name) }}</p>
<button class="btn btn-success btn-sm" type="button">{{ t['authn.enable'] }}</button>
</li>
<li class="list-group-item" v-if="ready && !has_mfa && (!user_id || user_id === 'me')">
<h4>{{ t['mfa.mfa'] }}</h4>
<p>{{ t['profile.mfa_1'].replace(/APP_NAME/g, app_name) }}</p>
@ -291,7 +296,10 @@ export default class EditProfileComponent extends Component {
'profile.advanced_header',
'profile.advanced_shell',
'profile.accessed',
'common.never'
'common.never',
'authn.authn',
'authn.desc',
'authn.enable',
)
this.app_name = session.get('app.name')

View File

@ -0,0 +1,5 @@
module.exports = exports = {
authn: 'Biometric/Hardware Authentication',
enable: 'Setup Hardware Login',
desc: 'On supported devices, you can log into your APP_NAME account using a hardware token or biometric sensor such as your phone\'s fingerprint reader.',
}

View File

@ -21,6 +21,7 @@
"license": "MIT",
"dependencies": {
"@coreid/radius-server": "^2.2.2",
"@passwordless-id/webauthn": "^1.2.0",
"bullmq": "^1.8.8",
"email-validator": "^2.0.4",
"flitter-auth": "^0.19.6",

View File

@ -318,6 +318,11 @@
resolved "https://registry.yarnpkg.com/@panva/asn1.js/-/asn1.js-1.0.0.tgz#dd55ae7b8129e02049f009408b97c61ccf9032f6"
integrity sha512-UdkG3mLEqXgnlKsWanWcgb6dOjUzJ+XC5f+aWw30qrtjxeNUSfKX1cd5FBzOaXQumoe9nIqeZUvrRJS03HCCtw==
"@passwordless-id/webauthn@^1.2.0":
version "1.2.0"
resolved "https://registry.yarnpkg.com/@passwordless-id/webauthn/-/webauthn-1.2.0.tgz#5f0f921eb370b21058b6074929fcc540f5b452af"
integrity sha512-2MQjaiGqRzUKlLBrq1JK5u2NZMJqDjbzAfKnCIUEF8HaVHF9uL88DQGzrEE0A+4oUV8uyK9xgVHyhnqGSVIhfQ==
"@sindresorhus/is@^0.14.0":
version "0.14.0"
resolved "https://registry.yarnpkg.com/@sindresorhus/is/-/is-0.14.0.tgz#9fb3a3cf3132328151f353de4632e01e52102bea"