I created the sample app on android to use Android Fido2 client api, using Fido2ClientApi to create the public key credentials.
The credentials creation response which is sent to Fido2 server which uses the WebAuthN spec. The clientDataJSON coming from the Android app contains the origin: android:apk-key-hash:<hash>, while the WebAuthn4J library expects the Origin should start with https scheme. The WebAuthN spec does not provide any details for Android Native Fido2 response on how one should validate the Origin.
Looking for suggestions on how to validate the clientDataJSON for the android App and ios App where the fido2 authenticator is platform type.
Regards,
Ashok
On server
I am using Android Fido2 Client API to register the user with RP.