Android SDK configuration

Configure the following settings in your manifest file for added security.

  • ENFORCE_LOCK

    When enabled, this value requires users to set a pattern, password, or PIN as a screen lock on their device. If they do not set a screen lock, the current account information will be invalidated and they will not be able to enroll a new account until they set a screen lock.

  • CLIENT_ID

    Add the client ID so SecureAuth Identity Platform recognizes that the OAuth request is from your application.

  • SHARED_KEY

    For 20.06 Beta customers only: Add this value to use the existing shared key from your Beta installation.

  1. Open your application manifest file.

  2. Declare the metadata. (See the descriptions above.)

    <!-- Declare this metadata configuration on your application manifest -->
    <application>
      <!-- ENFORCE_LOCK invalidates accounts if a screen lock is not set on the device -->
      <meta-data android:name="com.secureauth.sdk.ENFORCE_LOCK" android:value="false" />
      <meta-data android:name="com.secureauth.sdk.CLIENT_ID" android:value="clientID" />
       
    <!-- Only implemented for 20.06 Beta customers with existing shared keys -->
    <!-- <meta-data android:name="com.secureauth.sdk.SHARED_KEY" android:value="sharedKey" /> -->
    </application>

    where:

    clientID is the client ID generated with assistance from SecureAuth Support, and must be passed as an initialization parameter to the SecureAuth object for use.

Next steps

Account enrollment