Merge branch 'main' into 2820-switch-csv-downloads-to-use-pre-generated-s3-reports-instead-of-generating

This commit is contained in:
Alex Janousek
2025-08-15 08:55:30 -04:00
committed by GitHub
3 changed files with 13 additions and 9 deletions

View File

@@ -154,17 +154,21 @@ def set_up_your_profile():
code = request.args.get("code")
state = request.args.get("state")
login_gov_error = request.args.get("error")
if login_gov_error:
flash(f"Login.gov error: {login_gov_error}")
abort(403, f"login_gov_error {login_gov_error} #invites")
if not state:
flash("Login.gov state not detected")
abort(403, "Login.gov state not detected #invites")
state_key = f"login-state-{unquote(state)}"
stored_state = unquote(redis_client.get(state_key).decode("utf8"))
if state != stored_state:
flash("Internal error: cannot recognize stored state")
abort(403, "Internal error: cannot recognize stored state #invites")
login_gov_error = request.args.get("error")
if login_gov_error:
flash(f"Login.gov error: {login_gov_error}")
abort(403, f"login_gov_error {login_gov_error} #invites")
user_email = redis_client.get(f"user_email-{state}")
user_uuid = redis_client.get(f"user_uuid-{state}")

6
poetry.lock generated
View File

@@ -3801,14 +3801,14 @@ zstd = ["zstandard (>=0.18.0)"]
[[package]]
name = "virtualenv"
version = "20.33.1"
version = "20.34.0"
description = "Virtual Python Environment builder"
optional = false
python-versions = ">=3.8"
groups = ["main", "dev"]
files = [
{file = "virtualenv-20.33.1-py3-none-any.whl", hash = "sha256:07c19bc66c11acab6a5958b815cbcee30891cd1c2ccf53785a28651a0d8d8a67"},
{file = "virtualenv-20.33.1.tar.gz", hash = "sha256:1b44478d9e261b3fb8baa5e74a0ca3bc0e05f21aa36167bf9cbf850e542765b8"},
{file = "virtualenv-20.34.0-py3-none-any.whl", hash = "sha256:341f5afa7eee943e4984a9207c025feedd768baff6753cd660c857ceb3e36026"},
{file = "virtualenv-20.34.0.tar.gz", hash = "sha256:44815b2c9dee7ed86e387b842a84f20b93f7f417f95886ca1996a72a4138eb1a"},
]
[package.dependencies]

View File

@@ -69,7 +69,7 @@ requests = "^2.32.4"
six = "^1.16.0"
urllib3 = "^2.5.0"
webencodings = "^0.5.1"
virtualenv = "<20.34"
virtualenv = "<20.35"
[tool.poetry.group.dev.dependencies]