# Okta authentication

> To authenticate using Okta, you must provide the following credentials:

## Prerequisites

To authenticate using Okta, you must provide the following credentials:

* Okta domain
* Client ID
* Client secret
* Scope

## Retrieve your credentials

:::note
During the OAuth 2.0 App setup process, ensure consistent use of the Authorization Code grant flow.
:::

* **Okta domain:** Locate the domain within your Okta account URL, formatted as `{{domain}}.okta.com` and use the same domain while creating a connection with Okta.
* **Scope:** The scopes are pre-populated for the operations we support in the form of activities. You can read more about Okta’s available
  scopes in their official [OAuth 2.0 Scopes](https://developer.okta.com/docs/api/oauth2/) documentation.
* **Client ID**: This is generated once you have created the OAuth 2.0 App.
* **Client secret**: This is also generated alongside your **Client ID**.
* **Sign-in redirect URIs**: This should always be set to `https://{baseURL}/provisioning_/callback` (for example, `https://cloud.uipath.com/provisioning_/callback` for Automation Cloud) within your OAuth 2.0 App.
* Note:
  You can read about how to create an OAuth 2.0 App here: [Implement OAuth for Okta | Okta Developer](https://developer.okta.com/docs/guides/implement-oauth-for-okta/main/#create-an-oauth-2-0-app-in-okta).

## Add the Okta connection

1. Select Orchestrator from the product launcher.
2. Select a folder, and then navigate to the **Connections** tab.
3. Select **Add connection**.
4. To open the connection creation page, select the connector from the list. You can use the search bar to find the connector.
5. Enter the required credentials and select **Connect**.

   For any secret-type field, you can select the menu next to the field and choose **Use credential asset** to reference an Orchestrator credential asset linked to an external vault instead of entering the value directly. For more information, see [Use credential assets for connections](credential-store-connections.md).
