Authenticating
  • 17 Jan 2025
  • 1 Minute à lire
  • Sombre
    Lumière
  • PDF

Authenticating

  • Sombre
    Lumière
  • PDF

The content is currently unavailable in French. You are viewing the default English version.
Résumé de l’article

To perform an authenticating operation with the OneSpan FIDO2 SDK, you need to create an AuthenticatingFinalize object and provide the following interface implementations required by this object constructor:

  • authenticatorCredentialDataProvider: Implementation of the AuthenticatorCredentialDataProvider interface allowing access to stored AuthenticatorCredential objects.
  • authenticationExtensionVerifier: Responsible for verification of the extension used in the WebAuthn authentication process.

Table: Authenticating methods and parameters lists the methods, their parameters, and the objects they return.

  Table:  Authenticating methods and parameters
PurposeParametersReturned object
Method: generatePublicKeyCredentialRequestOptions()
Initialize the authentication process.
  • publicKeyCredentialDescriptors: List of PublicKeyCredentialDescriptor objects that can be appended to the outgoing message to define which credentials should be used during authentication.
  • userVerificationRequirement: Use verification requirement for this operation.
  • authenticationParameters: Represents the authentication process parameters passed to SDK components.
PublicKeyCredentialRequestOptions: Object to be sent back to the requesting client.
Method: finalizeAuthentication()
Finalize the authentication process.
  • publicKeyCredential: publicKeyCredential object returned from the client.
  • allowCredentials: Credentials returned to the client during the first step of the authentication process.
  • authenticatorCredentialsForThisUserHandle: Credentials for the user that is being authenticated.
  • userVerificationRequirement: User verification requirement that was sent to the client during the first step.
  • expectedTokenBinding: Token binding information.
  • expectedExtensions: Extensions that were requested from the client during the first step.
  • authenticationParameters: Authentication parameters for the authentication process.
  • policy: Optional. A policy object that defines the allowed and disallowed authenticators (see  FIDO2 policies).

    This method has 2 overloaded versions, one with the policy parameter and one without.

    If the method is used without this parameter, then all authenticators are allowed.

PostAuthData: Object to be stored after the operation.

Cet article vous a-t-il été utile ?

Changing your password will log you out immediately. Use the new password to log back in.
First name must have atleast 2 characters. Numbers and special characters are not allowed.
Last name must have atleast 1 characters. Numbers and special characters are not allowed.
Enter a valid email
Enter a valid password
Your profile has been successfully updated.
ESC

Ozzy, facilitant la découverte de connaissances grâce à l’intelligence conversationnelle