@useparagon/connect 3.1.0 → 3.2.0-experimental.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/src/ConnectInstallFlowClient.d.ts +21 -0
- package/dist/src/ConnectSDK.d.ts +5 -42
- package/dist/src/ConnectSDK.js +1 -1
- package/dist/src/helpers/oauth.d.ts +8 -10
- package/dist/src/index.js +1 -1
- package/dist/src/install-flow/InstallFlow.d.ts +47 -0
- package/dist/src/install-flow/InstallFlowClient.d.ts +83 -0
- package/dist/src/install-flow/derivation.d.ts +19 -0
- package/dist/src/install-flow/index.d.ts +5 -0
- package/dist/src/install-flow/index.js +2 -0
- package/dist/src/install-flow/index.js.LICENSE.txt +44 -0
- package/dist/src/install-flow/oauth.d.ts +68 -0
- package/dist/src/install-flow/salesforceInstruction.d.ts +17 -0
- package/dist/src/types/sdk.d.ts +2 -1
- package/package.json +3 -2
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { IConnectIntegrationWithCredentialInfo } from '../entities/integration.interface';
|
|
2
|
+
import { OAuthTransport } from '../install-flow/oauth';
|
|
2
3
|
import { ConnectInputValue } from '../types/connect';
|
|
3
4
|
import { DataType, KeyedSource } from '../types/resolvers';
|
|
4
5
|
import { InstallOptions } from '../types/sdk';
|
|
@@ -16,15 +17,12 @@ export type OAuthFlowOptions = {
|
|
|
16
17
|
installOptions?: InstallOptions;
|
|
17
18
|
};
|
|
18
19
|
/**
|
|
19
|
-
*
|
|
20
|
-
*
|
|
21
|
-
*
|
|
22
|
-
*
|
|
23
|
-
* Additionally the oauth-nonce script communicates with the parent window to notify that the oauth-nonce has loaded.
|
|
24
|
-
* this ensures that the redirect does not happen before the oauth-nonce has loaded.
|
|
25
|
-
* post message was used as any other communication (ex- onload event) was not possible due to cross domain restrictions of browsers.
|
|
20
|
+
* Assembles the SDK-flavored OAuth transport for the shared `runOAuthFlow`:
|
|
21
|
+
* Zeus build-oauth + oauth-nonce URL construction and the Connect
|
|
22
|
+
* oauth-callback error redirect. `waitForCredential` is supplied by the
|
|
23
|
+
* caller (`ConnectSDK.pollForCredential`), which owns credential state.
|
|
26
24
|
*
|
|
27
|
-
*
|
|
28
|
-
*
|
|
25
|
+
* Returns undefined when the integration has no resolvable type name, which
|
|
26
|
+
* the caller surfaces as an `OAuthBlockedError` (historical behavior).
|
|
29
27
|
*/
|
|
30
|
-
export declare const
|
|
28
|
+
export declare const createOAuthTransport: ({ context, integration, endUserSuppliedValues, authParams, isPreviewMode, installOptions, }: OAuthFlowOptions) => Omit<OAuthTransport, 'waitForCredential'> | undefined;
|