mozilla/authenticator-rs

support for using platform apis

dvc94ch opened this issue · 3 comments

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.

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

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.