Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

First, we can the DualShield API token/preRegister to pre-register a FIDO2 token

Expand
titletoken/preRegister

Include Page
token/preRegister
token/preRegister


Code Block
languagejs
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
titletoken/register

Include Page
token/register
token/register


Code Block
languagejs
let json = {
      product:{productCode: this.fidoObj.productCode},
      application: {name: ""},
      user: { loginName: this.loginName },
      token: token
      };

...