Skip to content
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

Webview android #25

Closed
hregis opened this issue Aug 20, 2019 · 2 comments
Closed

Webview android #25

hregis opened this issue Aug 20, 2019 · 2 comments

Comments

@hregis
Copy link

hregis commented Aug 20, 2019

it's possible to use "navigator.credentials" with Android Webview ?

navigator.credentials.get() and others are present in webview, but nothing happens!
you have to allow something on the "server" side or in the application that uses the "Webview"?

Thank you

@davidearl
Copy link
Owner

I don't know I'm afraid. I believe it was introduced in Chrome 67 and that Android Webview is based on Chromium, so if it is >= 67 then I assume it would be supported.

However, navigator.credentials isn't specific to webauthn. It is used for other things as well, so its presence in the browser doesn't mean webauthn is supported.

Any use of webauthn must be supported by the server. The challenge (both on registration and authentication) must come from the server, otherwise anyone could fabricate one. You'll need to store the registration server-side as well, as that's needed to authenticate.

See the example for how it works. That simulates a login, but you would do something similar when used for 2FA.

@dschuermann
Copy link

Androids WebView will not support WebAuthn (source). If you are still searching for a solution: https://hwsecurity.dev/guide/fido-webview/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants