ifcurl/tests
Bruno Postle fee3008b60 Document picker: forward OAuth2 access token to Forgejo API
The select-documents picker queried the Forgejo API with only the
browser's session cookie (credentials: 'include'), so an OpenCDE client
that authenticated via OAuth2 saw only public repositories.

Thread the access token presented on the select-documents request
through to the picker UI (query param) and have its JS send it as
Authorization: Bearer on every Forgejo API call, falling back to cookie
auth when no token is supplied. Add a no-referrer policy so the token in
the page URL does not leak via Referer on API fetches or the callback
redirect.

Closes ifcurl-i5c.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-07 23:56:30 +01:00
..
conftest.py style: ruff --fix + black across ifcurl/ and tests/ 2026-04-25 08:34:56 +01:00
test_auth.py style: ruff --fix + black across ifcurl/ and tests/ 2026-04-25 08:34:56 +01:00
test_bcf.py Rewrite BCF export as pure client-side, remove Python /bcf endpoint 2026-06-07 07:30:33 +01:00
test_bcf_api.py bcf_api: add topic filtering; documents_api: add GET /document-metadata 2026-04-29 22:24:52 +01:00
test_checkout.py Ambiguity resolution: prompt when multiple local repos match genesis 2026-06-07 21:03:13 +01:00
test_diff.py style: ruff --fix + black across ifcurl/ and tests/ 2026-04-25 08:34:56 +01:00
test_discover.py Ambiguity resolution: prompt when multiple local repos match genesis 2026-06-07 21:03:13 +01:00
test_documents_api.py bcf_api: add topic filtering; documents_api: add GET /document-metadata 2026-04-29 22:24:52 +01:00
test_documents_api_picker.py Document picker: forward OAuth2 access token to Forgejo API 2026-06-07 23:56:30 +01:00
test_foundation_api.py Add OpenCDE Foundation API 1.1 OAuth2 proxy routes 2026-06-07 10:08:13 +01:00
test_git.py Add get_genesis_commit: root commit hash as project identity key 2026-06-05 18:32:54 +01:00
test_render.py style: ruff --fix + black across ifcurl/ and tests/ 2026-04-25 08:34:56 +01:00
test_sandbox.py style: ruff --fix + black across ifcurl/ and tests/ 2026-04-25 08:34:56 +01:00
test_service.py bcf_api: implement BCF 3.0 REST API as Python routes in the preview service 2026-04-29 19:38:34 +01:00
test_url.py url.py, test_url.py: add query parameter and visibility=clash 2026-05-09 07:27:35 +00:00
test_viewer_url.mjs viewer: extract URL logic to viewer-url.js, add JS tests 2026-04-24 07:31:19 +01:00