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

FIDO registration with an android device fails #11055

Closed
mefarazath opened this issue May 1, 2020 · 1 comment · Fixed by wso2/orbit#449
Closed

FIDO registration with an android device fails #11055

mefarazath opened this issue May 1, 2020 · 1 comment · Fixed by wso2/orbit#449
Assignees
Milestone

Comments

@mefarazath
Copy link
Contributor

Describe the Issue:
When trying to register an android phone as a security device the registration initially fails with below error message

image

This is due to the fact that the phone does not support usernameless flavour of FIDO, therefore tried clicking on "Try with an older device" to register the device as a passwordless option for 2FA.

Connected the phone for remote debugging and was able to see that the start registration API call to webauthn endpoint is done successfully and the device generates a public key and portal calls the finish registration API of the webauthn endpoint.

It fails with an error message as below.
image

Seems like there is a backend error with the stack trace.

Caused by: java.lang.NoClassDefFoundError: Could not initialize class com.yubico.webauthn.AndroidSafetynetAttestationStatementVerifier
	at com.yubico.webauthn.FinishRegistrationSteps$Step13.attestationStatementVerifier(FinishRegistrationSteps.java:395)
	at com.yubico.webauthn.FinishRegistrationSteps$Step13.nextStep(FinishRegistrationSteps.java:379)
	at com.yubico.webauthn.FinishRegistrationSteps$Step13.nextStep(FinishRegistrationSteps.java:368)
	at com.yubico.webauthn.FinishRegistrationSteps$Step.next(FinishRegistrationSteps.java:110)

full stack trace: https://gist.github.com/mefarazath/acc24fcc00bc1f6b780c5e959050e006

How To Reproduce:
Try to register an Android phone as a security device via portal

Expected behavior:
Should be able to register the device as a security device successfully and use as second factor.

Device Information (Please complete the following information) :

  • Device: Samsung S10+ (SM-G975F)
  • OS: Android 10
  • Browser + Version Chrome (81.0.4044.111)

@emswbandara
Copy link
Contributor

Re-opened to capture public fix.

@emswbandara emswbandara reopened this Jan 22, 2021
@emswbandara emswbandara self-assigned this Jan 22, 2021
@emswbandara emswbandara transferred this issue from wso2/identity-apps Jan 22, 2021
@emswbandara emswbandara added this to To do in Identity Server 6.0.0 via automation Jan 22, 2021
@emswbandara emswbandara added this to the 5.12.0-M8 milestone Jan 22, 2021
Identity Server 6.0.0 automation moved this from To do to Done Jan 22, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
No open projects
Development

Successfully merging a pull request may close this issue.

2 participants