Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ensure keychain items are accessible after the device was locked #99

Merged
merged 1 commit into from
Nov 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ struct AddKeyQuery: KeychainQuery {
if let accessGroup {
query[kSecAttrAccessGroup as String] = accessGroup
}
query[kSecAttrAccessible as String] = kSecAttrAccessibleAfterFirstUnlock
return query as CFDictionary
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ struct AddPasswordQuery: KeychainQuery {
if let accessGroup {
query[kSecAttrAccessGroup as String] = accessGroup
}
query[kSecAttrAccessible as String] = kSecAttrAccessibleAfterFirstUnlock
return query as CFDictionary
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ struct UpdatePasswordQuery: KeychainQuery {
var rawQuery: CFDictionary {
var query: [String: Any] = [:]
query[kSecValueData as String] = password
query[kSecAttrAccessible as String] = kSecAttrAccessibleAfterFirstUnlock
return query as CFDictionary
}
}
2 changes: 1 addition & 1 deletion xcconfigs/General.xcconfig
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
GENERATE_INFOPLIST_FILE = YES
CURRENT_PROJECT_VERSION = 1
MARKETING_VERSION = 0.10.1
MARKETING_VERSION = 0.10.2
DEVELOPMENT_TEAM = 566MC7D8D4
CODE_SIGN_STYLE = Automatic
CODE_SIGN_ENTITLEMENTS = Tartelet/Supporting files/Tartelet.entitlements
Expand Down