From 325c9e6cf816f82191cad04f112588bd06bb25a1 Mon Sep 17 00:00:00 2001 From: Pieter Date: Wed, 14 Jan 2026 13:47:17 +0100 Subject: [PATCH] fix: Use correct Authentik API endpoint for readiness check Changed from /api/v3/core/tenants/ to /api/v3/flows/instances/ which returns proper JSON instead of 404 HTML during initialization. --- ansible/roles/authentik/tasks/flows.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ansible/roles/authentik/tasks/flows.yml b/ansible/roles/authentik/tasks/flows.yml index cc92335..12cdc61 100644 --- a/ansible/roles/authentik/tasks/flows.yml +++ b/ansible/roles/authentik/tasks/flows.yml @@ -9,7 +9,7 @@ shell: | i=1 while [ $i -le 30 ]; do - if docker exec authentik-server curl -sf -H "Authorization: Bearer {{ authentik_api_token }}" http://localhost:9000/api/v3/core/tenants/ > /dev/null 2>&1; then + if docker exec authentik-server curl -sf -H "Authorization: Bearer {{ authentik_api_token }}" http://localhost:9000/api/v3/flows/instances/ > /dev/null 2>&1; then echo "Authentik API is ready" exit 0 fi