-
-
Save kypflug/5931c40235331007705c2d9fd27c962b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var accountInfo = { | |
rpDisplayName: 'Contoso', // Name of relying party | |
userDisplayName: 'John Doe' // Name of user account in relying partying | |
}; | |
var cryptoParameters = [ | |
{ | |
type: 'FIDO_2_0', | |
algorithm: 'RSASSA-PKCS1-v1_5' | |
} | |
]; | |
window.msCredential.makeCredential(accountInfo, cryptoParameters) | |
.then(function (cred) { | |
// If promised succeeds, send credential information to the server | |
sendToServer({ | |
credential: {type: 'ScopedCred', id: cred.id}, | |
algorithm: cred.algorithm, | |
publicKey: JSON.parse(cred.publicKey), | |
attestation: cred.attestation | |
} | |
); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Shouldn't it be window.msCredentials not msCredential?