# Set Up Okta (OIDC)

This page creates the app in Okta that iKanban signs in through. You need admin access to your Okta org. For another provider, use the values in [Company Sign-In: SSO, OIDC and SAML](/docs/company-sign-in/overview).

## 1. Create an app integration

In the Okta admin console, go to **Applications → Applications** and select **Create App Integration**.

![Okta's Create app integration dialog with the four sign-in methods](/docs/images/company-sign-in/okta-create-app-integration.webp)

## 2. Choose OIDC, then Web Application

Choose **OIDC - OpenID Connect**. For SAML, follow [Set up Okta (SAML)](/docs/company-sign-in/okta-saml) instead.

![OIDC chosen as the sign-in method](/docs/images/company-sign-in/okta-choose-oidc.webp)

Then choose **Web Application** and select **Next**. iKanban's identity service keeps the client secret on the server, so the app is a web application.

![Web Application chosen as the application type](/docs/images/company-sign-in/okta-web-application.webp)

## 3. Name the app

Give the app a name your staff will recognise, such as "iKanban". Keep **Use Okta-generated client ID**, and keep **Authorization Code** as the only grant type.

![App name, client definition and grant type](/docs/images/company-sign-in/okta-app-name.webp)

## 4. Set the redirect URI

Okta fills in two `http://localhost:8080` addresses. Remove both.

![Okta's default localhost redirect addresses](/docs/images/company-sign-in/okta-default-redirects.webp)

Set **Sign-in redirect URIs** to `https://auth.i-kanban.com/oauth2/idpresponse`. Leave **Sign-out redirect URIs** empty. Under **Assignments**, choose who may use the app, then select **Save**.

![The iKanban redirect URI in the Sign-in redirect URIs field](/docs/images/company-sign-in/okta-redirect-uri.webp)

## 5. Assign people

Open the app's **Assignments** tab and select **Assign → Assign to People** (or **Assign to Groups**). Assign a test user first, and the rest of your staff after the test sign-in works.

![The Assign to People dialog](/docs/images/company-sign-in/okta-assign-people.webp)

![The test user shows Assigned](/docs/images/company-sign-in/okta-test-user-assigned.webp)

## 6. Send the secret in the request body

iKanban's identity service accepts only `client_secret_post`: the client secret goes in the body of the token request. A new Okta web app uses `client_secret_basic`, and the Okta admin console does not offer the choice. Change it once with Okta's Apps API:

1. `GET /api/v1/apps/{appId}` returns the app.
2. In that JSON, set `credentials.oauthClient.token_endpoint_auth_method` to `client_secret_post`.
3. `PUT /api/v1/apps/{appId}` with the same JSON.

The client secret does not change. The identity service is Amazon Cognito, and AWS documents that it does not support `client_secret_basic`.

## 7. Keep the client ID and secret

The app's **General** tab shows the **Client ID** and the **Client Secret**. You paste them into iKanban in the next page. Do not send the secret by chat or email.

Your Okta **issuer** is your org's address, `https://<your-org>.okta.com`. Do not use the admin console address, which has `-admin` in it.

## Next

[Prove your domain and connect](/docs/company-sign-in/prove-domain-and-connect).
