Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
92 changes: 92 additions & 0 deletions docs/resources/auth_profile.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,92 @@
---
# generated by https://github.com/hashicorp/terraform-plugin-docs
page_title: "zedcloud_auth_profile Resource - terraform-provider-zedcloud"
subcategory: ""
description: |-

---

# zedcloud_auth_profile (Resource)





<!-- schema generated by tfplugindocs -->
## Schema

### Required

- `default_role_id` (String) Default Role ID to associate with the profile
- `name` (String) User defined name of the profile. Profile name is unique within an enterprise. Name can't be changed once created
- `title` (String) User defined title for the profile. Title can be changed anytime

### Optional

- `active` (Boolean) Mark this profile as active. Only one profile can be active in a given enterprise
- `description` (String) Detailed description of the profile
- `disable_auto_user_create` (Boolean) Do not automatically create new users if this is set
- `enterprise_id` (String) Parent enterprise ID of the authorization profile
- `oauth_profile` (Block List) Oauth profile configuration details (see [below for nested schema](#nestedblock--oauth_profile))
- `password_profile` (Block List) (see [below for nested schema](#nestedblock--password_profile))
- `profile_type` (String) Authorization profile type
- `test_only` (Boolean)
- `type` (String) Type of the profile

### Read-Only

- `id` (String) Unique system defined profile ID
- `revision` (List of Object) system defined info (see [below for nested schema](#nestedatt--revision))

<a id="nestedblock--oauth_profile"></a>
### Nested Schema for `oauth_profile`

Optional:

- `additional_parameters` (String) pass additional url parameters during the exchange and authorization process
- `client_id` (String) OAUTH client ID
- `client_secret` (String) OAUTH client secret
- `crypto_key` (String)
- `encrypted_secrets` (Map of String)
- `idp_id` (String) id for Vmware IDP
- `jwt_auth_profile` (Block List) Config for JWT based authentication, jwks_uri is derived from OIDC Well Known Endpoints (see [below for nested schema](#nestedblock--oauth_profile--jwt_auth_profile))
- `o_id_c_end_point` (String) OIDC endpoint for oauth validation
- `role_scope` (String) OIDC scope to fetch application role

<a id="nestedblock--oauth_profile--jwt_auth_profile"></a>
### Nested Schema for `oauth_profile.jwt_auth_profile`

Optional:

- `alg` (String) Algorithm for JWT signature verification



<a id="nestedblock--password_profile"></a>
### Nested Schema for `password_profile`

Optional:

- `max_length` (Number)
- `max_password_age` (Number)
- `min_length` (Number)
- `min_lowercase_chars` (Number)
- `min_numeric_chars` (Number)
- `min_password_age` (Number)
- `min_symbol_chars` (Number)
- `min_uppercase_chars` (Number)
- `num_prev_password_check` (Number)
- `password_expiry_notification_period_in_seconds` (Number)


<a id="nestedatt--revision"></a>
### Nested Schema for `revision`

Read-Only:

- `created_at` (String)
- `created_by` (String)
- `curr` (String)
- `prev` (String)
- `updated_at` (String)
- `updated_by` (String)
23 changes: 23 additions & 0 deletions main.tf.example
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,29 @@ terraform {
}
}

resource "zedcloud_role" "test_tf_provider" {
name = "test_tf_provider"
title = "test_tf_provider"
type = "USER_ROLE_USER_DEFINED"
state = "ROLE_STATE_ACTIVE"
scopes {
enterprise_filter = []
project_filter = []
}
}

resource "zedcloud_auth_profile" "test_tf_provider" {
depends_on = [zedcloud_role.test_tf_provider]
name = "test_tf_provider"
title = "test_tf_provider"
default_role_id = zedcloud_role.test_tf_provider.id
oauth_profile {
o_id_c_end_point = "https://example.com/api/v1/oauth2/token"
client_id = "client_id"
client_secret = "client_secret"
}
}

resource "zedcloud_project" "test_tf_provider" {
# required
name = "test_tf_provider"
Expand Down
Loading