STRUCT
WebAuthnAuthenticationClientOperationActionModel
Contents
- Properties
nameargumentscontinueActionserrorActionscredentialOptionsfallbackActions
 - Methods
init(from:)==(_:_:)
 
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.
- Note: Starting from iOS 15, 
WebAuthncan be used with the Authentication Services ASAuthorizationPublicKey APIs (native) but it is also possible to use the fallbackActions(web browser). Below iOS 15, fallbackActions (web browser) is the only way to handle WebAuthn. 
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. |