mirror of
https://github.com/keepassxreboot/keepassxc-browser.git
synced 2026-03-11 08:54:43 +00:00
Add related origins list to authentication
This commit is contained in:
parent
6c0700c562
commit
5e876f0e73
1 changed files with 6 additions and 4 deletions
|
|
@ -630,7 +630,7 @@ keepass.passkeysRegister = async function(tab, args = []) {
|
|||
|
||||
const messageData = {
|
||||
action: kpAction,
|
||||
publicKey: JSON.parse(JSON.stringify(publicKey)),
|
||||
publicKey: passkeyPublicKey,
|
||||
origin: origin,
|
||||
relatedOrigins: relatedOrigins,
|
||||
groupName: page?.settings?.defaultPasskeyGroup,
|
||||
|
|
@ -660,13 +660,15 @@ keepass.passkeysGet = async function(tab, args = []) {
|
|||
|
||||
const kpAction = kpActions.PASSKEYS_GET;
|
||||
const nonce = keepassClient.getNonce();
|
||||
const publicKey = args[0];
|
||||
const origin = args[1];
|
||||
const [ publicKey, origin ] = args;
|
||||
const passkeyPublicKey = JSON.parse(JSON.stringify(publicKey));
|
||||
const relatedOrigins = await keepass.getPasskeysRelatedOrigins(passkeyPublicKey?.rp?.id);
|
||||
|
||||
const messageData = {
|
||||
action: kpAction,
|
||||
publicKey: JSON.parse(JSON.stringify(publicKey)),
|
||||
publicKey: passkeyPublicKey,
|
||||
origin: origin,
|
||||
relatedOrigins: relatedOrigins,
|
||||
keys: keepass.getCryptoKeys()
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue