Any support for accessGroup ?
Opened this issue · 6 comments
theGlenn commented
Any support for accessGroup ?
zakkhoyt commented
Doubled. I'd like for this library to take advantage of Keychain Sharing.
quentinR commented
Same here, I needed to share my user credentials between my app and the iMessage extension. Just opened a PR for it
clayellis commented
There is support for accessGroup. SecureStorable
defines an optional string: accessGroup
. Providing a valid* accessGroup
works out of the box.
*valid = "AppGroupID.SharedKeychainGroupName"
aehlke commented
@clayellis an example would be great!
clayellis commented
struct Auth: GenericPasswordSecureStorable, CreateableSecureStorable, ReadableSecureStorable, DeleteableSecureStorable {
var account: String {
return "someUsername"
}
var service: String {
return "YourFantasticApp"
}
var accessGroup: String? {
let appGroupID = "123456XARG" // Provided by Apple. Found in the developer portal.
let sharedKeychainName = "keychain.com.org.shared" // Your custom keychain name.
return appGroupID + "." + sharedKeychainName
}
var data: [String : Any] {
// Custom representation of your data...
}
}