mirror of
https://github.com/keepassxreboot/keepassxc-browser.git
synced 2026-03-11 08:54:43 +00:00
Merge pull request #2141 from keepassxreboot/fix/passkeys_add_exceptions
Add exceptions to Passkeys handling
This commit is contained in:
commit
22af4ac343
1 changed files with 11 additions and 1 deletions
|
|
@ -94,6 +94,11 @@ kpxcPasskeysUtils.buildCredentialCreationOptions = function(pkOptions, sameOrigi
|
|||
publicKey.user.id = arrayBufferToBase64(pkOptions.user.id);
|
||||
publicKey.user.name = pkOptions.user.name;
|
||||
|
||||
// TODO: Disable after fixed in KeePassXC side
|
||||
if (!publicKey.rp.id) {
|
||||
publicKey.rp.id = window.location.hostname;
|
||||
}
|
||||
|
||||
return publicKey;
|
||||
} catch (e) {
|
||||
console.log(e);
|
||||
|
|
@ -125,7 +130,7 @@ kpxcPasskeysUtils.buildCredentialRequestOptions = function(pkOptions, sameOrigin
|
|||
|
||||
const arr = {
|
||||
id: arrayBufferToBase64(cred.id),
|
||||
transports: transports,
|
||||
transports: [ ...transports, 'internal' ],
|
||||
type: cred.type
|
||||
};
|
||||
|
||||
|
|
@ -133,6 +138,11 @@ kpxcPasskeysUtils.buildCredentialRequestOptions = function(pkOptions, sameOrigin
|
|||
}
|
||||
}
|
||||
|
||||
// TODO: Disable after fixed in KeePassXC side
|
||||
if (!publicKey.rpId) {
|
||||
publicKey.rpId = window.location.hostname;
|
||||
}
|
||||
|
||||
return publicKey;
|
||||
} catch (e) {
|
||||
console.log(e);
|
||||
|
|
|
|||
Loading…
Reference in a new issue