Skip to content

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.

Warning

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.

Enter Okta Domain

Create an API token

Only needed for the API Key method.

  1. Sign in to your Okta organization as a user with administrator privileges.
  2. In the Admin Console, select Security → API from the menu and then select the Tokens tab.
  3. Click Create Token, name your token, and click Create Token.
  4. 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.

  1. In the Okta Admin Console, go to Applications → Applications → Create App Integration. Pick OIDC - OpenID Connect and Web Application.
  2. Under Grant type, select Authorization Code and Refresh Token. Set the Sign-in redirect URI to https://api.truto.one/connect/okta/callback.
  3. Save the app, then on its Okta API Scopes tab grant the okta.* scopes for the data you need.
  4. On the Assignments tab, assign the users who will connect.
  5. 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 openid and offline_access. See Overriding OAuth credentials.
  6. Copy the app's Client ID and Client Secret.

Connect an Okta account

  1. In Integrated Accounts, click Connect Account. Click Connect Account
  2. 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. Get connection link
  3. 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. Share connection link
  4. Click Get Started if it shows, then select Okta. Select Okta
  5. 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.