Adding the AuthProxy Plugin

Use the Cordova command line interface to install the AuthProxy plugin.

Prerequisites
Task
  1. Add the AuthProxy plugin by entering the following at the command prompt, or terminal:

    On Windows:

    cordova -d plugin add <SDK_HOME>\MobileSDK3\KapselSDK\plugins\authproxy

    On Mac:

    cordova -d plugin add ~<SDK_HOME>/MobileSDK3/KapselSDK/plugins/authproxy

    Note: The path you enter to the Kapsel plugin must be the absolute path (not relative path).
  2. (Optional) To see a list of installed plugins in your Cordova project, open a command prompt or terminal window, navigate to your Cordova project folder, and enter:
    cordova plugins
    The Cordova command line interface returns a JSON array showing installed plugins, for example:
    [ 'org.apache.cordova.core.camera',     
    'org.apache.cordova.core.device-motion',     
    'org.apache.cordova.core.file' ] 

    In this example, the Cordova project has the Cordova core Camera, Accelerator (device-motion), and File plugins installed.

  3. Modify the files in the www folder for the project as necessary, then copy them to the platform directories by running:
    cordova -d prepare android
    cordova -d prepare ios 
  4. Use the Android IDE or Xcode to deploy and run the project.
  5. (Optional) For iOS, if the application uses Afaria mutual certificate authentication, or if multiple applications on the devices need to share the credentials, you must first build and deploy Client Hub to the device, and then add the "clienthubEntitlements" and "$(CFBundleIdentifier)" items to the shared keychain groups in the application's project settings in Xcode.
Related concepts
Client Hub
Related tasks
Adding the AppUpdate Plugin
Adding the Logon Plugin
Adding the Logger Plugin
Adding the Push Notification Plugin
Adding the EncryptedStorage Plugin
Adding the Settings Plugin
Creating an Apache Cordova Project
Related reference
Using the Logon Plugin
Setting Up the Development Environment