OBDX AUTHENTICATOR APPLICATION

This document includes following topics:

1. Authenticator UI (Follow any one step below)

1.1 Using built UI

For Non-OAM - Unzip dist.tar.gz directory from OBDX_Patch_Mobile\authenticator\non-oam

For OAM - Unzip dist.tar.gz directory from OBDX_Patch_Mobile\authenticator\oam

1.2 Building UI manually

  1. Extract authenticator_ui.tar.gz from OBDX_Patch_Mobile\authenticator\unbuilt_ui. The folder structure is as shown:

Mobile App Builder-Android

npm install -g grunt-cli
npm install
node render-requirejs/render-requirejs.js
grunt authenticator --verbose
npm install -g grunt-cli
npm install
node render-requirejs/render-requirejs.js
grunt authenticator --verbose

Mobile App Builder-Android

Mobile App Builder-Android

2. Authenticator Application Workspace Setup

1. Navigate to the workspace_installer and copy Cordova and CordovaLib as in Step 5 of Section OBDX Servicing Application - Create Project.

Mobile App Builder-Android

a. Copy UIClosed User Interface (Directories – components, css, framework, images, pages, resources)from /dist directory to workspace_installer/app/src/main/assets/www/

In case any popup appears, click replace

Mobile App Builder-Android

2. Launch Android Studio and open existing project

Mobile App Builder-Android

3. Open OBDX_Installer/workspace_installer folder in Android Studio.

Mobile App Builder-Android

4. Open gradle.properties file and update following properties with relevant proxy address if required

Mobile App Builder-Android

systemProp.http.proxyHost = <proxy_address>

systemProp.https.proxyPort = <port_number>

systemProp.https.proxyHost = <proxy_address>

systemProp.http.proxyPort = <port_number>

5. Open “assets\app.properties” file and update following properties as per requirement

Mobile App Builder-Android

connection_timeout = <timeout_in_milliseconds>

ssl_pinning_enabled = <YES or NO>

shared_server_url = <server_url>

shared_oam_url = <oam_url>

otp_type = <HOTP or TOTP>

Mobile App Builder-Android

Note: If selected authentication mechanism is not OAM based then remove “shared_oam_url” property.

6. Click Build > Clean & Build > Rebuild project in Android Studio.Delete “assets/www/css” folder.

7. Click on Build > Edit Build Type > app > release

Enable minify > true

Add progurard file from workspace_installer/proguard-rules.pro

Click OK

8. If using http protocol for development add (android:usesCleartextTraffic="true") to application tag of AndroidManifest.xml

Mobile App Builder-Android

The application has config page to add URL. This is for development purpose only and can be removed using below step. (Update content src tag)

Mobile App Builder-Android

9. For Generating Signed Apk: To Generate release-signed apk as follows:

On menu bar click on Build -> Generate Signed Apk

Mobile App Builder-Android

Mobile App Builder-Android

Mobile App Builder-Android

TICK BOTH V1 and V2 for apps equal or above version 7.

Click Finish to generate .apk

 

Back