openvibers/openvibe.network Commits
Trade grants (Wave 19) and redirect URI
Changes
@@@ -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'] },];@@@ -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.
@@ -590,6 +590,7 @@ function initDb(dbPath) {
@@ -590,6 +590,7 @@ function initDb(dbPath) {
{ client_id: 'openre', name: 'OpenRe.Stream', redirect_uris: ['https://openre.stream/auth/callback'] },
{ 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: '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: '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.
// 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'] },
{ client_id: 'billing', name: 'OpenVibe.Billing', redirect_uris: ['https://billing.openvibe.network/auth/callback'] },
];
];
@@ -79,6 +79,10 @@ const DEFAULT_GRANTS = [
@@ -79,6 +79,10 @@ const DEFAULT_GRANTS = [
['news', 'events.event.publish', 'openvibe.events', []],
['news', 'events.event.publish', 'openvibe.events', []],
['news', 'events.subscription.manage', 'openvibe.events', []],
['news', 'events.subscription.manage', 'openvibe.events', []],
['news', 'identity.subject.resolve', SELF_AUDIENCE, []],
['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).
// 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', []]),
...['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.
// Wave 14: Search subscribes to <owner>.index_document.* deliveries.