Step 1. Installing dependencies
PingOne iOS
To capture contextual data and perform risk evaluations, you must add the PingOne Protect module to your DaVinci Client project.
You can use CocoaPods or the Swift Package Manager to add the PingOne Protect dependencies to your iOS project.
Add dependencies using CocoaPods
-
If you do not already have CocoaPods, install the latest version.
-
If you do not already have a Podfile, in a terminal window, run the following command to create a new Podfile:
pod init -
Add the following lines to your Podfile:
pod 'PingOneProtect' // Add-on for PingOne Protect -
Run the following command to install pods:
pod install
Add dependencies using Swift Package Manager
-
With your project open in Xcode, select File > Add Package Dependencies.
-
In the search bar, enter the DaVinci Client for iOS repository URL:
https://github.com/ForgeRock/ping-ios-sdk. -
Select the
ping-ios-sdkpackage, and then click Add Package. -
In the Choose Package Products dialog, ensure that the
PingProtectlibrary is added to your target project. -
Click Add Package.
-
In your project, import the library:
// Import the PingOne Protect library import PingProtect
After installing the module, you can proceed to Step 2. Integrating PingOne Protect DaVinci flows in iOS.