Document OIDC Auth Method Resource (#467)

* Document OIDC Auth Method Resource

* fixup! Document OIDC Auth Method Resource

---------

Co-authored-by: Jim <jlambert@hashicorp.com>
This commit is contained in:
Mark Christopher WestandJim authored and GitHub committed 2023-10-12 13:29:42 -04:00
1 parent 9d351f8112
commit b06da56d75
3 files changed
+48

No files matched your search

+29
View File
@@ -10,7 +10,28 @@ description: |-
The OIDC auth method resource allows you to configure a Boundary auth_method_oidc.
## Example Usage
```terraform
resource "boundary_scope" "org" {
name = "organization_one"
description = "My first scope!"
scope_id = "global"
auto_create_admin_role = true
auto_create_default_role = true
}
resource "boundary_auth_method_oidc" "vault" {
api_url_prefix = "https://XO-XO-XO-XO-XOXOXO.boundary.hashicorp.cloud:9200"
client_id = "eieio"
client_secret = "hvo_secret_XO"
description = "My Boundary OIDC Auth Method for Vault"
issuer = "https://XO-XO-XO-XO-XOXOXO.vault.hashicorp.cloud:8200/v1/identity/oidc/provider/my-provider"
scope_id = "global"
signing_algorithms = ["RS256"]
type = "oidc"
}
```
<!-- schema generated by tfplugindocs -->
## Schema
@@ -43,3 +64,11 @@ The OIDC auth method resource allows you to configure a Boundary auth_method_oid
### Read-Only
- `id` (String) The ID of the auth method.
## Import
Import is supported using the following syntax:
```shell
terraform import boundary_auth_method_oidc.foo <my-id>
```
@@ -0,0 +1 @@
terraform import boundary_auth_method_oidc.foo <my-id>
@@ -0,0 +1,18 @@
resource "boundary_scope" "org" {
name = "organization_one"
description = "My first scope!"
scope_id = "global"
auto_create_admin_role = true
auto_create_default_role = true
}
resource "boundary_auth_method_oidc" "vault" {
api_url_prefix = "https://XO-XO-XO-XO-XOXOXO.boundary.hashicorp.cloud:9200"
client_id = "eieio"
client_secret = "hvo_secret_XO"
description = "My Boundary OIDC Auth Method for Vault"
issuer = "https://XO-XO-XO-XO-XOXOXO.vault.hashicorp.cloud:8200/v1/identity/oidc/provider/my-provider"
scope_id = "global"
signing_algorithms = ["RS256"]
type = "oidc"
}