STRUCT

WebAuthnAuthenticationClientOperationActionModel

Contents

public struct WebAuthnAuthenticationClientOperationActionModel: ClientOperationActionModelRepresentation,
                                                                InternalClientOperationActionModelRepresentation

Represents the model for the WebAuthn authentication operation, which instructs a client that WebAuthn needs to be used to continue the flow. The client should guide the user in asserting a request by using a device or security-key, according to the options defined by this model. Authentication Services native APIs provide support for both platform and cross-platform authenticators, thus the model provides configuration for each separately. Depending on the server response, this model will provide configuration for either one or both. When both configurations are present, the user should be presented with a choice.

Properties

name

public let name: ClientOperationName

arguments

public let arguments: [String: (any Sendable)]

continueActions

public let continueActions: [any Action]

errorActions

public let errorActions: [any Action]

credentialOptions

public let credentialOptions: CredentialRequestOptions

Authentication PublicKey configuration options.

fallbackActions

public var fallbackActions: [any Action]

Returns the actions that should be triggered when WebAuthnhandling fails or is impossible to use with the native APIs.

Methods

init(from:)

public init(from decoder: Decoder) throws

Parameters

Name Description
decoder The decoder to read data from.

==(::)

public static func == (lhs: WebAuthnAuthenticationClientOperationActionModel,
                       rhs: WebAuthnAuthenticationClientOperationActionModel) -> Bool

Parameters

Name Description
lhs A value to compare.
rhs Another value to compare.