Initiating Mobile App Scans or Rescans with OneTrust Integrations
You can leverage the Mobile App Scan workflow on Integrations to create new mobile apps with an initial scan or to rescan existing apps against a new SDK package. This allows your developers to remotely integrate app scans in to their application development process as well as to provide the means to scan/rescan apps without logging into the OneTrust application after initial setup.
This documentation will reference the Postman developer tool to demonstrate the API integration to support creation of a new app with scanning or a rescan of an existing app.
To create the integration workflow
To obtain the POST URL
To create an OAuth 2.0 Client Credential
You will need to create an OAuth 2.0 Client Credential to authorize the API calls' access to the OneTrust application. This information will need to be provided when configuring the API calls' authentication requirements.
API Reference Overview
Authorization Requirements
-
OAuth 2.0 auth type, with added authorization data to Request Headers
-
Client Credential Grant Type
-
Access Token URL (e.g. https://staging.1trust.app/api/access/v1/oauth/token)
-
Client ID and Client Secret
-
Client Authentication, sent as Basic Auth header
-
Access Token, generated by provision of the above requirements
Header Requirements
-
Enabled key-value pair,
Content-Type | application/json
Body Requirements
-
Enabled
form-data -
Enabled key-value pair,
file | .ipa/.apk file -
Enabled key-value pair,
dataFields | applicable JSON(see below sections for each use case)