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

Using the library with Android 14 App causes jackson parsing error on finish registration #306

Closed
emlun opened this issue Jun 26, 2023 Discussed in #304 · 4 comments
Closed
Labels
bug Something isn't working

Comments

@emlun
Copy link
Member

emlun commented Jun 26, 2023

Discussed in #304

Originally posted by notz June 23, 2023
I get following error on finishing my passkey created on my android app with android 14:

com.fasterxml.jackson.databind.exc.UnrecognizedPropertyException: Unrecognized field "publicKeyAlgorithm" (class com.yubico.webauthn.data.AuthenticatorAttestationResponse), not marked as ignorable (3 known properties: "transports", "clientDataJSON", "attestationObject"])

The generated publicCredential looks like this:

{
	"rawId": "2nTIub3-qA3CCizxdL2DlA",
	"authenticatorAttachment": "platform",
	"type": "public-key",
	"id": "2nTIub3-qA3CCizxdL2DlA",
	"response": {
		"clientDataJSON": "eyJ0eXBlIjoid2ViYXV0aG4uY3JlYXRlIiwiY2hhbGxlbmdlIjoiUDZCQkxiOHR2Q1A0N3dsb0JKdVl5cXR2bnkzbWk1QmRuR2FmXzBBZkcwbyIsIm9yaWdpbiI6ImFuZHJvaWQ6YXBrLWtleS1oYXNoOjB1YWV0UDVsQ3VkY3MwMmxaWDJadVgzS3VRSVY0TnFiamJaNnROd3E3UmciLCJhbmRyb2lkUGFja2FnZU5hbWUiOiJtZS5pbnN0YWhlbHAubGVnYWN5In0",
		"attestationObject": "o2NmbXRkbm9uZWdhdHRTdG10oGhhdXRoRGF0YViU0p4WwdT8fFDK9UkjntJUIEAbq0V4Rjv0GNS1PLSuvsVdAAAAAAAAAAAAAAAAAAAAAAAAAAAAENp0yLm9_qgNwgos8XS9g5SlAQIDJiABIVggTY4v69AVAmDNXm8sLx__GplM2vppiwMmYbonLg5NmCsiWCBUDmsF0cVOP6pHJPF1HNGtKHu9ibZctv9BvCG1_sDyFw",
		"transports": ["internal", "hybrid"],
		"authenticatorData": "0p4WwdT8fFDK9UkjntJUIEAbq0V4Rjv0GNS1PLSuvsVdAAAAAAAAAAAAAAAAAAAAAAAAAAAAENp0yLm9_qgNwgos8XS9g5SlAQIDJiABIVggTY4v69AVAmDNXm8sLx__GplM2vppiwMmYbonLg5NmCsiWCBUDmsF0cVOP6pHJPF1HNGtKHu9ibZctv9BvCG1_sDyFw",
		"publicKeyAlgorithm": -7,
		"publicKey": "MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAETY4v69AVAmDNXm8sLx__GplM2vppiwMmYbonLg5NmCtUDmsF0cVOP6pHJPF1HNGtKHu9ibZctv9BvCG1_sDyFw"
	},
	"clientExtensionResults": {
		"credProps": {
			"rk": true
		}
	}
}

It looks that the request should be allowed per spec: https://w3c.github.io/webauthn/#authenticatorattestationresponse

Is this a bug?

@emlun emlun added the bug Something isn't working label Jun 26, 2023
@emlun
Copy link
Member Author

emlun commented Jun 26, 2023

@notz Thanks for the report! This is indeed a bug, and will be fixed in the 2.5.0 release.

@emlun
Copy link
Member Author

emlun commented Jun 27, 2023

Fixed in version 2.5.0-RC1, please try it out!

@notz
Copy link

notz commented Jun 28, 2023

@emlun i can confirm that the issue is fixed with 2.5.0-RC1

@emlun
Copy link
Member Author

emlun commented Jul 3, 2023

Thanks!

@emlun emlun closed this as completed Jul 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Development

No branches or pull requests

2 participants