Fix redirect
Some checks failed
Build and push image / build-containers (push) Failing after 2m34s

This commit is contained in:
2025-07-18 07:46:41 +02:00
parent d6357c8a88
commit 25dfefccb0

View File

@ -188,10 +188,9 @@ def create_router(dependencies: AdminDependencies) -> APIRouter:
dependencies.settings, data=token_data, provider=claims.provider dependencies.settings, data=token_data, provider=claims.provider
) )
path = f"/auth_cb#access_token={access_token}&refresh_token={refresh_token}" callback_url = f"/auth_cb#access_token={access_token}&refresh_token={refresh_token}"
callback_url = os.path.join("admin", path)
if dependencies.settings.frontend_test_url: if dependencies.settings.frontend_test_url:
callback_url = os.path.join(dependencies.settings.frontend_test_url, path) callback_url = os.path.join(dependencies.settings.frontend_test_url, callback_url)
origin = "UNKNOWN" origin = "UNKNOWN"
if request.client: if request.client:
origin = request.client.host origin = request.client.host