-
Notifications
You must be signed in to change notification settings - Fork 6.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Nearby Presence] Add public credentials to SaveCredentials.
Added SharedCredential to the SaveCredentials interface, allowing public credentials to be saved to the appropriate database. Also added logic to save to the correct database depending on the PublicCredentialType parameter. SaveCredentials does not attempt to save private credentials when PublicCredentialType is set to kRemotePublicCredential. The library provides an empty array of LocalCredentials when updating remote shared credentials; to prevent overriding the existing local credentials, a remote public save skips private credential save. CredentialStorage is hosted inside of a sandboxed utility process, and calls upon NearbyPresenceCredentialStorage in the browser process to persist credentials generated by the Nearby Presence library to storage. A full design is given at go/cros-nearby-presence-credential-storage. Test: Unit tests Bug: b:287334195 Change-Id: I87858d6f05f5e19af0e0f0fe4a92406b17271d22 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4797847 Reviewed-by: Juliet Lévesque <julietlevesque@google.com> Commit-Queue: Mark Polner <polner@google.com> Reviewed-by: Nasko Oskov <nasko@chromium.org> Reviewed-by: Ryan Hansberry <hansberry@chromium.org> Cr-Commit-Position: refs/heads/main@{#1209142}
- Loading branch information
1 parent
ee8fb35
commit 41036db
Showing
7 changed files
with
593 additions
and
90 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.