Files
kydah-modules/oauth2/outputs.tf
2024-01-24 15:16:23 +01:00

17 lines
582 B
HCL

output "provider-id" {
value = authentik_provider_oauth2.oauth2.id
}
output "sso_configuration_url" {
value = "https://${data.kubernetes_ingress_v1.authentik.spec[0].rule[0].host}/application/o/${var.component}-${var.instance}"
}
output "sso_userinfo" {
value = "https://${data.kubernetes_ingress_v1.authentik.spec[0].rule[0].host}/application/o/userinfo/"
}
output "client_id" {
value = data.kubernetes_secret_v1.oauth2-client-id.spec[0].data["client-id"]
}
output "client_secret" {
value = data.kubernetes_secret_v1.oauth2-client-secret.spec[0].data["client-secret"]
}