Locksmith icon indicating copy to clipboard operation
Locksmith copied to clipboard

Any support for accessGroup ?

Open theGlenn opened this issue 8 years ago • 6 comments

theGlenn avatar Dec 20 '16 16:12 theGlenn

Doubled. I'd like for this library to take advantage of Keychain Sharing.

zakkhoyt avatar Jan 19 '17 20:01 zakkhoyt

Same here, I needed to share my user credentials between my app and the iMessage extension. Just opened a PR for it

quentinR avatar May 17 '17 13:05 quentinR

There is support for accessGroup. SecureStorable defines an optional string: accessGroup. Providing a valid* accessGroup works out of the box.

*valid = "AppGroupID.SharedKeychainGroupName"

clayellis avatar Oct 30 '17 17:10 clayellis

@clayellis an example would be great!

aehlke avatar Dec 10 '17 14:12 aehlke

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...
    }
}

clayellis avatar Dec 18 '17 19:12 clayellis

@aehlke @theGlenn @zakkhoyt @quentinR ☝🏻

clayellis avatar Dec 18 '17 19:12 clayellis