인디노트
FIDO - 플랫폼에서 장치인증 가능한지 여부 확인 본문
사용하는 플랫폼 (기기, 웹브라우저 등) 에서 인증에 필요한 기능 ( Face ID, Touch ID 등) 을 지원하는지 확인할 수 있다.
function isUVPAA() {
try {
eval(PublicKeyCredential);
} catch(err) {
showErrorMsg(`UVPAA failed: [${err.toString()}]`);
return;
}
if (PublicKeyCredential &&
PublicKeyCredential.isUserVerifyingPlatformAuthenticatorAvailable) {
PublicKeyCredential.isUserVerifyingPlatformAuthenticatorAvailable().then(response => {
if (response === true) {
showSuccessMsg(`User verifying platform authenticator is available.`);
} else {
showErrorMsg(`User verifying platform authenticator is NOT available.`);
}
}).catch(err => {
showErrorMsg(`UVPAA failed: [${err.toString()}]`);
});
} else {
showErrorMsg(`User verifying platform authenticator is not available on this browser.`);
}
}
'인증기술 > FIDO' 카테고리의 다른 글
| FIDO - authenticatorAttachment (0) | 2021.01.05 |
|---|---|
| FIDO - residentKey (0) | 2021.01.05 |
| FIDO - userVerification (0) | 2021.01.05 |
| FIDO - requireResidentKey (0) | 2021.01.05 |
| FIDO - Attestation Conveyance Preference Enumeration (enum AttestationConveyancePreference) (0) | 2021.01.05 |
Comments