Lists 3-legged OAuth credential providers registered in StackGen Vault. OAuth client_id and client_secret are never returned.
# When to use: Inventory OAuth credential providers before wiring integrations.
# client_id / client_secret are never returned.
data "sg_credential_providers" "all" {}
output "credential_provider_names" {
value = [for p in data.sg_credential_providers.all.credential_providers : p.name]
}
Listed providers never include OAuth client secrets. Secure Terraform state and plans before exporting inventory.
name (String) Optional exact name filter.credential_providers (Attributes List) Credential providers visible to the caller. OAuth client secrets are never returned. (see below for nested schema)credential_providersRead-Only:
auth_url (String) OAuth authorization endpoint URL.extra_token_keys (List of String) Extra token keys to extract.id (String) Server-assigned identifier.name (String) Credential provider name.scopes (List of String) Default OAuth scopes.subcategory (String) Secret subcategory (e.g. github, aws, anthropic).token_url (String) OAuth token endpoint URL.