Skip to content

Instantly share code, notes, and snippets.

@kypflug
Created April 12, 2016 00:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kypflug/b243eaf8e2a058ca164404f4dcc29f09 to your computer and use it in GitHub Desktop.
Save kypflug/b243eaf8e2a058ca164404f4dcc29f09 to your computer and use it in GitHub Desktop.
var filters = {
accept:
[
{
type: 'FIDO_2_0',
id: getCredentialIDFromLocalStorage()
}
]
};
window.msCrendentials.getAssertion(challenge, filters)
.then(function(attestation) {
// Send signed challenge and meta data to server
sendToServer({
credential: {type: 'ScopedCred', id: attestation.id},
clientData: attestation.signature.clientData,
authnrData: attestation.signature.authnrData,
signature: attestation.signature.signature
};
);
});
@nathancrank
Copy link

window.msCrendentials has a typo, should be window.msCredentials

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment