首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >如何从Chrome中删除WebAuthn驻留密钥/可发现凭据?

如何从Chrome中删除WebAuthn驻留密钥/可发现凭据?
EN

Stack Overflow用户
提问于 2022-12-01 22:27:29
回答 1查看 23关注 0票数 1

我有一个使用passkey/ WebAuthn的测试webapp,这个应用程序请求requireResidentKey: true

代码语言:javascript
复制
      const publicKeyCredentialCreationOptions = {
        challenge: new Uint8Array(base64urldecode(step1.challenge)),
        rp: step1.relayingPartyInfo,
        user: {
          id: new TextEncoder().encode(step1.userInfo.id),
          name: step1.userInfo.name,
          displayName: step1.userInfo.displayName,
        },
        pubKeyCredParams: [
          { alg: -7, type: "public-key" },
          { alg: -257, type: "public-key" },
        ],
        authenticatorSelection: {
          requireResidentKey: true,
        },
        timeout: 60000,
        attestation: "direct",
      };
      const credential = await navigator.credentials.create({
        publicKey: publicKeyCredentialCreationOptions,
      });

在chrome客户端执行此javascript时,我将获得

并且它成功注册,navigator.credentials.create()authenticatorAttachment: "platform"返回一个PublicKeyCredential.response.clientDataJSON.response.attestationObject是正确的。

当我给navigator.credentials.get()打电话的时候

它显示了我在测试期间注册的所有“可发现公钥”的列表。

现在我想删除所有这些Client-side discoverable Credential / resident keys,有什么方法可以删除这些谷歌Chrome,或通讯线路或API?

EN

回答 1

Stack Overflow用户

发布于 2022-12-01 22:29:54

如果您在Windows 11 22H2 (秋季发布版)上,您可以使用Chrome 109 (铬://设置/密码)删除单个密码。

票数 2
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/74648859

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档