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

Any support for accessGroup ? #165

Open
theGlenn opened this issue Dec 20, 2016 · 6 comments
Open

Any support for accessGroup ? #165

theGlenn opened this issue Dec 20, 2016 · 6 comments

Comments

@theGlenn
Copy link

No description provided.

@zakkhoyt
Copy link

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

quentinR pushed a commit to quentinR/Locksmith that referenced this issue May 17, 2017
@quentinR
Copy link

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

quentinR pushed a commit to quentinR/Locksmith that referenced this issue May 17, 2017
@clayellis
Copy link

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

*valid = "AppGroupID.SharedKeychainGroupName"

@aehlke
Copy link

aehlke commented Dec 10, 2017

@clayellis an example would be great!

@clayellis
Copy link

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
Copy link

@aehlke @theGlenn @zakkhoyt @quentinR ☝🏻

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants