question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Registration doesn't work on Android, verifyAttestation AndroidSafetyNet fail

See original GitHub issue

First, thank you very much for your project.

I cant register my Google pixel on android 12. I get this error :

Attestation alg “-257” did not match metadata auth algs [-7] (SafetyNet).

All is ok with keys or Window Hello.

Registration parameters are :

  rp: { name: 'masked', id: 'masked' },
  user: {
    id: 'masked',
    name: masked',
   },
  pubKeyCredParams: [
    { alg: -7, type: 'public-key' },
    { alg: -257, type: 'public-key' }
   ],
  timeout: 60000,
  attestation: 'direct',
  authenticatorSelection: {
   userVerification: 'required',
   requireResidentKey: false
 }
extensions: { credProps: true, uvm: true }

Than you for your help Best regards Bruno.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:16 (10 by maintainers)

github_iconTop GitHub Comments

2reactions
MasterKalecommented, Feb 9, 2022

@bricous Just to follow up, I’ve merged fixes for the first two bullet points above, and I’ve identified and am working on a fix for the third bullet point. The solution to the third bullet point in particular will fix the original issue that prompted you to create this issue. None of it is available yet - they’ll all go out as @simplewebauthn/server@4.4.0 when I get the third fix merged.

1reaction
bricouscommented, Feb 2, 2022

After adding GlobalSign_Root_CA cert, i can register with attestation: 'direct'. Bravo!

Read more comments on GitHub >

github_iconTop Results From Across the Web

SafetyNet Attestation API - Android Developers
The SafetyNet Attestation API provides services for determining whether a device running your app satisfies Android compatibility tests.
Read more >
SafetyNet Suddenly Fails | XDA Forums
The SafetyNet Attestation API provides services for determining whether a device running your app satisfies Android compatibility tests.
Read more >
Flutter error: SafetyNet Attestation fails basic integrity
The SHA256 key and android device verification API is for a real device to pass Safetynet check.The reCAPTCHA flow will only be triggered ......
Read more >
Fix issues with your Play Protect certification status
If your device isn't Play Protect certified, Google doesn't have a record of the Android compatibility test results. Keep in mind that:.
Read more >
10 things you might be doing wrong when using the SafetyNet ...
Just like many other Google APIs, the SafetyNet Attestation API requires an API key in order to run. Furthermore, the SafetyNet Attestation API ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found