...
First, we can the DualShield API token/preRegister to pre-register a FIDO2 token
| Expand |
|---|
|
| Include Page |
|---|
| token/preRegister |
|---|
| token/preRegister |
|---|
|
|
| Code Block |
|---|
|
let json = {
product: this.fidoObj,
user: { loginName: this.loginName}, \\ Pass the user name to which the Fido2 key needs to be registered
}; |
...
The response from the preRegister API call is then passed to the CredentialCreationOptionsJSON object
...
Finally, we call the DualShield API token/register to register the FIDO2 token
| Expand |
|---|
|
| Include Page |
|---|
| token/register |
|---|
| token/register |
|---|
|
|
| Code Block |
|---|
|
let json = {
product:{productCode: this.fidoObj.productCode},
application: {name: ""},
user: { loginName: this.loginName },
token: token
}; |
...