Codebahn · Authentication Profile

Codebahn Authentication

Authentication

Codebahn secures its APIs with apiKey and http across 5 declared security schemes, as derived from its OpenAPI definitions.

CompanyGit HostingVersion ControlContinuous IntegrationForgejoDeveloper ToolsEU-hostedData SovereigntyMCP
Methods: apiKey, http Schemes: 5 OAuth flows: API key in: header, query

Security Schemes

AuthorizationHeaderToken apiKey
· in: header (Authorization)
BasicAuth http
scheme: basic
SudoHeader apiKey
· in: header (Sudo)
SudoParam apiKey
· in: query (sudo)
TOTPHeader apiKey
· in: header (X-FORGEJO-OTP)

Source

Authentication Profile

Raw ↑
generated: '2026-11-04'
method: searched
source: https://codebahn.net/docs/cli.md
summary:
  types:
  - apiKey
  - http
  api_key_in:
  - header
  - query
schemes:
- name: AuthorizationHeaderToken
  type: apiKey
  in: header
  parameter: Authorization
  description: API tokens must be prepended with "token" followed by a space.
  sources:
  - openapi/codebahn-net-openapi.yml
- name: BasicAuth
  type: http
  scheme: basic
  sources:
  - openapi/codebahn-net-openapi.yml
- name: SudoHeader
  type: apiKey
  in: header
  parameter: Sudo
  description: Sudo API request as the user provided as the key. Admin privileges are required.
  sources:
  - openapi/codebahn-net-openapi.yml
- name: SudoParam
  type: apiKey
  in: query
  parameter: sudo
  description: Sudo API request as the user provided as the key. Admin privileges are required.
  sources:
  - openapi/codebahn-net-openapi.yml
- name: TOTPHeader
  type: apiKey
  in: header
  parameter: X-FORGEJO-OTP
  description: Must be used in combination with BasicAuth if two-factor authentication is enabled.
  sources:
  - openapi/codebahn-net-openapi.yml
docs: https://codebahn.net/docs/cli.md
documented_flows:
- name: OAuth (browser)
  used_by:
  - CLI (codebahn auth login)
  - MCP server https://codebahn.net/mcp
  note: MCP clients must support OAuth discovery and Client ID Metadata Documents; tokens refresh automatically.
- name: Personal access token
  note: 'Created under Settings > Applications; sent as Authorization: Bearer for MCP clients without
    OAuth support, or CODEBAHN_TOKEN / --token for the CLI.'
- name: Two-factor authentication
  note: Sign-in uses an emailed code plus optional authenticator passcode or security key; OAuth tokens
    issued afterwards need no second factor.
docs_urls:
- https://codebahn.net/docs/cli.md
- https://codebahn.net/docs/mcp.md
- https://codebahn.net/docs/two-factor-authentication.md
- https://forgejo.org/docs/v15.0/user/api-usage/#authentication

Work with this as data

Every security artifact here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for security posture

4 MCP tools reach this
  • find_securityBrowse and filter every security artifact in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This security artifact
curl "https://apis.io/api/v1/security/codebahn-net-authentication"
All security posture
curl "https://apis.io/api/v1/security?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.