No more sercretString dans oauth2

This commit is contained in:
2024-05-17 16:10:54 +02:00
parent 1c42b356c1
commit 8e883d012e
7 changed files with 88 additions and 33 deletions

View File

@@ -18,14 +18,14 @@ output "sso_token_url" {
value = "https://${data.kubernetes_ingress_v1.authentik.spec[0].rule[0].host}/application/o/token/"
}
output "client_id" {
value = data.kubernetes_secret_v1.oauth2-client-id.data["client-id"]
value = random_password.client_id.result
}
output "client_secret" {
value = data.kubernetes_secret_v1.oauth2-client-secret.data["client-secret"]
value = authentik_provider_oauth2.oauth2.client_secret
}
output "secret_client_id_name" {
value = kubectl_manifest.oauth2-secret.name
value = kubernetes_secret_v1.oauth2-client-secret.metadata[0].name
}
output "secret_client_secret_name" {
value = kubernetes_secret_v1.oauth2-client-secret.metadata[0].name