Skip to content

Commit

Permalink
Add new configuration document for connection okta
Browse files Browse the repository at this point in the history
  • Loading branch information
omerosaienni committed Sep 10, 2024
1 parent 5f54fe1 commit 7bee2c3
Showing 1 changed file with 41 additions and 0 deletions.
41 changes: 41 additions & 0 deletions docs/reference/config-files/connection/okta.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
---
title: okta
sidebar_label: okta
---

# okta

The `okta` connection can be used to access Okta resources.

```hcl
connection "okta" "my_okta" {
domain = "https://dev-11111111.okta.com"
api_token = "00B..."
}
```

## Arguments

| Name | Type | Required?| Description
|-----------------|---------|----------|-------------------
| `api_token` | String | Optional | API token
| `domain` | String | Optional | URL for your Okta Organization

All arguments are optional, and a `okta` connection with no arguments will behave the same as the [default connection](#default-connection).

## Attributes (Read-Only)

| Attribute | Type | Description
|-----------------|---------|-----------------
| `env` | Map | A map of the resolved connection-related environment variables (`OKTA_CLIENT_TOKEN`, `OKTA_ORGURL`)

## Default Connection

The `okta` connection type includes an implicit, default connection (`connection.okta.default`) that will be configured to set the `api_token` to the `OKTA_CLIENT_TOKEN` environment variable and the `domain` to the `OKTA_ORGURL` environment variable.

```hcl
connection "okta" "default" {
api_token = env("OKTA_CLIENT_TOKEN")
domain = env("OKTA_ORGURL")
}
```

0 comments on commit 7bee2c3

Please sign in to comment.