forgejo-api.tionis.dev

Forgejo API CORS proxy

A browser-safe facade for selected Forgejo API endpoints. Static apps use this origin for OAuth token exchange and API calls while the main Forgejo UI stays on forge.tionis.dev.

Use These URLs

OAuth authorize
https://forge.tionis.dev/login/oauth/authorize
OAuth token exchange
https://forgejo-api.tionis.dev/login/oauth/access_token
API base
https://forgejo-api.tionis.dev/api/v1/
OpenAPI spec
https://forge.tionis.dev/swagger.v1.json
Swagger UI
https://forge.tionis.dev/api/swagger

Browser Flow

  1. Redirect the user to Forgejo on https://forge.tionis.dev/login/oauth/authorize.
  2. Receive the authorization code at the static app redirect URI.
  3. Exchange the code at https://forgejo-api.tionis.dev/login/oauth/access_token.
  4. Call https://forgejo-api.tionis.dev/api/v1/... with Authorization: Bearer <token>.

Proxy Contract

Quick API Check

curl -i https://forgejo-api.tionis.dev/api/v1/version \
  -H 'Origin: https://example.net'