Expand description
§Apple native credential store
This is a keyring credential store provider that stores credentials in the native macOS and iOS secure stores.
On iOS there is just one secure store: the “protected data” store. Its items are stored in “access groups” associated with specific applications.
On macOS there are two secure stores: the “legacy keychain” store and the “protected data” store.
- The “legacy keychain” store is available to all applications, and its credentials are stored in keychain entries in encrypted files.
- The “protected data” store is available to sandboxed applications in macOS 10.15 (Catalina, 2019) or later. Some of its features are only available to applications with provisioning profiles.
Because the two native stores are different, this crate provides two different modules, one for each store. Choose the one that best suits your needs or use both. See the module documentation for the details of each store.
§Features
Each module has a feature that enables it. At least one relevant feature must be enabled, and both can be enabled.
keychain: Provides access to the “legacy keychain” store. Ignored on iOS.protected: Provides access to the “protected data” store. Requires macOS 10.15 or later.
This crate has no default features.