Looks up a 3-legged OAuth Credential Provider by name across the tenant and organization boundaries. This is useful in a layered GitOps deployment where the tenant boundary creates the global app registration (the sg_credential_provider resource), and the organization boundary looks it up via this data source to wire into sg_guild_integration.
data "sg_credential_provider" "github_org" {
name = "github-org-app"
}
output "credential_provider_id" {
value = data.sg_credential_provider.github_org.id
}
Returned OAuth configuration can be sensitive. Secure Terraform state and plans.
name (String) Name of the credential provider.auth_url (String) OAuth authorization endpoint URL.extra_token_keys (List of String) Extra token keys to extract.id (String) Server-assigned identifier.scopes (List of String) Default OAuth scopes.subcategory (String) Secret subcategory (e.g. github, aws, anthropic).token_url (String) OAuth token endpoint URL.