terraform { required_providers { authentik = { source = "goauthentik/authentik" version = "2023.8.0" } } } provider "authentik" { url = "http://localhost:9000" token = "pzWOnE9J6OOyVLqFYzeiQRV0CV4zhN7dqcmzuA8Da3x9Xywch4tHp2DrfLSs" } resource "authentik_provider_oauth2" "name" { name = "grafana" client_id = "grafana" authorization_flow = "60ee931d-8266-4b40-8b3b-3f1f4ed77e17" } output "grafana_client_secret" { value = authentik_provider_oauth2.name.client_secret sensitive = true }