api

package
v0.7.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 21, 2026 License: Apache-2.0 Imports: 20 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AdminAPIToken added in v0.7.0

func AdminAPIToken(c fiber.Ctx, keys *tokens.Manager) (bool, error)

AdminAPIToken lets a token use the admin API (/admin/api) with admin:pads for all pads; the API with a check per function and pad is /api. It reports whether the request carried a token (then it has answered or passed it on); other bearer tokens are the provider's.

func InitAPI

func InitAPI(store *lib.InitStore) *oidc.Authenticator

Types

This section is empty.

Directories

Path Synopsis
Package legacy serves etherpad-lite's HTTP API, /api/{version}/{function}, for clients written against it (Moodle, Nextcloud, WordPress plugins and the like).
Package legacy serves etherpad-lite's HTTP API, /api/{version}/{function}, for clients written against it (Moodle, Nextcloud, WordPress plugins and the like).
Package mcp serves the Model Context Protocol at /mcp: AI clients (Claude, …) read and edit pads and use their chat with a token (Authorization: Bearer ep_…).
Package mcp serves the Model Context Protocol at /mcp: AI clients (Claude, …) read and edit pads and use their chat with a token (Authorization: Bearer ep_…).
Package padlogin is the optional login on pads: a person logs in on Etherpad's own OpenID Connect provider and keeps a session cookie; who does not log in has the visitors' rights (lib/accounts).
Package padlogin is the optional login on pads: a person logs in on Etherpad's own OpenID Connect provider and keeps a session cookie; who does not log in has the visitors' rights (lib/accounts).
Package session implements the Etherpad API session endpoints (createSession, getSessionInfo, deleteSession, listSessionsOfGroup, listSessionsOfAuthor from the original HTTP API).
Package session implements the Etherpad API session endpoints (createSession, getSessionInfo, deleteSession, listSessionsOfGroup, listSessionsOfAuthor from the original HTTP API).
Package tokentransfer moves an author's identity to another browser (etherpad-lite's /tokenTransfer): the first browser asks for a code, the second redeems it within five minutes, once, and gets the same author token as an HttpOnly cookie plus the pad preferences.
Package tokentransfer moves an author's identity to another browser (etherpad-lite's /tokenTransfer): the first browser asks for a code, the second redeems it within five minutes, once, and gets the same author token as an HttpOnly cookie plus the pad preferences.
Package versionstatus answers /api/version-status: whether to tell the visitor of a pad that this Etherpad is a minor version or more behind.
Package versionstatus answers /api/version-status: whether to tell the visitor of a pad that this Etherpad is a minor version or more behind.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL