Refacto OAuth2

This commit is contained in:
2024-05-12 13:46:09 +02:00
parent 82a179dad3
commit 9f12af60bc
7 changed files with 70 additions and 83 deletions

View File

@@ -5,34 +5,32 @@ output "provider_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_password.client_id.result
}
output "client_secret" {
value = authentik_provider_oauth2.oauth2.client_secret
}
output "secret_client_id_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
}
output "secret_client_id_key" {
value = "client-id"
}
output "secret_client_secret_key" {
value = "client-secret"
output "oauth2_secret_name" {
value = kubernetes_secret.oauth2_client_secret.metadata[0].name
}