Okta
Okta connects with an API token from an Okta admin, or with OAuth 2.0 through an app the person connecting creates in their own Okta org. Both ask for the org's Okta domain.
API key: the token has the permissions of the admin who creates it and expires after 30 days without use, so create it from a dedicated admin account. OAuth 2.0: a Super Admin creates the app and grants its scopes.
Install the Okta integration
Install Okta from Available integrations in each environment you connect accounts from.
Find your Okta domain
Both methods ask for the Okta Domain. Click your username in the top-right corner of the Admin Console and copy the domain shown, for example acme.okta.com, not acme-admin.okta.com.

Create an API token
Only needed for the API Key method.
- Sign in to your Okta organization as a user with administrator privileges.
- In the Admin Console, select Security → API from the menu and then select the Tokens tab.
- Click Create Token, name your token, and click Create Token.
- Copy the token.
Create an Okta OAuth app
Only needed for the OAuth 2.0 method. The person connecting creates the app in their own Okta organization and enters its credentials on the connect form.
- In the Okta Admin Console, go to Applications → Applications → Create App Integration. Pick OIDC - OpenID Connect and Web Application.
- Under Grant type, select Authorization Code and Refresh Token. Set the Sign-in redirect URI to
https://api.truto.one/connect/okta/callback. - Save the app, then on its Okta API Scopes tab grant the
okta.*scopes for the data you need. - On the Assignments tab, assign the users who will connect.
- Truto asks for every scope in the integration's Scopes list when the user signs in, and again each time it refreshes the token. Okta refuses a refresh that asks for a scope the app wasn't granted, and the account then needs reauthorization. So grant the app every scope in that list, or, before anyone connects, set Scopes on the installed Okta integration to exactly the scopes you granted, keeping
openidandoffline_access. See Overriding OAuth credentials. - Copy the app's Client ID and Client Secret.
Connect an Okta account
- In Integrated Accounts, click Connect Account.

- Enter a Tenant ID (your customer's ID; Truto creates the tenant if it is new), or pick one under Existing tenant (optional). Check the Environment and the Region (where Truto places the account; Western North America by default). To open the link straight on Okta, pick it under Advanced settings → Integration (optional). Click Get connection link.

- Click the open-in-new-tab button, or click Copy and send the link to your customer so they connect their own Okta account. The link works for 7 days, until an account is connected with it.

- Click Get Started if it shows, then select Okta.

- Pick an authentication method: API Key, OAuth 2.0. Each one is described below.
Connect with an API key
Fill in the form and click Connect:
| Field | Required | What to enter |
|---|---|---|
| Okta Domain | Yes | Your Okta domain, for example acme.okta.com. See Find your Okta domain. |
| API Key | Yes | The API token. See Create an API token. |
Connect with OAuth 2.0
Fill in the form and click Connect, then sign in to Okta and allow access:
| Field | Required | What to enter |
|---|---|---|
| Okta Domain | Yes | Your Okta domain, for example acme.okta.com. |
| Client ID | Yes | The OAuth app's Client ID. See Create an Okta OAuth app. |
| Client Secret | Yes | The OAuth app's Client Secret. |
Close the tab when you see Connection successful. The new account appears under Integrated Accounts. Click its Account ID to see its details and make API calls.