mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-09-22 13:39:35 +00:00
102 lines
3.8 KiB
Plaintext
102 lines
3.8 KiB
Plaintext
---
|
|
title: "Okta Connection"
|
|
description: "Learn how to configure an Okta Connection for Infisical."
|
|
---
|
|
|
|
Infisical supports the use of [API Tokens](https://developer.okta.com/docs/guides/create-an-api-token/main/) to connect with Okta.
|
|
|
|
## Create Okta API Token
|
|
|
|
<Steps>
|
|
<Step title="Create API Token">
|
|
From the Okta admin dashboard, navigate to **Security > API > Tokens** and click **Create token**.
|
|
|
|

|
|
</Step>
|
|
<Step title="Provide Info">
|
|
Enter the token name and select **Any IP** for the second dropdown, then click **Create token**.
|
|
|
|

|
|
</Step>
|
|
<Step title="Copy Token">
|
|
Copy the token from the modal for later steps.
|
|
|
|

|
|
</Step>
|
|
</Steps>
|
|
|
|
## Create Okta Connection in Infisical
|
|
|
|
<Tabs>
|
|
<Tab title="Infisical UI">
|
|
<Steps>
|
|
<Step title="Navigate to App Connections">
|
|
In your Infisical dashboard, navigate to the **App Connections** page in the desired project.
|
|
|
|

|
|
</Step>
|
|
<Step title="Select Okta Connection">
|
|
Click the **Add Connection** button and select **Okta** from the list of available connections.
|
|
</Step>
|
|
<Step title="Fill out Connection Modal">
|
|
Complete the Okta Connection form by entering:
|
|
- A descriptive name for the connection
|
|
- An optional description for future reference
|
|
- Your Okta instance URL
|
|
- The API Token from earlier steps
|
|
|
|

|
|
</Step>
|
|
<Step title="Connection Created">
|
|
After clicking Create, your **Okta Connection** is established and ready to use with your Infisical project.
|
|
|
|

|
|
</Step>
|
|
</Steps>
|
|
</Tab>
|
|
<Tab title="API">
|
|
To create a Okta Connection, make an API request to the [Create Okta Connection](/api-reference/endpoints/app-connections/okta/create) API endpoint.
|
|
|
|
### Sample request
|
|
|
|
```bash Request
|
|
curl --request POST \
|
|
--url https://app.infisical.com/api/v1/app-connections/okta \
|
|
--header 'Content-Type: application/json' \
|
|
--data '{
|
|
"name": "my-okta-connection",
|
|
"method": "api-token",
|
|
"projectId": "7ffbb072-2575-495a-b5b0-127f88caef78",
|
|
"credentials": {
|
|
"instanceUrl": "https://example.okta.com",
|
|
"apiToken": "<YOUR-API-TOKEN>"
|
|
}
|
|
}'
|
|
```
|
|
|
|
### Sample response
|
|
|
|
```bash Response
|
|
{
|
|
"appConnection": {
|
|
"id": "e5d18aca-86f7-4026-a95e-efb8aeb0d8e6",
|
|
"name": "my-okta-connection",
|
|
"projectId": "7ffbb072-2575-495a-b5b0-127f88caef78",
|
|
"description": null,
|
|
"version": 1,
|
|
"orgId": "6f03caa1-a5de-43ce-b127-95a145d3464c",
|
|
"createdAt": "2025-04-23T19:46:34.831Z",
|
|
"updatedAt": "2025-04-23T19:46:34.831Z",
|
|
"isPlatformManagedCredentials": false,
|
|
"credentialsHash": "7c2d371dec195f82a6a0d5b41c970a229cfcaf88e894a5b6395e2dbd0280661f",
|
|
"app": "okta",
|
|
"method": "api-token",
|
|
"credentials": {
|
|
"instanceUrl": "https://example.okta.com"
|
|
}
|
|
}
|
|
}
|
|
```
|
|
</Tab>
|
|
</Tabs>
|