Resident credential:WebAuthnの旧設定名を読み解く
resident credential/keyはdiscoverable credentialの旧称です。residentKeyの値はRPの要件を表します。
公開 更新
Resident credential:WebAuthnの旧設定名を読み解く
現在のWebAuthnではresident credentialとresident keyはdiscoverable credentialの旧称で、非推奨です。API名residentKeyとrequireResidentKeyは後方互換性のため残っており、別の技術ではありません。residentKeyはRPの要件を示します。discouragedはサーバー側保存を優先しますがdiscoverableも受け入れます。preferredはdiscoverableを強く優先しますがサーバー側保存も受け入れます。requiredはdiscoverableを必須とし、作成できないとクライアントがエラーを返します。preferredは結果を保証しません。旧ブール値requireResidentKeyは、residentKeyがrequiredの場合に限りtrueにすることがSHOULDです。discoverable性は同期、platform/roaming接続、ユーザー確認とは別の特性です。古いコードでは語の印象だけで判断せず、値、ライブラリ版、登録結果を確認します。
Sources
[W3C Web Authentication: An API for accessing Public Key Credentials, Level 3, §§4 and 5.4.4–5.4.6](https://www.w3.org/TR/webauthn-3/)