Slide 8
Slide 8 text
Copyright © Yoshikazu Nojima 2018
オプションが多く、複雑です。次ページから各オプションを説明します
Credentialの作成
7
let publicKeyCredentialCreationOptions = {
rp: rp,
user: user,
challenge: challenge,
pubKeyCredParams: pubKeyCredParams,
timeout: timeout,
excludeCredentials: excludeCredentials,
authenticatorSelection: authenticatorSelection,
attestation: attestation,
extensions: extensions
};
let credentialCreationOptions = {
publicKey: publicKeyCredentialCreationOptions
};
navigator.credentials.create(credentialCreationOptions)
.then(function(credential){
// submit to Relying Party server
});