DeviceBindingCallback
public class DeviceBindingCallback : AbstractCallback, @unchecked Sendable, JourneyAware, ContinueNodeAware
A Journey callback for handling device binding. This callback is received from the AIC authentication flow when a device needs to be bound to a user account.
-
The
Journeyobject associated with the current authentication flow.Declaration
Swift
public var journey: Journey? -
The
ContinueNodeobject that can be used to continue the authentication flow.Declaration
Swift
public var continueNode: ContinueNode? -
The user ID for the binding.
Declaration
Swift
public var userId: String -
The username for the binding.
Declaration
Swift
public var userName: String -
The challenge to be signed.
Declaration
Swift
public var challenge: String -
The type of authentication to be used.
Declaration
Swift
public var deviceBindingAuthenticationType: DeviceBindingAuthenticationType -
The title to be displayed in the UI.
Declaration
Swift
public var title: String -
The subtitle to be displayed in the UI.
Declaration
Swift
public var subtitle: String -
The description to be displayed in the UI.
Declaration
Swift
public var description: String -
The timeout for the operation.
Declaration
Swift
public var timeout: Int -
The attestation option.
Declaration
Swift
public var attestation: Attestation -
Initializes the callback with the given name and value. This method is called by the
Journeyframework to initialize the callback with the values from the server.Declaration
Swift
public override func initValue(name: String, value: Any)Parameters
nameThe name of the value.
valueThe value.
-
Sets the JWS on the callback. This method is called by the
PingBinderafter successfully signing the challenge.Declaration
Swift
public func setJws(_ jws: String)Parameters
jwsThe JWS to set.
-
Sets the device ID on the callback. This method is called by the
PingBinderafter successfully binding the device.Declaration
Swift
public func setDeviceId(_ deviceId: String)Parameters
deviceIdThe device ID to set.
-
Sets the device name on the callback. This method is called by the
PingBinderafter successfully binding the device.Declaration
Swift
public func setDeviceName(_ deviceName: String)Parameters
deviceNameThe device name to set.
-
bind(config:Asynchronous) Binds a device to a user account. This method calls the
PingBinderto perform the binding operation.Declaration
Swift
public func bind(config: (DeviceBindingConfig) -> Void = { _ in }) async -> Result<[String : Any], Error>Parameters
configA closure to configure the
DeviceBindingConfig.Return Value
A
Resultcontaining the callback’s JSON representation or anError.
View on GitHub