Senparc.Xncf.DesktopBridge 0.4.12

Prefix Reserved
There is a newer version of this package available.
See the version list below for details.
dotnet add package Senparc.Xncf.DesktopBridge --version 0.4.12
                    
NuGet\Install-Package Senparc.Xncf.DesktopBridge -Version 0.4.12
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Senparc.Xncf.DesktopBridge" Version="0.4.12" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Senparc.Xncf.DesktopBridge" Version="0.4.12" />
                    
Directory.Packages.props
<PackageReference Include="Senparc.Xncf.DesktopBridge" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Senparc.Xncf.DesktopBridge --version 0.4.12
                    
#r "nuget: Senparc.Xncf.DesktopBridge, 0.4.12"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Senparc.Xncf.DesktopBridge@0.4.12
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Senparc.Xncf.DesktopBridge&version=0.4.12
                    
Install as a Cake Addin
#tool nuget:?package=Senparc.Xncf.DesktopBridge&version=0.4.12
                    
Install as a Cake Tool

Senparc.Xncf.DesktopBridge

Senparc.Xncf.DesktopBridge is an optional XNCF module that exposes a secured HTTP/SSE bridge between an NCF host and a desktop companion application. The NCF host still uses its in-process EventBus; the bridge only adapts normalized activity and authorized resource-change notifications for another process or machine.

Features

  • Observes integration events through closed, contravariant handler mappings without replacing existing EventBus consumers.
  • Provides capability discovery, activity snapshots, and Server-Sent Events (SSE) for local or explicitly configured remote desktop sessions.
  • Requires the NCF_DESKTOP_BRIDGE_TOKEN startup boundary before exposing bridge state.
  • Provides an administrator-scoped authorized-sync stream for resource IDs and change types.
  • Supports an optional, one-time PKCE handoff from an authenticated WebView Cookie session to an in-memory desktop JWT without copying the Cookie.
  • Does not read or mutate business MemoryCache, and does not transmit passwords, JWTs, or chat message bodies through EventBus/SSE.

Installation

<PackageReference Include="Senparc.Xncf.DesktopBridge" Version="0.1.1-preview3" />

Restart the NCF host after installing or updating the module.

Key API and security contract

  • DesktopBridgeController serves capability and activity endpoints.
  • DesktopActivityHub and DesktopAuthorizedSyncHub publish lightweight activity/change messages.
  • DesktopBridgeTokenValidator validates the local session token.
  • DesktopAdminAuthHandoffStore keeps bounded, 60-second, single-use challenges in memory and binds them to one desktop session.
  • DesktopActivityEventHandler observes NCF integration events.
  • DesktopBridgeCapabilities, DesktopActivityMessage, and DesktopAuthorizedSyncMessage are the public transport records.

Authorized sync requires the desktop session token, the Bearer_Backend JWT, the standard AdminOnly policy, and matching event owner/admin IDs. The desktop client must re-read business data through the original authorized API; a missing login, expired token, or disconnected bridge must disable the dependent feature.

Admin auth handoff additionally requires the current WebView Cookie, AdminOnly, explicit confirmation in the WebView, Razor antiforgery validation, a desktop session token, and a PKCE verifier that never enters the WebView. The issued JWT cannot outlive the source Cookie or the configured backend JWT lifetime. The capability is absent when the Admin token issuer is not registered; multi-tenant Cookie sessions currently fall back to explicit desktop login.

Remote deployment

Set NCF_DESKTOP_BRIDGE_TOKEN in the remote Senparc.Web process and enter the same value in the desktop workspace. Do not expose the bridge over plaintext Internet HTTP: use HTTPS and a reverse proxy/firewall IP allowlist. If mTLS is required, terminate it in a trusted local proxy/tunnel and connect the desktop workspace to that loopback endpoint. An SSH tunnel is likewise supported through a URL such as http://127.0.0.1:5500.

The token is an application-layer shared secret, not a replacement for TLS or network access control. Each desktop workspace owns an independent SSE connection and Admin JWT; the bridge never attempts to share the in-memory EventBus channel across processes.

Product Compatible and additional computed target framework versions.
.NET net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
0.4.12.1 40 11/25/2026
0.4.12 88 11/19/2026
0.4.11 100 11/11/2026
0.4.10 95 11/5/2026
0.4.9 104 11/2/2026
0.4.7 123 10/4/2026
0.4.6 131 9/18/2026
0.4.5 107 9/16/2026
0.4.4 120 8/29/2026
0.4.3 242 8/23/2026
0.4.2-preview6 126 8/14/2026
0.4.1-preview5 129 8/12/2026
0.4.0-preview4 120 8/8/2026
0.3.0-preview3 122 8/3/2026
0.2.1-preview2 117 7/31/2026
0.1.2-preview4 116 7/31/2026
0.1.1-preview3 145 7/28/2026
0.1.0-preview2 121 7/27/2026

[2026-07-25] v0.1.0-preview1 add NCF statuscapabilities
       1. Updated module behavior and related support.
       2. Updated module behavior and related support.
       3. Updated module behavior and related support.
       4. Updated module behavior and related support.
       [2026-07-26] v0.1.0-preview2 Updated module behavior and related support.
       1. Updated module behavior and related support.
       2. Updated module behavior and related support.
       3. Updated module behavior and related support.
       [2026-07-29] v0.1.1-preview3 Updated module behavior and related support.
       1. Updated module behavior and related support.
       [2026-07-31] v0.1.2-preview4 Updated module behavior and related support.
       1. Updated module behavior and related support.
       2. Updated module behavior and related support.
       [2026-08-01] v0.2.0-preview1 Updated module behavior and related support.
       1. Updated module behavior and related support.
       2. Updated module behavior and related support.
       3. Updated module behavior and related support.
       [2026-08-01] v0.2.1-preview2 Updated module behavior and related support.
       1. Updated module behavior and related support.
       2. Updated module behavior and related support.
       [2026-08-04] v0.3.0-preview3 Updated module behavior and related support.
       1. Updated module behavior and related support.
       2. Updated module behavior and related support.
       3. Updated module behavior and related support.
       [2026-08-08] v0.4.0-preview4 Updated module behavior and related support.
       1. Updated module behavior and related support.
       2. Updated module behavior and related support.
       3. Updated module behavior and related support.
       [2026-08-13] v0.4.1-preview5 Dependency update from Senparc.Ncf.AreaBase to 0.23.3-preview7; Senparc.Ncf.Core to 0.28.2-preview7; Senparc.Ncf.Shared.Abstractions to 0.6.0-preview5; Senparc.Ncf.XncfBase to 0.25.0-preview7
       [2026-08-15] v0.4.2-preview6 Dependency update from Senparc.Ncf.Core to 0.29.0-preview8
       [2026-08-22] v0.4.3-preview7 synchronize Senparc.Xncf.DesktopBridge dependency version
       1. Updated module behavior and related support.
       [2026-08-29] v0.4.4 Dependency updates from Senparc.Ncf.Core to 0.30.0-preview9
       1. Dependency update from Senparc.Ncf.Core to 0.30.0-preview9
       [2026-09-16] v0.4.5 Dependency updates from Senparc.Web to 0.39.1
       [2026-09-17] v0.4.6 Dependency updates from Senparc.Ncf.XncfBase to 0.28.0
       1. Updated module behavior and related support.
       2. Updated module behavior and related support.
       [2026-10-01] v0.4.7 Updated module behavior and related support.
       1. Updated module behavior and related support.
       [2026-10-05] v0.4.7 Merge remote-tracking branch 'origin/Developer-MAF-V3' into Developer-MAF-V3-Spark
       1. Updated Senparc.Xncf.DesktopBridge project behavior and integration for the latest feature and reliability improvements.
       2. chore: update package versions and dependencies across multiple projects
       [2026-11-03] v0.4.8 Updated module behavior and related support.
       1. Updated module behavior and related support.
       2. Updated module behavior and related support.
       3. Updated module behavior and related support.
       [2026-11-03] Add shared contextual documentation beside device pairing approvals.
       [2026-11-05] v0.4.10 synchronize direct dependency project versions
       1. Dependency update from Senparc.Ncf.Core to 0.30.4-preview10
       2. Dependency update from Senparc.Ncf.AreaBase to 0.23.10
       3. Dependency update from Senparc.Ncf.Service to 0.23.11-preview10
       4. Dependency update from Senparc.Ncf.XncfBase to 0.28.2
       [2026-11-11] v0.4.10 Updated module behavior and related support.
       1. Updated module behavior and related support.
       2. Updated module behavior and related support.
       [2026-11-12] v0.4.11 Updated module behavior and related support.
       1. Updated module behavior and related support.
       2. Updated module behavior and related support.
       [2026-11-19] v0.4.12 Localized DesktopBridge pairing and runtime surfaces
       1. Updated localized labels, resource fallbacks, and user-facing messages across affected surfaces.
       2. Kept runtime behavior and module integration aligned with the affected service and registration changes.