Registration doesn't work on Android, verifyAttestation AndroidSafetyNet fail
See original GitHub issueFirst, 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:
- Created 2 years ago
- Comments:16 (10 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@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.
After adding
GlobalSign_Root_CA
cert, i can register withattestation: 'direct'
. Bravo!