Update the SDK for the Sample Mobile Application

You update the sample application code to make it use the Oracle Identity Cloud Service SDK for iOS Applications.

  1. In Xcode, open the [SAMPLE_APP_FOLDER]/IDCSSample/IDCSSample/ViewControllers/LoginViewController.swift file, and update the following parameters:
    • OM_PROP_OPENID_CONNECT_CONFIGURATION_URL: Enter the configuration URL of your Oracle Identity Cloud Service.
    • OM_PROP_OAUTH_CLIENT_ID: Enter the Client ID of the application that you registered.

    In the following example, replace MYTENANT with the name of your Oracle Identity Cloud Service tenant.

    func setupMSS() -> Bool {
    	...
    	config![OM_PROP_OPENID_CONNECT_CONFIGURATION_URL] = "https://MYTENANT.identity.oraclecloud.com/.well-known/idcs-configuration"
    	config![OM_PROP_OAUTH_CLIENT_ID] = "SDK_MOBILE_APP_CLIENT_ID"
    	...
    }
  2. Save the file.