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

Passkey codelab doesn't work getting : "The incoming request cannot be validated" everytime #63

Closed
MayurHebbar04 opened this issue Feb 12, 2024 · 7 comments

Comments

@MayurHebbar04
Copy link

I tried to follow Android Passkey codelab steps.
I'm consistently encountering an exception error while attempting to sign up for a passkey : The incoming request cannot be validated

The asset links looks like this:

[
  {
    "relation" : [
      "delegate_permission/common.handle_all_urls"
    ],
    "target" : {
      "namespace" : "web",
      "site" : "${SITE}"
    }
  },
  {
    "relation" : [
      "delegate_permission/common.handle_all_urls",
      "delegate_permission/common.get_login_creds"
    ],
    "target" : {
      "namespace" : "android_app",
      "package_name" : "${applicationId}",
      "sha256_cert_fingerprints" : [
        "${SHA256_CERT_FINGERPRINT}"
      ]
    }
  }
]

Created a strings.xml file:

<?xml version="1.0" encoding="utf-8"?>
<resources>
    <!-- TODO -->
    <string name="asset_statements" translatable="false">
  [{
    \"https://${ourSiteDomain}/.well-known/assetlinks.json\"
  }]
  </string>
</resources>

Even added meta-data to the Manifest (tried with and without)

<meta-data android:name="asset_statements" android:resource="@string/asset_statements" />

Could someone from the Google team assist with resolving the recurring 'The incoming request cannot be validated' exception?

@MayurHebbar04
Copy link
Author

Hi Team, the feature is functioning correctly on Android 14 devices but encountering issues on devices running Android versions below 14, such as Android 13 and 12. Please help to address this discrepancy. Thank you!

@MayurHebbar04
Copy link
Author

we solved the problem and the passkeys are working, hence closing the issue

@marcus-sa
Copy link

@MayurHebbar04 how did you solve it?

@syntag
Copy link

syntag commented Aug 17, 2024

@MayurHebbar04 please share how you resolved

Playgirlkaybraz11 referenced this issue Aug 29, 2024
Change-Id: I2d96b5b0083f6f1b8c82d2bcd024684c6eaf42df
@tassilo-posegga
Copy link

I am also stuck and appreciate any hints.

@Hannah-Zhang-1024
Copy link

@MayurHebbar04 could you share your resolution, appreciate!

@dominictobias-bullish
Copy link

we solved the problem and the passkeys are working, hence closing the issue

Thanks for just saying you solved it without explaining anything 🙄

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

6 participants