Files
kydah-modules/oauth2/outputs.tf
Xavier Mortelette e8d1c4e86a Reafacto OAuth2
Add roles mappings
Remove legacy groups
2025-01-06 18:14:31 +01:00

37 lines
1.0 KiB
HCL

output "provider_id" {
value = authentik_provider_oauth2.oauth2.id
}
output "sso_signout_url" {
value = "https://${data.kubernetes_ingress_v1.authentik.spec[0].rule[0].host}/application/o/${var.component}-${var.instance}/end-session/"
}
output "sso_configuration_url" {
value = "https://${data.kubernetes_ingress_v1.authentik.spec[0].rule[0].host}/application/o/${local.app_slug}/"
}
output "sso_userinfo_url" {
value = "https://${data.kubernetes_ingress_v1.authentik.spec[0].rule[0].host}/application/o/userinfo/"
}
output "sso_authorize_url" {
value = "https://${data.kubernetes_ingress_v1.authentik.spec[0].rule[0].host}/application/o/authorize/"
}
output "sso_token_url" {
value = "https://${data.kubernetes_ingress_v1.authentik.spec[0].rule[0].host}/application/o/token/"
}
output "client_id" {
value = random_uuid.client_id.result
}
output "client_secret" {
value = authentik_provider_oauth2.oauth2.client_secret
}
output "oauth2_secret_name" {
value = kubectl_manifest.oauth2_client_secret.name
}