Skip to main content

Okta Data Source

The Okta Data Source allows you to expose your Okta users, groups, roles, and applications to Styra DAS as a Data Source.

Creating or Configuring the Data Source through the Styra DAS UI

Prerequisites:

Before you configure Styra DAS, configure Okta and have the following information accessible:

  • In your Okta tenant under Settings > Features > Early Access, enable API Service Integrations
  • On the Styra DAS Okta integration page, install and authorize Styra DAS Okta integration and copy your client secret, which is used in the following procedure.
  • Okta Client ID
  • Okta Domain (used to configure Okta tenant)

Create or configure the Data Source through the Styra DAS UI.

  1. Login to the Styra DAS UI.
  2. Select the System to add the Data Source.
  3. Click the kebab icon (three dots ⋮) to the right of the System and select Add Data Source. The Add Data Source dialog box appears.
  4. Select Okta.
  5. In Path type a new or existing path separated by /. For example, datasourcetypes.
  6. In Data Source name (required) type the name for the Data Source.
  7. (Optional) Type in a Description.
  8. In Client ID (required) type the Client ID.
  9. In Client secret (required) type the Client Secret.
  10. In Okta tenant (required) type the path to the Okta tenant.
  11. In Okta data type, select at least one Okta data type from the following options:
    • Users
    • Groups
    • Roles
    • Applications
  12. In Refresh interval type a refresh interval which is the amount of time between polling intervals. Default is s.
  13. Click the arrow to expand the Advanced field.
  14. In Data transform specify a policy and write a query that allows you to apply Rego transformations before it is persisted as data. For example, Select Custom and fill in the following fields:
    • In Policy type an existing policy separated by /. For example, transform/transform.rego.
    • In Rego query type the Rego rule to evaluate. For example, data.transform.query.
  15. Leave the Enable on-premises data source agent switch off. Enable on-premises data source agent shows how and where to run the data source. If set to true then datasource-agent will run on-premises setup.
  16. Preview the Data Source in the right pane. If the data is over 1 MB, the Preview will display an error.
  17. Click Add.