You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Fido auth with Android SDK. Error from a server: invalid origin #71
The field clientDataJSON contains a base64-encrypted JSON object that has property "origin":"android:apk-key-hash:fbENTvCSeR-AwJV5rrrBsb98p-jEw0c5SSOMul_KwaI"
But the server responds with an error "invalid origin".
At the same time, my web FIDO auth implementation sends clientDataJSON with "origin":"https://test.afterlogic.com" and everything is working fine in this case.
How I can verify origin with android:apk-key-hash on the webserver? I will be appreciated any other ideas on how to deal with this.
I'm not a PHP or Laravel developer, but I had the same problem with a PHP server implementation that used https://github.com/web-auth/webauthn-framework and https://github.com/asbiin/laravel-webauthn.
I went and had a look into the exceptions that were given back by the PHP server. There I found code that suggested, that an origin with the value of "apk-key-hash:....", would never be evaluated to a valid origin. So I had no other choice than to add code, that would approve the apk-key-hash of my specific Android app.
Not the best solution, if even a real one, but I don't see any other way of doing it.
Try to look at https://developers.yubico.com/U2F/App_ID.html.
And please let me know if you figure out anything.
Activity
ValarMarkhulis commentedon Dec 22, 2020
I'm not a PHP or Laravel developer, but I had the same problem with a PHP server implementation that used https://github.com/web-auth/webauthn-framework and https://github.com/asbiin/laravel-webauthn.
I went and had a look into the exceptions that were given back by the PHP server. There I found code that suggested, that an origin with the value of "apk-key-hash:....", would never be evaluated to a valid origin. So I had no other choice than to add code, that would approve the apk-key-hash of my specific Android app.
Not the best solution, if even a real one, but I don't see any other way of doing it.
Try to look at https://developers.yubico.com/U2F/App_ID.html.
And please let me know if you figure out anything.
pavlo commentedon Oct 1, 2021
I am experiencing the same issue with the origin. Is there any update on the issue? Thanks!
vyppN commentedon Oct 20, 2023
Just add your
android:apk-key-hash:fbENTvCSeR-AwJV5rrrBsb98p-jEw0c5SSOMul_KwaIinwebauthn.ConfiginRPOrigins