STRUCT
WebAuthnRegistrationClientOperationActionModel
Contents
- Properties
nameargumentscontinueActionserrorActionsplatformOptionscrossPlatformOptionsfallbackActions
 - Methods
init(from:)==(_:_:)
 
public struct WebAuthnRegistrationClientOperationActionModel: ClientOperationActionModelRepresentation,
                                                              InternalClientOperationActionModelRepresentation
Represents the model for the WebAuthn registration client operation, which instructs a client that WebAuthn needs to be used to continue the flow. The client
should guide the user in registering a new 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.
When Passkeys mode is configured on the server, the configuration is provided via the platformJson property.  PassKeys support is provided by the
ASAuthorizationPlatformPublicKeyCredentialProvider native APIs.
- 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]
platformOptions
public var platformOptions: PlatformCredentialRequestOptions?
Platform attachment PublicKey options.
crossPlatformOptions
public var crossPlatformOptions: CrossPlatformCredentialRequestOptions?
CrossPlatform attachment PublicKey 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: WebAuthnRegistrationClientOperationActionModel,
                       rhs: WebAuthnRegistrationClientOperationActionModel) -> Bool
Parameters
| Name | Description | 
|---|---|
| lhs | A value to compare. | 
| rhs | Another value to compare. |