Skip to content

Commit

Permalink
Fix: Indicate self attestation if attestationChallenge==null
Browse files Browse the repository at this point in the history
  • Loading branch information
fmeum committed Mar 31, 2020
1 parent 1f41833 commit fc9e3ea
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,9 @@ abstract class AuthenticatorContext(private val context: Context, val isHidTrans
attestationChallenge = null
)
}
return Pair(credential, AttestationType.ANDROID_KEYSTORE)
val attestationType =
if (actualAttestationChallenge != null) AttestationType.ANDROID_KEYSTORE else AttestationType.SELF
return Pair(credential, attestationType)
}

fun refreshCachedWebAuthnCredentialIfNecessary() {
Expand Down

0 comments on commit fc9e3ea

Please sign in to comment.