Changeset d49b60b in Klonkt for src/config
- Timestamp:
- 07/19/2026 02:52:55 AM (7 weeks ago)
- Branches:
- main
- Children:
- dd568e7
- Parents:
- c867b7b
- git-author:
- Robin <roboburr@…> (07/19/2026 02:52:09 AM)
- git-committer:
- Robin <roboburr@…> (07/19/2026 02:52:55 AM)
- File:
-
- 1 edited
-
src/config/database.js (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
src/config/database.js
rc867b7b rd49b60b 282 282 created_at DATETIME DEFAULT CURRENT_TIMESTAMP 283 283 ); 284 -- ActivityPub C2S (client-to-server): OAuth 2.0 for native/web clients (Shaer). 285 -- Public clients + PKCE (RFC 8252); tokens stored hashed; token is per user+site. 286 CREATE TABLE IF NOT EXISTS oauth_clients ( 287 client_id TEXT PRIMARY KEY, 288 client_name TEXT, 289 redirect_uris TEXT NOT NULL, -- JSON array 290 created_at DATETIME DEFAULT CURRENT_TIMESTAMP 291 ); 292 CREATE TABLE IF NOT EXISTS oauth_codes ( 293 code TEXT PRIMARY KEY, 294 client_id TEXT NOT NULL, 295 user_id TEXT NOT NULL, 296 site_slug TEXT NOT NULL, 297 redirect_uri TEXT NOT NULL, 298 code_challenge TEXT, -- PKCE S256 (verplicht voor public clients) 299 scope TEXT, 300 expires_at DATETIME NOT NULL, 301 created_at DATETIME DEFAULT CURRENT_TIMESTAMP 302 ); 303 CREATE TABLE IF NOT EXISTS oauth_tokens ( 304 token_hash TEXT PRIMARY KEY, -- sha256(bearer); het token zelf slaan we nooit op 305 client_id TEXT NOT NULL, 306 user_id TEXT NOT NULL, 307 site_slug TEXT NOT NULL, 308 scope TEXT, 309 created_at DATETIME DEFAULT CURRENT_TIMESTAMP, 310 last_used_at DATETIME 311 ); 284 312 CREATE TABLE IF NOT EXISTS ap_outbox ( 285 313 id TEXT PRIMARY KEY, -- note path segment (uuid) → /ap/notes/<id>
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)