macOS Keychain Sharing Bypass Password Dialog











up vote
0
down vote

favorite












I'm trying to build an application that uses Keychain Sharing on macOS. But when trying to access the keychain data, it shows the following dialog.



macOS Keychain Dialog



This creates a very poor user experience where the user is forced to enter their computer password in order to use the application.



I have not experienced this problem on iOS.



How can I bypass this dialog? All of the applications are signed under the same development team, so I don't think it should be an issue.










share|improve this question






















  • @Willeke My keychain password matches my user login password. So that doesn't look like the problem.
    – Charlie Fish
    Nov 19 at 1:16










  • Is the password asked every time or only once for each build?
    – Willeke
    Nov 22 at 1:23















up vote
0
down vote

favorite












I'm trying to build an application that uses Keychain Sharing on macOS. But when trying to access the keychain data, it shows the following dialog.



macOS Keychain Dialog



This creates a very poor user experience where the user is forced to enter their computer password in order to use the application.



I have not experienced this problem on iOS.



How can I bypass this dialog? All of the applications are signed under the same development team, so I don't think it should be an issue.










share|improve this question






















  • @Willeke My keychain password matches my user login password. So that doesn't look like the problem.
    – Charlie Fish
    Nov 19 at 1:16










  • Is the password asked every time or only once for each build?
    – Willeke
    Nov 22 at 1:23













up vote
0
down vote

favorite









up vote
0
down vote

favorite











I'm trying to build an application that uses Keychain Sharing on macOS. But when trying to access the keychain data, it shows the following dialog.



macOS Keychain Dialog



This creates a very poor user experience where the user is forced to enter their computer password in order to use the application.



I have not experienced this problem on iOS.



How can I bypass this dialog? All of the applications are signed under the same development team, so I don't think it should be an issue.










share|improve this question













I'm trying to build an application that uses Keychain Sharing on macOS. But when trying to access the keychain data, it shows the following dialog.



macOS Keychain Dialog



This creates a very poor user experience where the user is forced to enter their computer password in order to use the application.



I have not experienced this problem on iOS.



How can I bypass this dialog? All of the applications are signed under the same development team, so I don't think it should be an issue.







swift macos keychain






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Nov 18 at 21:41









Charlie Fish

4,33342969




4,33342969












  • @Willeke My keychain password matches my user login password. So that doesn't look like the problem.
    – Charlie Fish
    Nov 19 at 1:16










  • Is the password asked every time or only once for each build?
    – Willeke
    Nov 22 at 1:23


















  • @Willeke My keychain password matches my user login password. So that doesn't look like the problem.
    – Charlie Fish
    Nov 19 at 1:16










  • Is the password asked every time or only once for each build?
    – Willeke
    Nov 22 at 1:23
















@Willeke My keychain password matches my user login password. So that doesn't look like the problem.
– Charlie Fish
Nov 19 at 1:16




@Willeke My keychain password matches my user login password. So that doesn't look like the problem.
– Charlie Fish
Nov 19 at 1:16












Is the password asked every time or only once for each build?
– Willeke
Nov 22 at 1:23




Is the password asked every time or only once for each build?
– Willeke
Nov 22 at 1:23












1 Answer
1






active

oldest

votes

















up vote
2
down vote













Apps from the same developer don't automatically share access to keychain items; you have to explicitly set up some sort of sharing policy. How you do that depends on whether the item is being stored in an iCloud keychain or an old-style keychain.



For items in iCloud keychains, you need to define an access group, add your apps to the group, and set the kSecAttrAccessGroup attribute for your keychain item(s) to that group. See the Apple dev document "Sharing Access to Keychain Items Among a Collection of Apps" for details.



For items in non-iCloud (old-style) keychains, you need to define an access control list for each item that lists each app that should be granted access, and what type of access. See the Apple dev document "Access Contr Lists" for details.



Note: I think the dialog box in the question indicates a non-iCloud keychain item. If you enter the password and click "Always Allow", it will add an access control entry granting that app access to the item. You can view the access control list in the Keychain Access utility.






share|improve this answer





















  • So I realized I should be using iCloud keychain but I'm not. According to this We could not get the Keychain synchronization work on macOS.. Not sure how that can be fixed. But looks like I'm running into a similar problem.
    – Charlie Fish
    Nov 19 at 18:48











Your Answer






StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");

StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53365740%2fmacos-keychain-sharing-bypass-password-dialog%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes








up vote
2
down vote













Apps from the same developer don't automatically share access to keychain items; you have to explicitly set up some sort of sharing policy. How you do that depends on whether the item is being stored in an iCloud keychain or an old-style keychain.



For items in iCloud keychains, you need to define an access group, add your apps to the group, and set the kSecAttrAccessGroup attribute for your keychain item(s) to that group. See the Apple dev document "Sharing Access to Keychain Items Among a Collection of Apps" for details.



For items in non-iCloud (old-style) keychains, you need to define an access control list for each item that lists each app that should be granted access, and what type of access. See the Apple dev document "Access Contr Lists" for details.



Note: I think the dialog box in the question indicates a non-iCloud keychain item. If you enter the password and click "Always Allow", it will add an access control entry granting that app access to the item. You can view the access control list in the Keychain Access utility.






share|improve this answer





















  • So I realized I should be using iCloud keychain but I'm not. According to this We could not get the Keychain synchronization work on macOS.. Not sure how that can be fixed. But looks like I'm running into a similar problem.
    – Charlie Fish
    Nov 19 at 18:48















up vote
2
down vote













Apps from the same developer don't automatically share access to keychain items; you have to explicitly set up some sort of sharing policy. How you do that depends on whether the item is being stored in an iCloud keychain or an old-style keychain.



For items in iCloud keychains, you need to define an access group, add your apps to the group, and set the kSecAttrAccessGroup attribute for your keychain item(s) to that group. See the Apple dev document "Sharing Access to Keychain Items Among a Collection of Apps" for details.



For items in non-iCloud (old-style) keychains, you need to define an access control list for each item that lists each app that should be granted access, and what type of access. See the Apple dev document "Access Contr Lists" for details.



Note: I think the dialog box in the question indicates a non-iCloud keychain item. If you enter the password and click "Always Allow", it will add an access control entry granting that app access to the item. You can view the access control list in the Keychain Access utility.






share|improve this answer





















  • So I realized I should be using iCloud keychain but I'm not. According to this We could not get the Keychain synchronization work on macOS.. Not sure how that can be fixed. But looks like I'm running into a similar problem.
    – Charlie Fish
    Nov 19 at 18:48













up vote
2
down vote










up vote
2
down vote









Apps from the same developer don't automatically share access to keychain items; you have to explicitly set up some sort of sharing policy. How you do that depends on whether the item is being stored in an iCloud keychain or an old-style keychain.



For items in iCloud keychains, you need to define an access group, add your apps to the group, and set the kSecAttrAccessGroup attribute for your keychain item(s) to that group. See the Apple dev document "Sharing Access to Keychain Items Among a Collection of Apps" for details.



For items in non-iCloud (old-style) keychains, you need to define an access control list for each item that lists each app that should be granted access, and what type of access. See the Apple dev document "Access Contr Lists" for details.



Note: I think the dialog box in the question indicates a non-iCloud keychain item. If you enter the password and click "Always Allow", it will add an access control entry granting that app access to the item. You can view the access control list in the Keychain Access utility.






share|improve this answer












Apps from the same developer don't automatically share access to keychain items; you have to explicitly set up some sort of sharing policy. How you do that depends on whether the item is being stored in an iCloud keychain or an old-style keychain.



For items in iCloud keychains, you need to define an access group, add your apps to the group, and set the kSecAttrAccessGroup attribute for your keychain item(s) to that group. See the Apple dev document "Sharing Access to Keychain Items Among a Collection of Apps" for details.



For items in non-iCloud (old-style) keychains, you need to define an access control list for each item that lists each app that should be granted access, and what type of access. See the Apple dev document "Access Contr Lists" for details.



Note: I think the dialog box in the question indicates a non-iCloud keychain item. If you enter the password and click "Always Allow", it will add an access control entry granting that app access to the item. You can view the access control list in the Keychain Access utility.







share|improve this answer












share|improve this answer



share|improve this answer










answered Nov 19 at 8:17









Gordon Davisson

66.4k97792




66.4k97792












  • So I realized I should be using iCloud keychain but I'm not. According to this We could not get the Keychain synchronization work on macOS.. Not sure how that can be fixed. But looks like I'm running into a similar problem.
    – Charlie Fish
    Nov 19 at 18:48


















  • So I realized I should be using iCloud keychain but I'm not. According to this We could not get the Keychain synchronization work on macOS.. Not sure how that can be fixed. But looks like I'm running into a similar problem.
    – Charlie Fish
    Nov 19 at 18:48
















So I realized I should be using iCloud keychain but I'm not. According to this We could not get the Keychain synchronization work on macOS.. Not sure how that can be fixed. But looks like I'm running into a similar problem.
– Charlie Fish
Nov 19 at 18:48




So I realized I should be using iCloud keychain but I'm not. According to this We could not get the Keychain synchronization work on macOS.. Not sure how that can be fixed. But looks like I'm running into a similar problem.
– Charlie Fish
Nov 19 at 18:48


















draft saved

draft discarded




















































Thanks for contributing an answer to Stack Overflow!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.





Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


Please pay close attention to the following guidance:


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53365740%2fmacos-keychain-sharing-bypass-password-dialog%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Costa Masnaga

Fotorealismo

Sidney Franklin