> For the complete documentation index, see [llms.txt](https://docs.octoxlabs.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.octoxlabs.com/adapters/f/fortify-on-demand.md).

# Fortify on Demand

Fortify on Demand is OpenText's cloud application security testing service. It runs static, dynamic and mobile scans and tracks findings per application release. OctoXLabs reads the tenant's user accounts and adds them to the user inventory.

## Use cases

* List all Fortify on Demand accounts.

```
Adapters = fortify-on-demand
```

* Find Fortify on Demand users that are not in Active Directory.

```
Adapters = fortify-on-demand AND NOT Adapters = active-directory
```

## Before you begin

### Network

| Source              | Destination                                    | Port | Protocol |
| ------------------- | ---------------------------------------------- | ---- | -------- |
| OctoXLabs connector | Fortify on Demand API host of your data center | 443  | HTTPS    |

API hosts by data center: `api.ams.fortify.com` (Americas), `api.emea.fortify.com` (EMEA), `api.apac.fortify.com` (APAC), `api.sgp.fortify.com` (Singapore), `api.fed.fortifygov.com` (FedRAMP).

### Required permissions

| Scope or role            | Permission                                       | Needed for              |
| ------------------------ | ------------------------------------------------ | ----------------------- |
| OAuth scope `api-tenant` | Requested at sign-in                             | Tenant level API access |
| API key role             | Allowed to view users, for example Security Lead | Reading user accounts   |

A Read Only key may not be able to view users.

## Create credentials in Fortify on Demand

{% stepper %}
{% step %}

### Create an API key

In Fortify on Demand, go to **Administration** > **Settings** > **API** > **Add Key**. Set **Authorize app to use API** to **Yes**, and choose a role that can view users, such as Security Lead.
{% endstep %}

{% step %}

### Save the secret

Copy the secret of the key. Fortify on Demand shows it only once, when the key is created.
{% endstep %}
{% endstepper %}

## Connection parameters

| Parameter  | Required | Type             | Default | Description                                       |
| ---------- | -------- | ---------------- | ------- | ------------------------------------------------- |
| Domain     | Yes      | Text             | None    | API host of your data center, without `https://`. |
| API key    | Yes      | Text             | None    | Sent as the OAuth client ID.                      |
| API secret | Yes      | Text (sensitive) | None    | Secret of the same key.                           |
| Proxy      | No       | Text             | Empty   | Proxy in `host:port` form.                        |
| Timeout    | No       | Integer          | 30      | Seconds to wait for API responses.                |

## Troubleshooting

| Error message                                           | Cause                                   | Fix                                                                      |
| ------------------------------------------------------- | --------------------------------------- | ------------------------------------------------------------------------ |
| `Fortify on Demand token response has no access_token.` | The sign-in response had no token.      | Check the API key, secret and that the key is authorized to use the API. |
| `Max retries exceeded for <url>`                        | The API kept answering HTTP 401 or 429. | Check the key and role, then retry later.                                |

## Change history

{% hint style="info" %}
Available starting from version 6.9.1.
{% endhint %}
