Điểm qua kishikawakatsumi/UICKeyChainStore: 3.1k sao trên GitHub, viết chủ yếu bằng Objective-C, thuộc nhóm Security. UICKeyChainStore is a simple wrapper for Keychain on iOS, watchOS, tvOS and macOS. Makes using Keychain APIs as easy as NSUserDefaults.
Tóm tắt dựng từ metadata GitHub của chính dự án — chưa có bài review TopGit. Trang sẽ tự động cập nhật khi bài review đầy đủ được xuất bản.
VÌ SAO CHƯA CÓ REVIEW
TopGit viết bài đầy đủ cho repo có nhiều sao nhất và được yêu cầu nhiều nhất. Trang này là snapshot trong thời gian chờ — xem README gốc ở tab READ ME.
Any Operation that require authentication must be run in the background thread. If you run in the main thread, UI thread will lock for the system to try to display the authentication dialog.
Adding a Touch ID protected item
If you want to store the Touch ID protected Keychain item, specify accessibility and authenticationPolicy attributes.
Do not run in the main thread if there is a possibility that the item you are trying to add already exists, and protected.Because updating protected items requires authentication.
Additionally, you want to show custom authentication prompt message when updating, specify an authenticationPrompt attribute.
If the item not protected, the authenticationPrompt parameter just be ignored.
The same way as when you get a normal item. It will be displayed automatically Touch ID or passcode authentication If the item you try to get is protected.
If you want to show custom authentication prompt message, specify an authenticationPrompt attribute.
If the item not protected, the authenticationPrompt parameter just be ignored.
Shared web credentials is a programming interface that enables native iOS apps to share credentials with their website counterparts. For example, a user may log in to a website in Safari, entering a user name and password, and save those credentials using the iCloud Keychain. Later, the user may run a native app from the same developer, and instead of the app requiring the user to reenter a user name and password, shared web credentials gives it access to the credentials that were entered earlier in Safari. The user can also create new accounts, update passwords, or delete her account from within the app. These changes are then saved and used by Safari.
https://developer.apple.com/library/ios/documentation/Security/Reference/SharedWebCredentialsRef/
UICKeyChainStore *keychain = [UICKeyChainStore keyChainStoreWithServer:[NSURL URLWithString:@"https://kishikawakatsumi.com"]
protocolType:UICKeyChainStoreProtocolTypeHTTPS];
NSString *username = @"[email protected]";
NSString *password = keychain[username];
if (password) {
// If found password in the Keychain,
// then log into the server
} else {
// If not found password in the Keychain,
// try to read from Shared Web Credentials
[keychain sharedPasswordForAccount:username completion:^(NSString *password, NSError *error) {
if (password) {
// If found password in the Shared Web Credentials,
// then log into the server
// and save the password to the Keychain
keychain[username] = password
} else {
// If not found password either in the Keychain also Shared Web Credentials,
// prompt for username and password
// Log into server
// If the login is successful,
// save the credentials to both the Keychain and the Shared Web Credentials.
keychain[username] = password
[keychain setSharedPassword:password forAccount:username completion:nil];
}
}];
}
Add a com.apple.developer.associated-domains entitlement to your app. This entitlement must include all the domains with which you want to share credentials.
Add an apple-app-site-association file to your website. This file must include application identifiers for all the apps with which the site wants to share credentials, and it must be properly signed.
When the app is installed, the system downloads and verifies the site association file for each of its associated domains. If the verification is successful, the app is associated with the domain.
More details:
https://developer.apple.com/library/ios/documentation/Security/Reference/SharedWebCredentialsRef/
UICKeyChainStore is available through CocoaPods. To install
it, simply add the following line to your Podfile:
pod 'UICKeyChainStore'
For watchOS 2
use_frameworks!
target 'EampleApp' do
pod 'UICKeyChainStore'
end
target 'EampleApp WatchKit Extension' do
platform :watchos, '2.0'
pod 'UICKeyChainStore'
end
Carthage
UICKeyChainStore is available through Carthage. To install
it, simply add the following line to your Cartfile:
github "kishikawakatsumi/UICKeyChainStore"
To manually add to your project
Add Security.framework to your target.
Copy files in Lib (UICKeyChainStore.h and UICKeyChainStore.m) to your project.
kishikawakatsumi/UICKeyChainStore thuộc nhóm Security trên TopGit, cùng 3 topic GitHub. Trang Trending và Topics liệt kê các repo cùng số sao và cùng ngôn ngữ để so sánh.
Đọc thêm về kishikawakatsumi/UICKeyChainStore ở đâu?
Trang TopGit này là một snapshot — tab "Readme" hiển thị nguyên văn README của repo (đã bỏ link, giữ ảnh). Repo GitHub ở github.com/kishikawakatsumi/UICKeyChainStore là nguồn chính thức.
kishikawakatsumi/UICKeyChainStore có bao nhiêu sao?
kishikawakatsumi/UICKeyChainStore có 3.1k sao GitHub — tải lại trang để xem số mới nhất, hoặc xem trực tiếp github.com/kishikawakatsumi/UICKeyChainStore. TopGit phản chiếu số sao của GitHub nhưng không cam kết đến từng phút.
kishikawakatsumi/UICKeyChainStore có phải mã nguồn mở không?
Có — kishikawakatsumi/UICKeyChainStore phát hành theo license MIT, nghĩa là mã nguồn mở để đọc, fork và (tùy license) tái sử dụng. Mã: github.com/kishikawakatsumi/UICKeyChainStore.
kishikawakatsumi/UICKeyChainStore còn đang phát triển không?
Commit gần nhất trên kishikawakatsumi/UICKeyChainStore là 3.1 năm trước (theo timestamp GitHub). Repo có 377 fork — một chỉ báo về mức độ quan tâm của cộng đồng.
kishikawakatsumi/UICKeyChainStore dùng license gì?
kishikawakatsumi/UICKeyChainStore phát hành theo license MIT. Nên mở file LICENSE trên GitHub để xác nhận — license metadata đôi khi lệch với thực tế dự án.
kishikawakatsumi/UICKeyChainStore là gì?
kishikawakatsumi/UICKeyChainStore (kishikawakatsumi/UICKeyChainStore) là dự án Objective-C trên GitHub. Theo mô tả gốc: UICKeyChainStore is a simple wrapper for Keychain on iOS, watchOS, tvOS and macOS. Makes using Keychain APIs as easy as NSUserDefaults.
kishikawakatsumi/UICKeyChainStore viết bằng ngôn ngữ gì?
kishikawakatsumi/UICKeyChainStore chủ yếu viết bằng Objective-C. Trường "language" của GitHub dựa trên phần lớn byte ở nhánh mặc định.
Đọc đầy đủ README ở tab phía trên.
Vẫn đang phân vân về UICKeyChainStore?
Một cú bấm sẽ gửi câu hỏi kèm trang này cho AI — xem AI nói gì về UICKeyChainStore.