When retrieving the ASAuthorizationPlatformPublicKeyCredentialRegistration, the decoded fmt value of rawAttestationObject is none instead of apple.
Is this currently expected?
When retrieving the ASAuthorizationPlatformPublicKeyCredentialRegistration, the decoded fmt value of rawAttestationObject is none instead of apple.
Is this currently expected?
Like on the web, this is the default value unless you explicitly request attestation. You can do that through ASAuthorizationPublicKeyCredentialRegistrationRequest.attestationPreference.
Note that not all attestation preferences are supported by all security keys or passkeys.
Thanks for the feedback. Unfortunately the result still persists when setting the value as direct. Using the Platform authenticator with FaceID. Could I be missing a separate configuration here?
Device Model: iPhone 12 mini
let platformProvider = ASAuthorizationPlatformPublicKeyCredentialProvider(relyingPartyIdentifier: rpName)
let platformKeyRequest = platformProvider.createCredentialRegistrationRequest(challenge: challenge, name: userName, userID: userIdData)
platformKeyRequest.userVerificationPreference = .required
platformKeyRequest.attestationPreference = .direct
let authController = ASAuthorizationController(authorizationRequests: [platformKeyRequest])
authController.delegate = self
authController.presentationContextProvider = self
authController.performRequests()