-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Fido: Supplement missing processing #3031
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
base: master
Are you sure you want to change the base?
Conversation
…ey is created based on the existing code.
…ix_fido_passkey_sign_in
// Default: SHA-256 | ||
val digest = context.packageManager.getFirstSignatureDigest(packageName, "SHA-256") | ||
?: throw RequestHandlingException(NOT_ALLOWED_ERR, "Unknown package $packageName") | ||
return "android:apk-key-hash:${digest.toBase64(HASH_BASE64_FLAGS)}" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This seems wrong. It should be either android:apk-key-hash:<sha-1>
or android:apk-key-hash-sha256:<sha-256>
, but not a mix.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I also noticed this, but in the fido specification, the pr server recognizes SHA-256
"android:apk-key-hash:${firstSignature.digest("SHA1").toBase64(HASH_BASE64_FLAGS)}" | ||
} | ||
"android:apk-key-hash:$sha1BASE64" -> "android:apk-key-hash-sha256:$sha256BASE64" | ||
"android:apk-key-hash:$sha256BASE64" -> "android:apk-key-hash-sha256:$sha256BASE64" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
And you need this here, because you wrongly created it above.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removed sha-1 related.
Add missing parameters.
Fix the failure of third-party application verification key. Contains: Fido: fix support for discoverable keys #2885
Fixed the issue that the created key cannot be used, and the latest key is created based on the existing code.
Implement multiple passkey switching logins. Similar logic to FIDO: Add credential selection #2463 & Contains: SignIn: Avoid error messages #3000