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

WebAuthn / passkeys support in Android WebView #1743

Closed
mahnunchik opened this issue Oct 31, 2024 · 1 comment
Closed

WebAuthn / passkeys support in Android WebView #1743

mahnunchik opened this issue Oct 31, 2024 · 1 comment

Comments

@mahnunchik
Copy link

Feature Request

The Web Authentication API (WebAuthn) is an extension of the Credential Management API that enables strong authentication with public key cryptography, enabling passwordless authentication and secure multi-factor authentication (MFA) without SMS texts.

https://developer.mozilla.org/en-US/docs/Web/API/Web_Authentication_API

Motivation Behind Feature

Android WebView does not support WebAuthn due to some strange security reasons. The browser supports it, but the embedded WebView does not. Strange, but okay. Correct me if I'm wrong.

It would be great to add support for hardware security keys (passkeys, FIDO-authenticator) in Cordova applications.

Feature Description

According to Google's documentation Authenticate users with WebView, support can be added, but it's necessary to implement support in native Android code.

Maybe someone has already developed a plugin? I couldn't find one.

Alternatives or Workarounds

Authentication can be performed by opening the remote page in the in-app browser. WebAuthn works in it...

@breautek
Copy link
Contributor

This will be better integrated via a cordova plugin rather than in a core framework component.

If the plugin needs a new API for implementation, then a feature request could be made for that, but glancing over the android docs, the core framework should be able to provide everything it needs.

Big part of their documentation and how-to example is building a communication bridge between the webview and native environment, which Cordova already has. So it's a matter of implementation the public API as defined in the W3C spec (so that maybe one day the plugin won't be necessary, and the plugin can be removed without changing any app code using the API).

Additional Resources:

@breautek breautek closed this as not planned Won't fix, can't repro, duplicate, stale Oct 31, 2024
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

2 participants