-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(WebAuthn): allow multiple credentials per user
This change allows users to associate multiple credentials to their account. When performing assertions, all the credentials are sent on the `allowList`. When registering a new credential, existing credentials are sent on the `excludeList`. Updated the example to show all the credentials associated to a user. This change is not backwards compatible.
- Loading branch information
Showing
7 changed files
with
71 additions
and
64 deletions.
There are no files selected for viewing
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
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
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
import React from 'react' | ||
import { Card } from 'react-bootstrap' | ||
import 'bootstrap/dist/css/bootstrap.min.css' | ||
|
||
class CredentialCard extends React.Component { | ||
render () { | ||
return ( | ||
<Card> | ||
<Card.Body> | ||
<Card.Title>{this.props.credential.credID}</Card.Title> | ||
<Card.Text> | ||
<p><strong>Format: </strong> {this.props.credential.fmt}</p> | ||
<p><strong>Counter: </strong> {this.props.credential.counter}</p> | ||
<p><strong>Public key: </strong> {this.props.credential.publicKey}</p> | ||
</Card.Text> | ||
</Card.Body> | ||
</Card> | ||
) | ||
} | ||
} | ||
|
||
export default CredentialCard; |
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
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
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