openvibers/openvibe.network Commits

Trade grants (Wave 19) and redirect URI

OP OpenVibers committed 23 Sept 2026 · 992cb2ba8c · 2 files, +5 −0


Changes

ddiff --git a/server/db/database.js b/server/db/database.js
iindex 4a1e03cb..5b179646 100644
---- a/server/db/database.js
++++ b/server/db/database.js
@@@ -590,6 +590,7 @@ function initDb(dbPath) {
{ client_id: 'openre', name: 'OpenRe.Stream', redirect_uris: ['https://openre.stream/auth/callback'] },
{ client_id: 'reviews', name: 'OpenVibe.Reviews', redirect_uris: ['https://openvibe.reviews/auth/callback'] },
{ client_id: 'news', name: 'OpenVibe.News', redirect_uris: ['https://openvibe.news/auth/callback'] },
++ { client_id: 'trade', name: 'OpenVibe.Trade', redirect_uris: ['https://openvibe.trade/auth/callback'] },
// Billing's staff console (Wave 8): Network admins listed in BILLING_STAFF_SUBJECTS.
{ client_id: 'billing', name: 'OpenVibe.Billing', redirect_uris: ['https://billing.openvibe.network/auth/callback'] },
];
ddiff --git a/server/identity/principals.js b/server/identity/principals.js
iindex a3c2f6a1..db8257c8 100644
---- a/server/identity/principals.js
++++ b/server/identity/principals.js
@@@ -79,6 +79,10 @@ const DEFAULT_GRANTS = [
['news', 'events.event.publish', 'openvibe.events', []],
['news', 'events.subscription.manage', 'openvibe.events', []],
['news', 'identity.subject.resolve', SELF_AUDIENCE, []],
++ // Wave 19: Trade (informational) reads Sources filings and publishes events.
++ ['trade', 'events.event.publish', 'openvibe.events', []],
++ ['trade', 'sources.item.read', 'openvibe.sources', []],
++ ['trade', 'sources.source.read', 'openvibe.sources', []],
// Wave 3: producers publish to OpenVibe.Events (their own source only, enforced by Events).
...['live', 'media', 'network', 'community', 'billing', 'chat', 'tools', 'games', 'search', 'sources', 'tips'].map(c => [c, 'events.event.publish', 'openvibe.events', []]),
// Wave 14: Search subscribes to <owner>.index_document.* deliveries.