Excel Add-In for Okta

Build 25.0.9434

Establishing a Connection

Configure a Connection Profile

From the CData ribbon, click Get Data and select From Okta connection/s to launch the CData Query window. To setup a new connection, you will have to click the New Okta Connection button. Here you can set the connection settings, test the connection, and save the connection profile.

Connecting to Okta

To connect to Okta, set this parameter:

Authenticating to Okta

Okta supports OAuth and OAuthJWT authentication.

For a complete list of connection string properties available in Okta, see Connection.

OAuth

To authenticate with OAuth, AuthScheme must be set to OAuth. You must also create a custom OAuth application, as described in Creating a Custom OAuth Application.

Desktop Applications

To connect via a desktop application, you must set and refresh the OAuth access token.

Get and Refresh the OAuth Access Token

After setting the following, you are ready to connect:

  • OAuthClientId: The Key displayed when you created your custom OAuth application.
  • OAuthClientSecret: The Secret displayed when you created your custom OAuth application.
  • CallbackURL: The Callback URL defined when you registered your application. By default, this is set to http://localhost:33333.

When you connect, the add-in opens Okta's OAuth endpoint in your default browser. Log in and grant permissions to the application.

When the access token expires, the add-in refreshes it automatically.

Automatic Refresh of the OAuth Access Token

To have the add-in automatically refresh the OAuth access token:

  1. Before connecting to data for the first time, set these connection parameters:

  2. On subsequent data connections, set:

Manual refresh of the OAuth access token:

The only value needed to manually refresh the OAuth access token is the OAuth refresh token.

  1. To manually refresh the OAuthAccessToken after the ExpiresIn period (returned by GetOAuthAccessToken) has elapsed, call the RefreshOAuthAccessToken stored procedure.
  2. Set these connection properties:

    • OAuthClientId: The Client Id in your custom OAuth application settings.
    • OAuthClientSecret: The Client Secret in your custom OAuth application settings.

  3. Call RefreshOAuthAccessToken with OAuthRefreshToken set to the OAuth refresh token returned by GetOAuthAccessToken.
  4. After the new tokens have been retrieved, set the OAuthAccessToken property to the value returned by RefreshOAuthAccessToken. This opens a new connection.

Store the OAuth refresh token so that you can use it to manually refresh the OAuth access token after it has expired.

OAuth JWT

To authenticate with OAuth JWT, AuthScheme must be set to OAuthJWT. You must also create a custom OAuth application, as described in Creating a Custom OAuth Application.

After setting the following connection properties, you are ready to connect:

Connection Properties

The Connection properties describe the various options that can be used to establish a connection.

Managing Connections

After successfully authenticating to Okta you will be able to customize the data you are importing. To learn more about this, see Managing Connections.

See Also

Copyright (c) 2025 CData Software, Inc. - All rights reserved.
Build 25.0.9434