-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add new configuration document for connection okta
- Loading branch information
1 parent
5f54fe1
commit 7bee2c3
Showing
1 changed file
with
41 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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") | ||
} | ||
``` |