Orchestration SDKs

Step 1. Adding core dependencies

PingOne iOS

These dependencies provide core support for social sign-on. These are the minimum required dependencies for using the redirect method to send users to the IdP for authentication.

If you want to use an IdP’s native libraries for an embedded experience you can add additional dependencies and configuration in an optional step later.

You can use Swift Package Manager (SPM) or CocoaPods to add dependencies to your iOS project.

Swift Package Manager

  1. With your project open in Xcode, select File > Add Package Dependencies.

  2. In the search bar, enter the Orchestration SDK for iOS repository URL: https://github.com/ForgeRock/ping-ios-sdk.

  3. Select the ping-ios-sdk package, and then click Add Package.

  4. In the Choose Package Products dialog, ensure that the PingExternalIdp library is added to your target project, as well as the relevant orchestration library, either PingDavinci or PingJourney.

  5. Click Add Package.

  6. In your project, import the relevant dependencies:

    import PingDavinci
    import PingExternalIdp

CocoaPods

  1. If you do not already have CocoaPods, install the latest version.

  2. If you do not already have a Podfile, in a terminal window, run the following command to create a new Podfile:

    pod init
  3. Add the relevant dependencies to your Podfile:

    pod 'PingDavinci'
    pod 'External-idp'
  4. Run the following command to install pods:

    pod install