FidoAuthenticationCollector

DaVinci collector for FIDO2 authentication operations.

This collector handles FIDO2 authentication within a DaVinci workflow. It processes authentication request options from the DaVinci server, performs the authentication ceremony using the device's FIDO2 capabilities, and provides the assertion response back to the workflow.

The collector automatically transforms the DaVinci-specific JSON format to the standard WebAuthn format required by the Android Credential Manager API.

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard
lateinit var publicKeyCredentialRequestOptions: JsonObject

The transformed authentication request options

Functions

Link copied to clipboard
suspend fun authenticate(block: FidoAuthenticateCustomizer.() -> Unit = {}): Result<JsonObject>

Performs FIDO2 authentication using the initialized request options.

Link copied to clipboard
open override fun close()
Link copied to clipboard
open override fun init(input: JsonObject): Collector<JsonObject>

Initializes the collector with authentication request options.

Link copied to clipboard
open override fun payload(): JsonObject?

Returns the payload to be sent back to the DaVinci workflow.