Prerequisites

Your app must be associated with your website to use Passkeys. This requires proper configuration of Associated Domains and .well-known files. Complete the enablement of passkeys for native apps.

OwnID SDK Setup

Minimum requirements:

  • iOS 14.0+ deployment target
  • Swift 5.1 or later

Installation

# Add to your Podfile
pod 'ownid-core-ios-sdk'

# Then run
pod install

OwnID Configuration

Create a config file OwnIDConfiguration.plist in the root of your Xcode project:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
    <key>OwnIDAppID</key>
    <string>your-app-id</string>
</dict>
</plist>

Environment Configuration

OwnID supports multiple environments: production (default) and uat. To use uat environment add the env parameter:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
    <key>OwnIDAppID</key>
    <string>your-app-id</string>
    <key>OwnIDEnv</key>
    <string>uat</string>
    <true/>
</dict>
</plist>

Initialize the SDK

import OwnIDCoreSDK

@main
struct YourApp: App {
    init() {
        // will be used in the user agent string
        let info: OwnID.CoreSDK.SDKInformation = (
            name: "<YourAppName>",
            version: "<YourAppVersion>"
        )
        OwnID.CoreSDK.configure(userFacingSDK: info)
    }
    
    var body: some Scene {
        WindowGroup {
            ContentView()
        }
    }
}

Integration Options

Choose between two different integration paths based on your needs: OwnID Elite and OwnID Boost. Each path offers unique capabilities:

Was this page helpful?