FidoAuthenticationCallback
public class FidoAuthenticationCallback : FidoCallback, @unchecked Sendable
A callback for handling FIDO authentication in a PingOne Journey.
-
The
PublicKeyCredentialRequestOptionsreceived from the server for FIDO authentication.Declaration
Swift
public var publicKeyCredentialRequestOptions: [String : Any] -
Initializes the callback’s properties with values from the JSON payload.
Declaration
Swift
public override func initValue(name: String, value: Any)Parameters
nameThe name of the property to initialize.
valueThe value of the property.
-
authenticate(window:Asynchronous) Initiates the FIDO authentication process using async/await.
Throws
An error if the authentication process fails.Declaration
Swift
@MainActor public func authenticate(window: ASPresentationAnchor) async -> Result<[String : Any], Error>Parameters
windowThe
ASPresentationAnchorto present the FIDO UI.
View on GitHub