I have an app that connect to specific wifi but the macos always save password while i do not want user to remember the password. Anyway to stop or work around on it?
i am using associate(…) of CWInterface to join the network.
Thanks.
That method ends up storing the password in both the System keychain and the data protection keychain.
Note If you’re unfamiliar with these keychain types, see TN3137 On Mac keychain APIs and implementations.
You might be able to delete the password from the System keychain, but data protection keychain access is determined by entitlements and there’s no way to gain access to the Apple keychain access group in which this item is stored, so there’s no way to delete it from there.
On iOS we have a join once mechanism, which allows you to join a network without remembering that network or its password. AFAIK macOS has no equivalent facility )-:
If you’d like to see this added in the future, I encourage you to file an enhancement request describing your requirements. And please post your bug number, just for the record.
Share and Enjoy
—
Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"