vault_identity_oidc_client

Manages OIDC Clients in a Vault server. See the Vault documentation for more information.

Example Usage

resource "vault_identity_oidc_assignment" "test" {
  name       = "my-assignment"
  entity_ids = ["ascbascas-2231a-sdfaa"]
  group_ids  = ["sajkdsad-32414-sfsada"]
}


resource "vault_identity_oidc_client" "test" {
  name          = "my-app"
  redirect_uris = [
    "http://127.0.0.1:9200/v1/auth-methods/oidc:authenticate:callback",
    "http://127.0.0.1:8251/callback",
    "http://127.0.0.1:8080/callback"
  ]
  assignments = [
    vault_identity_oidc_assignment.test.name
  ]
  id_token_ttl     = 2400
  access_token_ttl = 7200
}

Argument Reference

The following arguments are supported:

Attributes Reference

In addition to the arguments above, the following attributes are exported:

Import

OIDC Clients can be imported using the name, e.g.

$ terraform import vault_identity_oidc_client.test my-app