Security News
Supply Chain Attack Detected in Solana's web3.js Library
A supply chain attack has been detected in versions 1.95.6 and 1.95.7 of the popular @solana/web3.js library.
@openfin/cloud-interop
Advanced tools
This package contains an override that enables Cloud Interop for `InteropBroker`'s unlocking Interop across applications and devices. It is powered by the [@openfin/cloud-interop-core-api](https://www.npmjs.com/package/@openfin/cloud-interop-core-api?acti
This package contains an override that enables Cloud Interop for InteropBroker
's unlocking Interop across applications and devices. It is powered by the @openfin/cloud-interop-core-api package which provides an API client to communicate with the Cloud Interop Service.
Overrides are passed to fin.Platform.init
when initializing a platform or to fin.Interop.init
when creating an InteropBroker
directly.
Once overriden the InteropBroker
will connect to the given Cloud Interop Service upon initialization. Context
will be sent to the Cloud Interop server and the broker will receive Context
updates from other any other connected brokers in the shared session.
In a Platform with other overrides:
import { cloudInteropOverride } from "@openfin/cloud-interop";
import { ExampleOverride } from "./example";
const cloudConfig = {
url: "<CLOUD_INTEROP_SERVICE_URL>",
platformId: "my-platform", // Shared identifier for apps that should communicate
sourceId: "my-desktop"
};
const InitializedCloudInteropOverride = await cloudInteropOverride(cloudConfig);
// Ordering is important, ensure Cloud Interop Override is at the end of the list to send overriden Context to the cloud
await fin.Platform.init({
interopOverride: [ExampleOverride, InitializedCloudInteropOverride],
});
When creating an InteropBroker
directly:
import { cloudInteropOverride } from "@openfin/cloud-interop";
const cloudConfig = {
url: "<CLOUD_INTEROP_SERVICE_URL>",
platformId: "my-platform", // Shared identifier for apps that should communicate
sourceId: "my-desktop"
};
const InitializedCloudInteropOverride = await cloudInteropOverride(cloudConfig);
await fin.Interop.init(fin.me.uuid, InitializedCloudInteropOverride);
The Cloud Interop API client offers various authentication methods which can be enabled through configuration.
Interactive session based authentication using cookies (default):
import { cloudInteropOverride } from "@openfin/cloud-interop";
const cloudConfig = {
url: "<CLOUD_INTEROP_SERVICE_URL>",
platformId: "my-platform", // Shared identifier for apps that should communicate
sourceId: "my-desktop",
};
const InitializedCloudInteropOverride = await cloudInteropOverride(cloudConfig);
Basic authentication with credentials provisioned per Cloud Interop Service:
import { cloudInteropOverride } from "@openfin/cloud-interop";
const cloudConfig = {
url: "<CLOUD_INTEROP_SERVICE_URL>",
platformId: "my-platform", // Shared identifier for apps that should communicate
sourceId: "my-desktop",
authenticationType: "basic",
basicAuthenticationParameters: {
username: "bob@acme.com",
password: "password"
}
};
const InitializedCloudInteropOverride = await cloudInteropOverride(cloudConfig);
JWT token authentication:
import { cloudInteropOverride } from "@openfin/cloud-interop";
const cloudConfig = {
url: "<CLOUD_INTEROP_SERVICE_URL>",
platformId: "my-platform", // Shared identifier for apps that should communicate
sourceId: "my-desktop",
authenticationType: "jwt",
jwtAuthenticationParameters: {
// Service Gateway authentication identifier, contact Here support to obtain id for your organization.
authenticationId: "00b671f2-e1a9-4c29-9fa9-55f1988a11fb",
// Callback invoked whenever a jwt token is required for a request
jwtRequestCallback: () => "my-token"
}
};
const InitializedCloudInteropOverride = await cloudInteropOverride(cloudConfig);
FAQs
This package contains an override that enables Cloud Interop for OpenFin `InteropBroker`'s unlocking Interop across applications and devices.
The npm package @openfin/cloud-interop receives a total of 217 weekly downloads. As such, @openfin/cloud-interop popularity was classified as not popular.
We found that @openfin/cloud-interop demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 58 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
A supply chain attack has been detected in versions 1.95.6 and 1.95.7 of the popular @solana/web3.js library.
Research
Security News
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.