ifcurl/ifcurl
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
..
data Add ifcurl-open and ifcurl-register: ifc:// OS protocol handler 2026-06-07 09:36:20 +01:00
__init__.py Add checkout.py: writable working-tree checkouts from bare cache 2026-06-05 23:38:13 +01:00
__main__.py Fix license headers: correct copyright owner and add SPDX identifiers 2026-05-19 21:07:23 +01:00
auth.py Fix license headers: correct copyright owner and add SPDX identifiers 2026-05-19 21:07:23 +01:00
bcf.py Rewrite BCF export as pure client-side, remove Python /bcf endpoint 2026-06-07 07:30:33 +01:00
bcf_api.py Fix four security vulnerabilities found in security review 2026-06-07 14:49:45 +01:00
checkout.py Ambiguity resolution: prompt when multiple local repos match genesis 2026-06-07 21:03:13 +01:00
diff.py Fix license headers: correct copyright owner and add SPDX identifiers 2026-05-19 21:07:23 +01:00
discover.py Ambiguity resolution: prompt when multiple local repos match genesis 2026-06-07 21:03:13 +01:00
documents_api.py Document picker: forward OAuth2 access token to Forgejo API 2026-06-07 23:56:30 +01:00
foundation_api.py Add OpenCDE Foundation API 1.1 OAuth2 proxy routes 2026-06-07 10:08:13 +01:00
git.py Add get_genesis_commit: root commit hash as project identity key 2026-06-05 18:32:54 +01:00
open.py Add ifcurl-open and ifcurl-register: ifc:// OS protocol handler 2026-06-07 09:36:20 +01:00
py.typed Python core library and ifcurl CLI 2026-04-15 21:24:35 +01:00
register.py Add ifcurl-open and ifcurl-register: ifc:// OS protocol handler 2026-06-07 09:36:20 +01:00
render.py Fix license headers: correct copyright owner and add SPDX identifiers 2026-05-19 21:07:23 +01:00
render_service.py Fix license headers: correct copyright owner and add SPDX identifiers 2026-05-19 21:07:23 +01:00
sandbox.py Fix license headers: correct copyright owner and add SPDX identifiers 2026-05-19 21:07:23 +01:00
service.py Fix four security vulnerabilities found in security review 2026-06-07 14:49:45 +01:00
url.py Fix license headers: correct copyright owner and add SPDX identifiers 2026-05-19 21:07:23 +01:00