memberapi.ose.tw backend
Quick start
Required DB setup
- Initialize API client whitelist table with
docs/API_CLIENTS_SQL.sql.
- Initialize core tables with
backend/scripts/init_schema.sql.
- Generate
api_key_hash and update api_clients records, e.g.:
Authentik JWT setup
- Configure at least one of:
AUTHENTIK_JWKS_URL
AUTHENTIK_ISSUER (the service infers <issuer>/jwks/)
- Optional:
AUTHENTIK_AUDIENCE (enables audience claim validation)
Main APIs
GET /healthz
GET /me (Bearer token required)
GET /me/permissions/snapshot (Bearer token required)
POST /internal/users/upsert-by-sub
GET /internal/permissions/{authentik_sub}/snapshot
POST /admin/permissions/grant
POST /admin/permissions/revoke