-
Notifications
You must be signed in to change notification settings - Fork 31
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
[ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: PlatformException(android-unhandled: androidx.credentials.TYPE_CREATE_PUBLIC_KEY_CREDENTIAL_DOM_EXCEPTION/androidx.credentials.TYPE_SECURITY_ERROR, The incoming request cannot be validated, The incoming request cannot be validated, null) #82
Comments
I have face same issue. |
我也是,将demo的包名和keystore文件放入自己建立的demo中,能正常调用;但自己的包名和keystore/jks却不行(已在Corbado后台设置>原生应用程序添加了)。作者能不能来看看,问题出在哪,该怎么办,着急[皱眉] |
changing rpID for the exact sub-domain where assetlinks is deployed worked for me. |
Could please you share example? |
Yes, In my case we use a auth provider. so the rpId was coming as say "example.com" but the assetlinks.json was hosted at "auth.example.com". so I manually put the rpId as auth.example.com. and then this error disappeared. |
Let me check. Thanks for the support |
Thank you for raising this issue! As far as i understood. The key used in the example project is tied to the For more details on how this process works, please refer to section 5.1 of our blog post. If you'd like to avoid hosting If you have further questions or need additional guidance, feel free to share more details here or reach out directly. I'll close this issue due to inactivity, but you're welcome to reopen it if needed. Thank you |
As this has been stale for the past week . i will be closing the issue so please feel free to reopen it if there are any new findings or any new issues . |
Running the example app seems to work fine but when I generate my own key for signing in apps or resuing the same key in a different app it shows the same error (
PlatformException(android-unhandled: androidx.credentials.TYPE_CREATE_PUBLIC_KEY_CREDENTIAL_DOM_EXCEPTION/androidx.credentials.TYPE_SECURITY_ERROR, The incoming request cannot be validated
). Tried various other things and saw that only the given example.keystore works for me. Any other signin using keytool isn't begin valid. The command used to generate my own keys:keytool -genkey -v -keystore ./android/example2.keystore -keyalg RSA -keysize 2048 -validity 10000 -alias example
This works but this doesn't
I am not sure if this is the issue but according to trying different things the app only throws the exception here. So, I assumed maybe the package only handles it's own key file (or) the documentation should be updated to show how to signin keys properly.
My flutter version and the build tools versions:
The text was updated successfully, but these errors were encountered: