Storing Password in System keychain (File-Based Keychain) for MFA Authorization Plugin

Hi everyone,

I’m currently developing an MFA authorization plugin for macOS and am looking to implement a passwordless feature. The goal is to store the user's password securely when they log into the system through the authorization plugin.

However, I’m facing an issue with using the system's login keychain (Data Protection Keychain), as it runs in the user context, which isn’t suitable for my case. Therefore, I need to store the password in a file-based keychain instead.

Does anyone have experience or code snippets for objective-c for securely storing passwords in a file-based keychain (outside of the login keychain) on macOS? Specifically, I'm looking for a solution that would work within the context of a system-level authorization plugin.

Any advice or sample code would be greatly appreciated!

Thanks in advance!

Storing Password in System keychain (File-Based Keychain) for MFA Authorization Plugin
 
 
Q