WebAuthnDtoMapper
object WebAuthnDtoMapper
Maps between wire DTOs and strict WebAuthn model types with validation aggregation.
Functions
Link copied to clipboard
fun fromModel(value: AuthenticationExtensionsClientOutputs): AuthenticationExtensionsClientOutputsDto
Maps raw, untrusted authentication output without interpreting authenticator-data bytes.
Maps raw, untrusted registration output without interpreting authenticator-data bytes.
Link copied to clipboard
Parses the signed clientDataJSON carried by a WebAuthn credential response.
Link copied to clipboard
Link copied to clipboard
fun toModelValidated(value: AuthenticationExtensionsClientInputsDto, fieldPrefix: String = "extensions"): ValidationResult<AuthenticationExtensionsClientInputs>
fun toModelValidated(value: AuthenticationExtensionsClientOutputsDto, fieldPrefix: String = "clientExtensionResults"): ValidationResult<AuthenticationExtensionsClientOutputs>
Link copied to clipboard
Validates wire fields while preserving authentication response bytes as raw protocol input.
Validates wire fields while preserving registration response bytes as raw protocol input.