Data Source: tfe_oauth_client

Use this data source to get information about an OAuth client.

Example Usage

Finding an OAuth client by its ID

data "tfe_oauth_client" "client" {
  oauth_client_id = "oc-XXXXXXX"
}

Finding an OAuth client by its name

data "tfe_oauth_client" "client" {
  organization = "my-org"
  name         = "my-oauth-client"
}

Finding an OAuth client by its service provider

data "tfe_oauth_client" "client" {
  organization     = "my-org"
  service_provider = "github"
}

Argument Reference

The following arguments are supported. At least one of name, oauth_client_id, or service_provider must be set. name and service_provider may be used together. If either name or service_provider is set, organization must also be set.

Attributes Reference

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