> For the complete documentation index, see [llms.txt](https://docs.tonic.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.tonic.ai/textual/textual-install-administer/user-access-textual/textual-sso/textual-sso-okta/okta-configuration.md).

# Okta configuration

For Okta, we strongly recommend that you use the Okta PKCE authorization flow.

## Setting up the application in Okta

To enable Okta as your SSO provider for Tonic Textual, you first complete the following configuration steps within Okta:

1. Create a new application. Choose the **OIDC - OpenId Connect** method with the **Single-Page Application** option.

<figure><img src="https://3072847115-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FvOPn7KQptPWmS5iKg5P0%2Fuploads%2F2Jv03DY4LGMeVKxmXFSL%2FOktaNewAppIntegration.png?alt=media&amp;token=427b47bd-f7f1-4bc6-bfa9-8dc4821fe78a" alt=""><figcaption><p>Create a new app integration</p></figcaption></figure>

2. Click **Next**, then fill out the fields with the values below:
   * **App integration name:** The name to use for the Textual application. For example, Textual, Textual-Prod, Textual-Dev.
   * **Grant type:** To use the recommended Okta PKCE authorization flow, under **Core Grant**s, check **Authorization Code** and **Refresh Token**.\
     \
     To instead use the legacy implicit authorization flow, expand **Advanced**, then under **Other grants**, check **Implicit (Hybrid)**.
   * **Sign-in redirect URIs:** For self-hosted instances,  `<base-url>/sso/callback/okta`.\
     \
     For Textual Cloud, on the **Permission Settings** page, the sign-in redirect URL is displayed on the **Single Sign-On** tab. Copy the value from there and paste it into the field.
   * **Base URIs:** The URL to your Textual instance.
   * **Controlled access:** Configure as needed to limit Textual access to the appropriate users.

<figure><img src="https://3072847115-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FvOPn7KQptPWmS5iKg5P0%2Fuploads%2FyofwTF0ySi3W2mFRpwhd%2FOktaGeneralSettings.png?alt=media&amp;token=c2e1f1b2-7211-407d-99dd-5bfa62f107cc" alt=""><figcaption><p>App integration settings</p></figcaption></figure>

3. After saving the above, navigate to the **General Settings** page for the application and make the following changes:
   * **Grant type:** If you are using the recommended Okta PKCE authorization flow, check **Authorization Code** and **Refresh Token**.\
     \
     To instead use the implicit authorization flow, check **Implicit (Hybrid)** and **Allow ID Token with implicit grant type**.
   * **Login initiated by:** **Either Okta or App**
   * **Application visibility:** Check **Display application icon to users**
   * **Initiate login URI:** `<base-url>`

<figure><img src="https://3072847115-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FvOPn7KQptPWmS5iKg5P0%2Fuploads%2FrbFPSfdRVTKa76vxXnyy%2FOktaApplicationLogin.png?alt=media&amp;token=57bd2b60-1b64-4086-b817-b28daafac81e" alt=""><figcaption><p>Application settings</p></figcaption></figure>

<figure><img src="https://3072847115-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FvOPn7KQptPWmS5iKg5P0%2Fuploads%2Ftkzus47T88z2AILC7XcJ%2FOktaLoginSettings.png?alt=media&amp;token=4945e512-b598-4ee7-97d8-cd757f983dc5" alt=""><figcaption><p>Login settings</p></figcaption></figure>

## Getting the required values for the Textual configuration

When you enable SSO in Textual, you must provide values from the configuration in Okta.

In Okta, make a note of the following values that must be provided to Textual:

* **Application client ID:**

  ![](https://3072847115-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FvOPn7KQptPWmS5iKg5P0%2Fuploads%2Fkj3p1Db8CDPnsbQZnG45%2FOktaClientIDHighlighted.png?alt=media\&token=b6ba616b-034f-460e-9e37-6f6981079c6b)
* **Your Okta domain** (for example, `tonic.okta.com`). [How to get your Okta domain](https://developer.okta.com/docs/guides/find-your-domain/main/#find-your-okta-domain).&#x20;
* **Server ID** (If you created a custom authorization server for Textual):

  ![](https://3072847115-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FvOPn7KQptPWmS5iKg5P0%2Fuploads%2F6HKUFAFNH3epvA1XVQHK%2FOktaAuthServerIDHighlighted.png?alt=media\&token=c37f340d-4f97-4000-ac29-d67d19bc433e)
* **IdP ID** (If you use an outside identity provider):

  ![](https://3072847115-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FvOPn7KQptPWmS5iKg5P0%2Fuploads%2FTxXuzGirI3PtSwnUvoxX%2FOktaIdPIDHighlighted.png?alt=media\&token=68bdb1cc-1c64-40ca-ae74-2786619779e8)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.tonic.ai/textual/textual-install-administer/user-access-textual/textual-sso/textual-sso-okta/okta-configuration.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
