authenticator-rs icon indicating copy to clipboard operation
authenticator-rs copied to clipboard

support for using platform apis

Open dvc94ch opened this issue 3 years ago • 2 comments

looks like android, apple and windows have their own platform apis that should be used. not sure if there is some kind of dbus api on linux systems.

  • [0] https://developers.google.com/identity/fido/android/native-apps
  • [1] https://developer.apple.com/documentation/authenticationservices/public-private_key_authentication/supporting_passkeys
  • [2] https://docs.microsoft.com/en-us/windows/uwp/security/microsoft-passport

dvc94ch avatar May 26 '22 21:05 dvc94ch

FWIW, I don't think that Apple and Android's APIs can be plugged in to something like this library. Both of them require some kind of "context" to the active view presentation.

complexspaces avatar Jun 02 '22 19:06 complexspaces

That's what the ndk-context crate is for on android. not sure about ios.

dvc94ch avatar Jun 07 '22 23:06 dvc94ch

This library was created to do the low-level communication with a security token, not as a generic platform interface. I can see how that would be useful, but we think that should be a separate interface that implements the various platform hooks and then could call authenticator-rs (or equivalent) when those interfaces weren't available.

Where the platform interfaces are available you don't need this crate at all: the platform itself does the low-level talking to a security token.

dveditz avatar Oct 11 '22 23:10 dveditz