> ## Documentation Index
> Fetch the complete documentation index at: https://docs.getcollate.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Okta implicit flow | Collate Deployment Guide

> Use Okta’s implicit flow for browser-based apps to issue ID tokens directly to the frontend, enabling fast, lightweight user authentication.

# Implicit Flow

### Step 1: Configuring the App

* Once you are in the **Create a new app integration** page, select **OIDC - OpenID Connect**.
* Next, select the **Application type -> Single-Page Application**.
* Once selected, click **Next**.

![configuring-the-app](https://mintcdn.com/collatedocs/ikJXao7nE8Si2b_F/public/images/deployment/security/okta/configuring-the-app.png?fit=max\&auto=format\&n=ikJXao7nE8Si2b_F\&q=85\&s=66203c36694a515a08cd610654f0c8b9)

* From the **General Settings** page,
  * Enter an **App integration name**
  * Select the following in **Grant type**:
    * **Authorization Code**
    * **Refresh Token** - For the refresh token behavior, it is recommended to select the option to 'Rotate token after every use'.
    * **Implicit (hybrid)** - Select the options to allow ID Token and Access Token with implicit grant type.
  * Enter the **Sign-in redirect URIs**
    * `http://localhost:8585/callback`
    * `http://localhost:8585/silent-callback`
  * Enter the **Sign-out redirect URIs**
  * Enter the **Base URIs**
  * Select the required option for **Controlled access**
* Click **Save**.

![general-settings-click-save](https://mintcdn.com/collatedocs/ikJXao7nE8Si2b_F/public/images/deployment/security/okta/general-settings-click-save.png?fit=max\&auto=format\&n=ikJXao7nE8Si2b_F\&q=85\&s=2f3497b11d1958c1e40572a675f72a84)

* The app is now configured.

![app-is-configured](https://mintcdn.com/collatedocs/-DMyLKbnTY6RpJyT/public/images/deployment/security/okta/app-is-configured.png?fit=max\&auto=format\&n=-DMyLKbnTY6RpJyT\&q=85\&s=4e463d5edb1c3cef6748ce3ba5849d66)

### Step 2: Add Authorization Server to get the Issuer URL

#### New Authorization Server

It is recommended to create a separate authorization server for different applications. The authorization server needs an endpoint, which'll be the Issuer URL.

* Click on **Security -> API** in the left navigation panel.

![click-security-api](https://mintcdn.com/collatedocs/ikJXao7nE8Si2b_F/public/images/deployment/security/okta/click-security-api.png?fit=max\&auto=format\&n=ikJXao7nE8Si2b_F\&q=85\&s=60c3865c524b7cea7ba22990a517e987)

* From the **Authorization Servers** tab, click on **Add Authorization Server** button.

![click-add-authorization-server](https://mintcdn.com/collatedocs/-DMyLKbnTY6RpJyT/public/images/deployment/security/okta/click-add-authorization-server.png?fit=max\&auto=format\&n=-DMyLKbnTY6RpJyT\&q=85\&s=c49fd9d0232fe387af06d9e3d11bc2f5)

* Enter a Name and Description.
* While creating the authorization server, an **Audience** must be provided for the server. The Audience is the **Client ID** of the single page application that was created. Refer the next Step 7 to locate the Client ID.
* **Save** the changes.

![add-auth-server-save-changes](https://mintcdn.com/collatedocs/-DMyLKbnTY6RpJyT/public/images/deployment/security/okta/add-auth-server-save-changes.png?fit=max\&auto=format\&n=-DMyLKbnTY6RpJyT\&q=85\&s=4cc345c72609e8fa1f4b6f7a214663b4)

This will generate the Issuer URL.

#### Default Authorization Server (not recommended )

It is recommended to create a separate authorization server for different applications. The authorization server needs an endpoint, which'll be the Issuer URL.

* Click on **Security -> API** in the left navigation panel.

![click-security-api](https://mintcdn.com/collatedocs/ikJXao7nE8Si2b_F/public/images/deployment/security/okta/click-security-api.png?fit=max\&auto=format\&n=ikJXao7nE8Si2b_F\&q=85\&s=60c3865c524b7cea7ba22990a517e987)

* From the **Authorization Servers** tab, click on **default** server.

![default-server](https://mintcdn.com/collatedocs/ikJXao7nE8Si2b_F/public/images/deployment/security/okta/default-server.png?fit=max\&auto=format\&n=ikJXao7nE8Si2b_F\&q=85\&s=6a04f9cc250009dd67cb88bddd995176)

### Step 3: Change the Issuer URL from Dynamic to Okta URL

Once the Authorization Server has been added, navigate to Security >> API >> Authorization Servers and click on the authorization server created in the previous step.

![click-auth-server-from-prev-step](https://mintcdn.com/collatedocs/-DMyLKbnTY6RpJyT/public/images/deployment/security/okta/click-auth-server-from-prev-step.png?fit=max\&auto=format\&n=-DMyLKbnTY6RpJyT\&q=85\&s=749db1fa8984a7fc0d01ded54c8e232a)

The Issuer URL shows up as Dynamic by default. Change the Issuer URL to Okta URL and save the changes.

![change-issuer-url](https://mintcdn.com/collatedocs/-DMyLKbnTY6RpJyT/public/images/deployment/security/okta/change-issuer-url.png?fit=max\&auto=format\&n=-DMyLKbnTY6RpJyT\&q=85\&s=3a381c8abc13b7aac21ee51ca2de36e3)

### Step 4: Create a Default Scope

* To create a default scope from **Security -> API**, click on the required **Authorization Server**.

![click-req-auth-server](https://mintcdn.com/collatedocs/ikJXao7nE8Si2b_F/public/images/deployment/security/okta/click-req-auth-server.png?fit=max\&auto=format\&n=ikJXao7nE8Si2b_F\&q=85\&s=7610af262e8eae8f26d10cae4303d9d0)

* In the resulting page, click on the **Scopes** tab
* Click on **Add Scope**

![add-scope](https://mintcdn.com/collatedocs/-DMyLKbnTY6RpJyT/public/images/deployment/security/okta/add-scope.png?fit=max\&auto=format\&n=-DMyLKbnTY6RpJyT\&q=85\&s=896cebf8d5ba22614efcce0b147147eb)

* Set as a **Default Scope**.

![set-default-scope](https://mintcdn.com/collatedocs/ikJXao7nE8Si2b_F/public/images/deployment/security/okta/set-default-scope.png?fit=max\&auto=format\&n=ikJXao7nE8Si2b_F\&q=85\&s=e5e27cae3e3dfd18ef0fe52355475c0c)

### Step 5: Add New Access Policy and Rule

* From **Security -> API**, click on the required **Authorization Server**
* Navigate to the **Access Policies Tab**
* Click on **Add New Access Policy**

![add-new-access-policy](https://mintcdn.com/collatedocs/-DMyLKbnTY6RpJyT/public/images/deployment/security/okta/add-new-access-policy.png?fit=max\&auto=format\&n=-DMyLKbnTY6RpJyT\&q=85\&s=c20cf9ecead26a2319b845a7561b204f)

* To create a policy, add a Name and Description.
* Assign the policy to the required clients.

![](https://mintcdn.com/collatedocs/-DMyLKbnTY6RpJyT/public/images/deployment/security/okta/assign-policy.png?fit=max\&auto=format\&n=-DMyLKbnTY6RpJyT\&q=85\&s=0aff00243e8ad8428d258485ed00ab18)

* Add a new **Rule** inside the policy as required. Rules can be created with just a few grant type details, such as Client Credentials, Authorization Code, Device Authorization, and Token Exchange.
* Click on **Create Rule** to save the changes.

![add-rule](https://mintcdn.com/collatedocs/-DMyLKbnTY6RpJyT/public/images/deployment/security/okta/add-rule.png?fit=max\&auto=format\&n=-DMyLKbnTY6RpJyT\&q=85\&s=05e7e0d0abea7823a7a1ef739aca834e)

### Step 6: Where to Find the Credentials

* Once the app is configured, the **Client ID** can be used.
* You can also go to **Application -> Application** as in step 2.
* You should be able to see your application in the list.

![see-your-application](https://mintcdn.com/collatedocs/ikJXao7nE8Si2b_F/public/images/deployment/security/okta/see-your-application.png?fit=max\&auto=format\&n=ikJXao7nE8Si2b_F\&q=85\&s=391673cb6684ba9363c33d34cc41d5c0)

* Click on your application.
* You will find your **Client ID** and **Okta domain**.
* The **Client authentication** is enabled by default.
* By clicking on the Edit \*\*\*\* option for General Settings, you can deselect the option for **User consent**. Save the changes.

![deselect-user-consent](https://mintcdn.com/collatedocs/ikJXao7nE8Si2b_F/public/images/deployment/security/okta/deselect-user-consent.png?fit=max\&auto=format\&n=ikJXao7nE8Si2b_F\&q=85\&s=98f8b7d7d8cd3d4f948fac550d78af9f)

* Click on the **Sign On** tab from the top navigation bar.
* Click on Edit for **OpenID Connect ID Token**.
* For **Issuer**, change from the Dynamic (based on request domain) option to the **Okta URL** option.
* The **Audience** is the same as the Client ID.

![click-edit-token](https://mintcdn.com/collatedocs/-DMyLKbnTY6RpJyT/public/images/deployment/security/okta/click-edit-token.png?fit=max\&auto=format\&n=-DMyLKbnTY6RpJyT\&q=85\&s=6d8ea8ac7e5d9307f3942f09db1b3414)

After the applying these steps, you can update the configuration of your deployment:

> [card] [Docker](https://docs.getcollate.io/deployment/security/okta/docker)
>
> Configure Okta SSO for Docker deployment.

> [card] [Kubernetes](https://docs.getcollate.io/deployment/security/okta/kubernetes)
>
> Configure Okta SSO for Kubernetes deployment.

> [card] [Bare Metal](https://docs.getcollate.io/deployment/security/okta/bare-metal)
>
> Configure Okta SSO for Bare Metal deployment.

> [card] [OKTA](https://docs.getcollate.io/deployment/security/okta)
>
> Go to okta Configuration


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.