Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions bff/backend_for_frontend.egg-info/PKG-INFO
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
Metadata-Version: 2.4

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Drop generated egg-info metadata

This adds setuptools-generated package metadata even though the BFF package metadata is already maintained in bff/pyproject.toml, and the repo guidance says generated artifacts should not be hand-edited unless explicitly allowed. Keeping this second copy means the next version, dependency, or file-list change can leave PKG-INFO, requires.txt, or SOURCES.txt stale, so local distribution metadata/package manifests may no longer match the actual project. Please remove the backend_for_frontend.egg-info files rather than committing them with this test-only change.

Useful? React with 👍 / 👎.

Name: backend-for-frontend
Version: 0.6.2
Summary: Flask backend-for-frontend
Requires-Python: <3.13,>=3.12
Requires-Dist: authlib>=1.7.2
Requires-Dist: cryptography>=49.0.0
Requires-Dist: flask~=3.1.2
Requires-Dist: flask-cors
Requires-Dist: flask-session
Requires-Dist: flask-smorest>=0.46.2
Requires-Dist: pyyaml~=6.0
Requires-Dist: python-dotenv~=1.2.1
Requires-Dist: requests>=2.34.2
Requires-Dist: urllib3>=2.7.0
28 changes: 28 additions & 0 deletions bff/backend_for_frontend.egg-info/SOURCES.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
README.md
pyproject.toml
backend_for_frontend.egg-info/PKG-INFO
backend_for_frontend.egg-info/SOURCES.txt
backend_for_frontend.egg-info/dependency_links.txt
backend_for_frontend.egg-info/requires.txt
backend_for_frontend.egg-info/top_level.txt
bff_app/__init__.py
bff_app/settings.py
bff_app/openapi/__init__.py
bff_app/openapi/generate.py
bff_app/routes/__init__.py
bff_app/routes/auth.py
bff_app/routes/health.py
bff_app/routes/proxy.py
bff_app/services/__init__.py
bff_app/services/auth.py
bff_app/services/token_cookies.py
tests/test_auth_callback.py
tests/test_auth_login.py
tests/test_auth_logout.py
tests/test_auth_session.py
tests/test_auth_userinfo.py
tests/test_openapi_generation.py
tests/test_ping.py
tests/test_proxy_request.py
tests/test_settings.py
tests/test_token_cookies.py
1 change: 1 addition & 0 deletions bff/backend_for_frontend.egg-info/dependency_links.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

10 changes: 10 additions & 0 deletions bff/backend_for_frontend.egg-info/requires.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
authlib>=1.7.2
cryptography>=49.0.0
flask~=3.1.2
flask-cors
flask-session
flask-smorest>=0.46.2
pyyaml~=6.0
python-dotenv~=1.2.1
requests>=2.34.2
urllib3>=2.7.0
1 change: 1 addition & 0 deletions bff/backend_for_frontend.egg-info/top_level.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
bff_app
36 changes: 33 additions & 3 deletions bff/tests/test_token_cookies.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,10 +62,40 @@ def test_token_cookie_missing_component_returns_none(app, build_token_payload):
cookie_map = _extract_cookie_map(response)

names = token_cookie_names(settings)
missing_id = dict(cookie_map)
missing_id.pop(names["id_token"])
cookie_map_without_id_token = dict(cookie_map)
cookie_map_without_id_token.pop(names["id_token"])

assert load_token_from_cookies(missing_id, settings) is None
assert load_token_from_cookies(cookie_map_without_id_token, settings) is None


def test_token_cookie_missing_access_token_returns_none(app, build_token_payload):
settings = app.extensions["bff_settings"]
response = app.response_class()
token_payload = build_token_payload()

set_token_cookies(response, token_payload, settings)
cookie_map = _extract_cookie_map(response)

names = token_cookie_names(settings)
cookie_map_without_access_token = dict(cookie_map)
cookie_map_without_access_token.pop(names["access_token"])

assert load_token_from_cookies(cookie_map_without_access_token, settings) is None


def test_token_cookie_missing_refresh_token_returns_none(app, build_token_payload):
settings = app.extensions["bff_settings"]
response = app.response_class()
token_payload = build_token_payload()

set_token_cookies(response, token_payload, settings)
cookie_map = _extract_cookie_map(response)

names = token_cookie_names(settings)
cookie_map_without_refresh_token = dict(cookie_map)
cookie_map_without_refresh_token.pop(names["refresh_token"])

assert load_token_from_cookies(cookie_map_without_refresh_token, settings) is None


def test_token_cookie_oversize_raises_error(app, build_token_payload):
Expand Down
Loading