ソースを参照

Do not double encode the userid in webauthn login

* Else login fails with webauthn devices that send the userid
  - Like windows hello

Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Signed-off-by: npmbuildbot[bot] <npmbuildbot[bot]@users.noreply.github.com>
tags/v20.0.0beta1
Roeland Jago Douma 3年前
コミット
4c08b1754d
3個のファイルの変更7行の追加3行の削除
  1. 1
    1
      core/js/dist/login.js
  2. 1
    1
      core/js/dist/login.js.map
  3. 5
    1
      core/src/components/login/PasswordLessLoginForm.vue

+ 1
- 1
core/js/dist/login.js
ファイル差分が大きすぎるため省略します
ファイルの表示


+ 1
- 1
core/js/dist/login.js.map
ファイル差分が大きすぎるため省略します
ファイルの表示


+ 5
- 1
core/src/components/login/PasswordLessLoginForm.vue ファイルの表示

@@ -155,6 +155,10 @@ export default {
return window.btoa(String.fromCharCode(...a))
}

const arrayToString = function(a) {
return String.fromCharCode(...a)
}

return navigator.credentials.get({ publicKey })
.then(data => {
console.debug(data)
@@ -168,7 +172,7 @@ export default {
authenticatorData: arrayToBase64String(new Uint8Array(data.response.authenticatorData)),
clientDataJSON: arrayToBase64String(new Uint8Array(data.response.clientDataJSON)),
signature: arrayToBase64String(new Uint8Array(data.response.signature)),
userHandle: data.response.userHandle ? arrayToBase64String(new Uint8Array(data.response.userHandle)) : null,
userHandle: data.response.userHandle ? arrayToString(new Uint8Array(data.response.userHandle)) : null,
},
}
})

読み込み中…
キャンセル
保存