Thanks for being a part of WWDC25!

How did we do? We’d love to know your thoughts on this year’s conference. Take the survey here

How to Use System Keychain for Password Storage in an Authorization Plugin with Custom UI?

Hello developers,

I'm currently working on an authorization plugin for macOS. I have a custom UI implemented using SFAuthorizationPluginView, which prompts the user to input their password. The plugin is running in non-privileged mode, and I want to store the password securely in the system keychain.

However, I came across an article that states the system keychain can only be accessed in privileged mode. At the same time, I read that custom UIs, like mine, cannot be displayed in privileged mode.

This presents a dilemma:

  • In non-privileged mode: I can show my custom UI but can't access the system keychain.

  • In privileged mode: I can access the system keychain but can't display my custom UI.

Is there any workaround to achieve both? Can I securely store the password in the system keychain while still using my custom UI, or am I missing something here?

Any advice or suggestions are highly appreciated!

Thanks in advance! 😊

Answered by DTS Engineer in 816254022

See my response on your other thread.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

See my response on your other thread.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

How to Use System Keychain for Password Storage in an Authorization Plugin with Custom UI?
 
 
Q