|
| 1 | +--- |
| 2 | +title: "Okta Setup" |
| 3 | +bookCollapseSection: false |
| 4 | +weight: 300 |
| 5 | +summary: "Step-by-step guide for configuring Single Sign-On (SSO) with Okta for your Kosli organization." |
| 6 | +--- |
| 7 | + |
| 8 | +# Okta Setup for SSO |
| 9 | + |
| 10 | +For Single Sign-On (SSO) integration between Okta and Kosli, you can choose and follow the steps outlined in one of the two methods provided below: |
| 11 | + |
| 12 | +- [Create a new App integration](#create-a-new-app-integration) |
| 13 | +- [Update or Rotate the Client Secret](#update-or-rotate-the-client-secret) |
| 14 | + |
| 15 | +## Prerequisites |
| 16 | + |
| 17 | +To begin the setup process, ensure that you: |
| 18 | + |
| 19 | +- Are logged into the Okta Admin Console at https://admin.okta.com/ |
| 20 | +- Possess the necessary permissions to create a new application within Okta. |
| 21 | + |
| 22 | +## Create a new App integration |
| 23 | + |
| 24 | +### 1. Create the App Integration |
| 25 | +Follow the official Okta documentation to create a new OIDC app integration, with the following settings: |
| 26 | + |
| 27 | +- **Application type:** Web Application |
| 28 | +- **Sign-in redirect URIs:** https://api.userfront.com/v0/auth/okta/login |
| 29 | + |
| 30 | +### 2. Create a Client Secret |
| 31 | + |
| 32 | +Follow the official Okta documentation to create a Client Secret for your newly created app integration. |
| 33 | + |
| 34 | +## 3. Share details with Kosli Securely |
| 35 | +Please share details below securely in order for Kosli to complete SSO setup.<br> |
| 36 | + |
| 37 | +``` |
| 38 | +Okta client ID: abcdefghijklmnopqrst |
| 39 | +Okta domain: mycompany.okta.com |
| 40 | +Client Secret: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx |
| 41 | +Client Secret Expiration Date: 1999-12-31 (format: yyyy-mm-dd) |
| 42 | +``` |
| 43 | +See [Sharing Secrets Securely with Kosli]({{< relref "sharing_secrets_securely" >}}). |
| 44 | + |
| 45 | +## Update or Rotate the Client Secret |
| 46 | + |
| 47 | +To prevent downtime, we advise rotating your secrets safely and well in advance of their expiration date. This allows us to manage the update process smoothly. |
| 48 | + |
| 49 | +### 1. Create a New Client Secret |
| 50 | + |
| 51 | +Follow the official Okta documentation to create a new Client Secret for your existing app integration. |
| 52 | + |
| 53 | +### 2. Share new Client Secret with Kosli Securely |
| 54 | +Please share the new Client Secret securely with Kosli. |
| 55 | + |
| 56 | +``` |
| 57 | +Client Secret: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx |
| 58 | +Client Secret Expiration Date: 1999-12-31 (format: yyyy-mm-dd) |
| 59 | +``` |
| 60 | + |
| 61 | +See [Sharing Secrets Securely with Kosli]({{< relref "sharing_secrets_securely" >}}). |
| 62 | + |
| 63 | +## Troubleshooting |
| 64 | + |
| 65 | +Once Kosli have confirmed the SSO setup, once you log in to Kosli, you should be redirected to the Okta login page. |
| 66 | + |
| 67 | +### Common Issues |
| 68 | + |
| 69 | +#### Problem: Unable to log in via SSO |
| 70 | + |
| 71 | +Check the following common issues: |
| 72 | + |
| 73 | +- **Wrong Redirect URI** |
| 74 | + - Ensure that the Redirect URI in your Okta app integration matches `https://api.userfront.com/v0/auth/okta/login`. |
| 75 | +- **Invalid Client ID or Client Secret** |
| 76 | + - Verify that the values provided to Kosli are correct and correspond to those in your Okta app integration. |
| 77 | +- **Expired Client Secret** |
| 78 | + - Ensure that the Client Secret provided to Kosli is still valid and has not expired. |
| 79 | + - If it has expired, follow the [Update or Rotate the Client Secret]({{< ref "#update-or-rotate-the-client-secret" >}}) steps to create a new client. |
| 80 | + |
| 81 | +## References |
| 82 | + |
| 83 | +### Okta Documentation |
| 84 | + |
| 85 | +- [Create OpenID Connect app integrations](https://help.okta.com/en-us/content/topics/apps/apps_app_integration_wizard_oidc.htm) |
| 86 | +- [Manage secrets and keys for OIDC app client authentication](https://help.okta.com/oie/en-us/content/topics/apps/oauth-client-cred-mgmt.htm) |
0 commit comments