aboutsummaryrefslogtreecommitdiff
path: root/tardis-new/asdf.tf
diff options
context:
space:
mode:
Diffstat (limited to 'tardis-new/asdf.tf')
-rw-r--r--tardis-new/asdf.tf24
1 files changed, 24 insertions, 0 deletions
diff --git a/tardis-new/asdf.tf b/tardis-new/asdf.tf
new file mode 100644
index 0000000..40bad49
--- /dev/null
+++ b/tardis-new/asdf.tf
@@ -0,0 +1,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
+}