-
-
Notifications
You must be signed in to change notification settings - Fork 55
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
IosCredentials is missing trait methods in v3 #187
Comments
Wow! How did I miss that?! Thanks for the report. I'll get this fixed right away. Are you actually using this library on iOS? |
Yes, I am, getting a PR ready now if you want it. |
We can just duplicate the MacOS impl as it's all security framework under the hood anyhow. |
Sure, I'd love that! And yes it should be the same as the MacOS code. |
Except we also need to add (or expose) a |
Hmm, I feel like there should be only one |
Nope, that won't work as the keychain is only exposed on macos. Looking at the |
Taking a look now, I was the one who added the calls to the security_framework for iOS so everything we need should be there. Probably you just need to do the same mod that I did on MacOS, which is to make get_password and set_password call get_secret and set_secret, doing the conversions in the wrapper. Then the current code for get_password and set_password become the code for get_secret MINUS the conversions. |
Yep, just avoid the string conversion is fine, doing it now 👍 |
Thanks for the PR. See review comments, it's almost ready to go. |
@tmpfs Have you successfully built an iOS app based on the new |
Hey, yeh I use See kornelski/rust-security-framework#203 Would be helpful if you can release anyhow as it's an upstream issue but I understand if you want to wait. |
Thanks much for pointing me at that bug and the workaround! I can see what the issue is in my keyring iOS testing that's provoking the issue: I'm testing for an empty password but you can't do that on iOS (right now, due to a bug in security-framework). I'll see if I can resolve the testing issue in the keyring-rs package and, if so, put in an advisory about needing to use security-framework 2.10 for now. I'll probably also force that dependency in the Cargo.toml for keyring-rs for iOS. |
The text was updated successfully, but these errors were encountered: