From 6fd2a4a435d919c19b84bff564a15df937d82d95 Mon Sep 17 00:00:00 2001 From: Ian Kollipara Date: Wed, 20 Aug 2025 13:12:57 -0500 Subject: [PATCH] Added Root path to flask request config. This fixes issues with flask applications running not as the root for a domain. --- demo-flask/index.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/demo-flask/index.py b/demo-flask/index.py index a03eeccd..a283565f 100644 --- a/demo-flask/index.py +++ b/demo-flask/index.py @@ -21,7 +21,7 @@ def prepare_flask_request(request): return { "https": "on" if request.scheme == "https" else "off", "http_host": request.host, - "script_name": request.path, + "script_name": request.root_path + request.path, "get_data": request.args.copy(), # Uncomment if using ADFS as IdP, https://github.com/onelogin/python-saml/pull/144 # 'lowercase_urlencoding': True,