aboutsummaryrefslogtreecommitdiff
path: root/tardis-new/asdf.tf
blob: 40bad49632f647c54d03d6d812108abfab7eae24 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
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
}