FidoRegistrationCallback

FIDO2 registration callback for ForgeRock Journey workflows.

This callback handles the FIDO2 credential registration process within a Journey workflow. It processes credential creation options from the server, performs the registration using the device's FIDO2 capabilities, and formats the response for the Journey framework.

The callback supports both legacy string-based and modern JSON-based response formats depending on the server capabilities. It also supports optional device naming for better credential management.

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard
lateinit var publicKeyCredentialCreationOptions: JsonObject

The public key credential creation options for FIDO2 registration. This contains all the parameters needed for the registration ceremony, including user information, relying party details, and cryptographic preferences.

Functions

Link copied to clipboard
protected open override fun init(name: String, value: JsonElement)
Link copied to clipboard
suspend fun register(deviceName: String? = null, block: FidoRegistrationCustomizer.() -> Unit = {}): Result<JsonObject>

Registers a new FIDO2 credential using the initialized creation options.