WebAuthnRegistrationCallback
open class WebAuthnRegistrationCallback : WebAuthnCallback
extension WebAuthnRegistrationCallback: PlatformAuthenticatorRegistrationDelegate
extension WebAuthnRegistrationCallback: FRWebAuthnManagerDelegate
WebAuthnRegistrationCallback is a representation of AM’s WebAuthn Registration Node to generate WebAuthn attestation based on given credentials, and optionally set the WebAuthn outcome value in Node
‘s designated HiddenValueCallback
-
_type value in Callback response
Declaration
Swift
public var _type: String
-
Relying Party Name value from Callback response
Declaration
Swift
public var relyingPartyName: String
-
Attestation Preference enum value from authenticatorSelection attribute of Callback response
Declaration
Swift
public var attestationPreference: WAAttestationPreference
-
Display Name of the user from Callback response
Declaration
Swift
public var displayName: String
-
Relying Party Identifier value from Callback response
Declaration
Swift
public var relyingPartyId: String
-
Username of the user from Callback response
Declaration
Swift
public var userName: String
-
User Identifier value from Callback response
Declaration
Swift
public var userId: String
-
Timeout value from Callback response
Declaration
Swift
public var timeout: Int
-
Excluded credentials list of credential identifiers from Callback response
Declaration
Swift
public var excludeCredentials: [[UInt8]]
-
Public Key Credentials Parameters from Callback response
Declaration
Swift
public var pubKeyCredParams: [[String : Any]]
-
Challenge string value from Callback response
Declaration
Swift
public var challenge: String
-
User Verification enum value from Callback response
Declaration
Swift
public var userVerification: WAUserVerification
-
Boolean indicator of Require Resident Key value from Callback response
Declaration
Swift
public var requireResidentKey: Bool
-
Authenticator Attachment option value from authenticatorSelection attribute of Callback response
Declaration
Swift
public var authenticatorAttachment: WAAuthenticatorAttachment
-
Delegation to perform required user interaction while generating assertion
Declaration
Swift
public weak var delegate: PlatformAuthenticatorRegistrationDelegate?
-
Registers against AM’s
WebAuthn Registration Node
based on the JSON callback and WebAuthn’s properties within the CallbackDeclaration
Swift
public func register(node: Node? = nil, window: UIWindow? = UIApplication.shared.windows.first, deviceName: String? = nil, usePasskeysIfAvailable: Bool = false, onSuccess: @escaping StringCompletionCallback, onError: @escaping ErrorCallback)
Parameters
node
Optional
Node
object to set WebAuthn value to the designatedHiddenValueCallback
window
Optional
Window
set the presenting Window for the Apple Passkeys UI. If not set it will default toUIApplication.shared.windows.first
deviceName
Optional
Device Name
object to set Device Name value to the designatedHiddenValueCallback
usePasskeysIfAvailable
Optional
usePasskeysIfAvailable
set this to enable Passkeys in supported devices (iOS 16+). Setting this to true will not affect older OSsonSuccess
Completion callback for successful WebAuthn assertion outcome; note that the outcome will automatically be set to the designated
HiddenValueCallback
onError
Error callback to notify any error thrown while generating WebAuthn assertion
-
Declaration
Swift
public func excludeCredentialDescriptorConsent(consentCallback: @escaping WebAuthnUserConsentCallback)
-
Declaration
Swift
public func createNewCredentialConsent(keyName: String, rpName: String, rpId: String?, userName: String, userDisplayName: String, consentCallback: @escaping WebAuthnUserConsentCallback)
-
Declaration
Swift
public func didFinishAuthorization()
-
Declaration
Swift
public func didCompleteWithError(_ error: Error)
-
Declaration
Swift
public func didCancelModalSheet()