@thunderid/browser 0.0.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/LICENSE +201 -0
- package/dist/FetchHttpClient.d.ts +33 -0
- package/dist/FetchHttpClient.d.ts.map +1 -0
- package/dist/ThunderIDBrowserClient.d.ts +29 -0
- package/dist/ThunderIDBrowserClient.d.ts.map +1 -0
- package/dist/__legacy__/client.d.ts +767 -0
- package/dist/__legacy__/client.d.ts.map +1 -0
- package/dist/__legacy__/clients/index.d.ts +20 -0
- package/dist/__legacy__/clients/index.d.ts.map +1 -0
- package/dist/__legacy__/clients/main-thread-client.d.ts +23 -0
- package/dist/__legacy__/clients/main-thread-client.d.ts.map +1 -0
- package/dist/__legacy__/clients/web-worker-client.d.ts +22 -0
- package/dist/__legacy__/clients/web-worker-client.d.ts.map +1 -0
- package/dist/__legacy__/constants/errors.d.ts +19 -0
- package/dist/__legacy__/constants/errors.d.ts.map +1 -0
- package/dist/__legacy__/constants/hooks.d.ts +30 -0
- package/dist/__legacy__/constants/hooks.d.ts.map +1 -0
- package/dist/__legacy__/constants/index.d.ts +24 -0
- package/dist/__legacy__/constants/index.d.ts.map +1 -0
- package/dist/__legacy__/constants/messages-types.d.ts +52 -0
- package/dist/__legacy__/constants/messages-types.d.ts.map +1 -0
- package/dist/__legacy__/constants/parameters.d.ts +22 -0
- package/dist/__legacy__/constants/parameters.d.ts.map +1 -0
- package/dist/__legacy__/constants/session-management.d.ts +26 -0
- package/dist/__legacy__/constants/session-management.d.ts.map +1 -0
- package/dist/__legacy__/constants/storage.d.ts +19 -0
- package/dist/__legacy__/constants/storage.d.ts.map +1 -0
- package/dist/__legacy__/helpers/authentication-helper.d.ts +59 -0
- package/dist/__legacy__/helpers/authentication-helper.d.ts.map +1 -0
- package/dist/__legacy__/helpers/index.d.ts +21 -0
- package/dist/__legacy__/helpers/index.d.ts.map +1 -0
- package/dist/__legacy__/helpers/session-management-helper.d.ts +21 -0
- package/dist/__legacy__/helpers/session-management-helper.d.ts.map +1 -0
- package/dist/__legacy__/helpers/spa-helper.d.ts +30 -0
- package/dist/__legacy__/helpers/spa-helper.d.ts.map +1 -0
- package/dist/__legacy__/models/client-config.d.ts +55 -0
- package/dist/__legacy__/models/client-config.d.ts.map +1 -0
- package/dist/__legacy__/models/client.d.ts +85 -0
- package/dist/__legacy__/models/client.d.ts.map +1 -0
- package/dist/__legacy__/models/http-client.d.ts +30 -0
- package/dist/__legacy__/models/http-client.d.ts.map +1 -0
- package/dist/__legacy__/models/index.d.ts +27 -0
- package/dist/__legacy__/models/index.d.ts.map +1 -0
- package/dist/__legacy__/models/message.d.ts +47 -0
- package/dist/__legacy__/models/message.d.ts.map +1 -0
- package/dist/__legacy__/models/request-custom-grant.d.ts +25 -0
- package/dist/__legacy__/models/request-custom-grant.d.ts.map +1 -0
- package/dist/__legacy__/models/session-management-helper.d.ts +24 -0
- package/dist/__legacy__/models/session-management-helper.d.ts.map +1 -0
- package/dist/__legacy__/models/sign-in.d.ts +22 -0
- package/dist/__legacy__/models/sign-in.d.ts.map +1 -0
- package/dist/__legacy__/models/sign-out-error.d.ts +22 -0
- package/dist/__legacy__/models/sign-out-error.d.ts.map +1 -0
- package/dist/__legacy__/models/storage.d.ts +39 -0
- package/dist/__legacy__/models/storage.d.ts.map +1 -0
- package/dist/__legacy__/models/web-worker.d.ts +57 -0
- package/dist/__legacy__/models/web-worker.d.ts.map +1 -0
- package/dist/__legacy__/stores/index.d.ts +21 -0
- package/dist/__legacy__/stores/index.d.ts.map +1 -0
- package/dist/__legacy__/stores/local-store.d.ts +24 -0
- package/dist/__legacy__/stores/local-store.d.ts.map +1 -0
- package/dist/__legacy__/stores/memory-store.d.ts +26 -0
- package/dist/__legacy__/stores/memory-store.d.ts.map +1 -0
- package/dist/__legacy__/stores/session-store.d.ts +24 -0
- package/dist/__legacy__/stores/session-store.d.ts.map +1 -0
- package/dist/__legacy__/utils/crypto-utils.d.ts +32 -0
- package/dist/__legacy__/utils/crypto-utils.d.ts.map +1 -0
- package/dist/__legacy__/utils/index.d.ts +20 -0
- package/dist/__legacy__/utils/index.d.ts.map +1 -0
- package/dist/__legacy__/utils/message-utils.d.ts +38 -0
- package/dist/__legacy__/utils/message-utils.d.ts.map +1 -0
- package/dist/__legacy__/utils/spa-utils.d.ts +108 -0
- package/dist/__legacy__/utils/spa-utils.d.ts.map +1 -0
- package/dist/__legacy__/worker/index.d.ts +20 -0
- package/dist/__legacy__/worker/index.d.ts.map +1 -0
- package/dist/__legacy__/worker/worker-core.d.ts +22 -0
- package/dist/__legacy__/worker/worker-core.d.ts.map +1 -0
- package/dist/__legacy__/worker/worker-receiver.d.ts +22 -0
- package/dist/__legacy__/worker/worker-receiver.d.ts.map +1 -0
- package/dist/cjs/index.js +5172 -0
- package/dist/cjs/index.js.map +1 -0
- package/dist/index.d.ts +45 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +5136 -0
- package/dist/index.js.map +1 -0
- package/dist/models/config.d.ts +20 -0
- package/dist/models/config.d.ts.map +1 -0
- package/dist/theme/getActiveTheme.d.ts +28 -0
- package/dist/theme/getActiveTheme.d.ts.map +1 -0
- package/dist/theme/themeDetection.d.ts +41 -0
- package/dist/theme/themeDetection.d.ts.map +1 -0
- package/dist/utils/handleWebAuthnAuthentication.d.ts +98 -0
- package/dist/utils/handleWebAuthnAuthentication.d.ts.map +1 -0
- package/dist/utils/hasAuthParamsInUrl.d.ts +26 -0
- package/dist/utils/hasAuthParamsInUrl.d.ts.map +1 -0
- package/dist/utils/hasCalledForThisInstanceInUrl.d.ts +27 -0
- package/dist/utils/hasCalledForThisInstanceInUrl.d.ts.map +1 -0
- package/dist/utils/http.d.ts +51 -0
- package/dist/utils/http.d.ts.map +1 -0
- package/dist/utils/navigate.d.ts +43 -0
- package/dist/utils/navigate.d.ts.map +1 -0
- package/dist/utils/v2/resolveEmojiUrisInHtml.d.ts +30 -0
- package/dist/utils/v2/resolveEmojiUrisInHtml.d.ts.map +1 -0
- package/dist/web.worker.d.ts +20 -0
- package/dist/web.worker.d.ts.map +1 -0
- package/package.json +75 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../src/__legacy__/client.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,EAGL,gBAAgB,EAChB,gBAAgB,EAChB,0BAA0B,EAC1B,cAAc,EACd,OAAO,EACP,aAAa,EACb,IAAI,EAEJ,UAAU,EACX,MAAM,uBAAuB,CAAC;AAE/B,OAAO,EAAC,KAAK,EAA6B,MAAM,aAAa,CAAC;AAC9D,OAAO,EAAC,oBAAoB,EAAY,MAAM,WAAW,CAAC;AAC1D,OAAO,EACL,mBAAmB,EACnB,YAAY,IAAI,MAAM,EACtB,iBAAiB,EACjB,YAAY,EACZ,sBAAsB,EACtB,yBAAyB,EACzB,YAAY,EACZ,YAAY,EACZ,qBAAqB,EACrB,wBAAwB,EACzB,MAAM,UAAU,CAAC;AAClB,OAAO,EAAC,cAAc,EAAC,MAAM,kBAAkB,CAAC;AAqBhD;;;;;;;GAOG;AACH,qBAAa,kBAAkB;IAC7B,SAAS,CAAC,MAAM,CAAC,UAAU,EAAE,GAAG,CAAC,MAAM,EAAE,kBAAkB,CAAC,CAAyC;IACrG,SAAS,CAAC,OAAO,EAAE,wBAAwB,GAAG,yBAAyB,GAAG,SAAS,CAAC;IACpF,SAAS,CAAC,QAAQ,EAAE,cAAc,GAAG,SAAS,CAAC;IAC/C,SAAS,CAAC,WAAW,EAAE,OAAO,oBAAoB,CAAwB;IAC1E,SAAS,CAAC,OAAO,EAAE,UAAU,MAAM,CAAc;IACjD,SAAS,CAAC,YAAY,UAAS;IAC/B,SAAS,CAAC,kBAAkB,UAAS;IACrC,SAAS,CAAC,iBAAiB,EAAE,CAAC,QAAQ,EAAE,IAAI,KAAK,IAAI,CAAc;IACnE,SAAS,CAAC,kBAAkB,EAAE,MAAM,IAAI,CAAc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AI,CAAC;IAMnD;;;;;;;;OAQG;IACU,eAAe,IAAI,OAAO,CAAC,OAAO,GAAG,SAAS,CAAC;IAiB5D;;;;;;;;;;;;;;;;;;;OAmBG;IACU,EAAE,CAAC,IAAI,EAAE,KAAK,CAAC,WAAW,EAAE,QAAQ,EAAE,CAAC,QAAQ,CAAC,EAAE,GAAG,KAAK,IAAI,EAAE,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAC1F,EAAE,CAAC,IAAI,EAAE,OAAO,CAAC,KAAK,EAAE,KAAK,CAAC,WAAW,CAAC,EAAE,QAAQ,EAAE,CAAC,QAAQ,CAAC,EAAE,GAAG,KAAK,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC;IAwD3G;;;;;;;;;;;;;;;OAeG;IACU,iBAAiB,IAAI,OAAO,CAAC,OAAO,GAAG,SAAS,CAAC;IAM9D;;;;;;;;;;;;;;;OAeG;IACU,kBAAkB,IAAI,OAAO,CAAC,OAAO,GAAG,SAAS,CAAC;IAM/D;;;;;;;;;;;;;;;;;;;OAmBG;IACU,YAAY,CAAC,MAAM,EAAE,OAAO,CAAC,gBAAgB,CAAC,MAAM,CAAC,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC;IAanF;;;OAGG;IACI,YAAY,CAAC,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI;CAG9C"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) 2026, WSO2 LLC. (https://www.wso2.com).
|
|
3
|
+
*
|
|
4
|
+
* WSO2 LLC. licenses this file to you under the Apache License,
|
|
5
|
+
* Version 2.0 (the "License"); you may not use this file except
|
|
6
|
+
* in compliance with the License.
|
|
7
|
+
* You may obtain a copy of the License at
|
|
8
|
+
*
|
|
9
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
*
|
|
11
|
+
* Unless required by applicable law or agreed to in writing,
|
|
12
|
+
* software distributed under the License is distributed on an
|
|
13
|
+
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
14
|
+
* KIND, either express or implied. See the License for the
|
|
15
|
+
* specific language governing permissions and limitations
|
|
16
|
+
* under the License.
|
|
17
|
+
*/
|
|
18
|
+
export * from './main-thread-client';
|
|
19
|
+
export * from './web-worker-client';
|
|
20
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/__legacy__/clients/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,cAAc,sBAAsB,CAAC;AACrC,cAAc,qBAAqB,CAAC"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) 2025, WSO2 LLC. (https://www.wso2.com).
|
|
3
|
+
*
|
|
4
|
+
* WSO2 LLC. licenses this file to you under the Apache License,
|
|
5
|
+
* Version 2.0 (the "License"); you may not use this file except
|
|
6
|
+
* in compliance with the License.
|
|
7
|
+
* You may obtain a copy of the License at
|
|
8
|
+
*
|
|
9
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
*
|
|
11
|
+
* Unless required by applicable law or agreed to in writing,
|
|
12
|
+
* software distributed under the License is distributed on an
|
|
13
|
+
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
14
|
+
* KIND, either express or implied. See the License for the
|
|
15
|
+
* specific language governing permissions and limitations
|
|
16
|
+
* under the License.
|
|
17
|
+
*/
|
|
18
|
+
import { ThunderIDAuthClient, AuthClientConfig } from '@thunderid/javascript';
|
|
19
|
+
import { AuthenticationHelper } from '../helpers/authentication-helper';
|
|
20
|
+
import { SPAHelper } from '../helpers/spa-helper';
|
|
21
|
+
import { MainThreadClientConfig, MainThreadClientInterface } from '../models';
|
|
22
|
+
export declare const MainThreadClient: (instanceId: number, config: AuthClientConfig<MainThreadClientConfig>, getAuthHelper: (authClient: ThunderIDAuthClient<MainThreadClientConfig>, spaHelper: SPAHelper<MainThreadClientConfig>) => AuthenticationHelper<MainThreadClientConfig>) => Promise<MainThreadClientInterface>;
|
|
23
|
+
//# sourceMappingURL=main-thread-client.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"main-thread-client.d.ts","sourceRoot":"","sources":["../../../src/__legacy__/clients/main-thread-client.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,EACL,mBAAmB,EACnB,gBAAgB,EAYjB,MAAM,uBAAuB,CAAC;AAG/B,OAAO,EAAC,oBAAoB,EAAC,MAAM,kCAAkC,CAAC;AAEtE,OAAO,EAAC,SAAS,EAAC,MAAM,uBAAuB,CAAC;AAChD,OAAO,EAA6C,sBAAsB,EAAE,yBAAyB,EAAC,MAAM,WAAW,CAAC;AAoBxH,eAAO,MAAM,gBAAgB,GAC3B,YAAY,MAAM,EAClB,QAAQ,gBAAgB,CAAC,sBAAsB,CAAC,EAChD,eAAe,CACb,UAAU,EAAE,mBAAmB,CAAC,sBAAsB,CAAC,EACvD,SAAS,EAAE,SAAS,CAAC,sBAAsB,CAAC,KACzC,oBAAoB,CAAC,sBAAsB,CAAC,KAChD,OAAO,CAAC,yBAAyB,CAmYnC,CAAC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) 2026, WSO2 LLC. (https://www.wso2.com).
|
|
3
|
+
*
|
|
4
|
+
* WSO2 LLC. licenses this file to you under the Apache License,
|
|
5
|
+
* Version 2.0 (the "License"); you may not use this file except
|
|
6
|
+
* in compliance with the License.
|
|
7
|
+
* You may obtain a copy of the License at
|
|
8
|
+
*
|
|
9
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
*
|
|
11
|
+
* Unless required by applicable law or agreed to in writing,
|
|
12
|
+
* software distributed under the License is distributed on an
|
|
13
|
+
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
14
|
+
* KIND, either express or implied. See the License for the
|
|
15
|
+
* specific language governing permissions and limitations
|
|
16
|
+
* under the License.
|
|
17
|
+
*/
|
|
18
|
+
import { ThunderIDAuthClient, AuthClientConfig } from '@thunderid/javascript';
|
|
19
|
+
import { AuthenticationHelper, SPAHelper } from '../helpers';
|
|
20
|
+
import { WebWorkerClientConfig, WebWorkerClientInterface } from '../models';
|
|
21
|
+
export declare const WebWorkerClient: (instanceId: number, config: AuthClientConfig<WebWorkerClientConfig>, webWorker: new () => Worker, getAuthHelper: (authClient: ThunderIDAuthClient<WebWorkerClientConfig>, spaHelper: SPAHelper<WebWorkerClientConfig>) => AuthenticationHelper<WebWorkerClientConfig>) => Promise<WebWorkerClientInterface>;
|
|
22
|
+
//# sourceMappingURL=web-worker-client.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"web-worker-client.d.ts","sourceRoot":"","sources":["../../../src/__legacy__/clients/web-worker-client.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,EACL,mBAAmB,EAEnB,gBAAgB,EAUjB,MAAM,uBAAuB,CAAC;AA8B/B,OAAO,EAAC,oBAAoB,EAAE,SAAS,EAA0B,MAAM,YAAY,CAAC;AACpF,OAAO,EAQL,qBAAqB,EACrB,wBAAwB,EACzB,MAAM,WAAW,CAAC;AA2BnB,eAAO,MAAM,eAAe,GAC1B,YAAY,MAAM,EAClB,QAAQ,gBAAgB,CAAC,qBAAqB,CAAC,EAC/C,WAAW,UAAU,MAAM,EAC3B,eAAe,CACb,UAAU,EAAE,mBAAmB,CAAC,qBAAqB,CAAC,EACtD,SAAS,EAAE,SAAS,CAAC,qBAAqB,CAAC,KACxC,oBAAoB,CAAC,qBAAqB,CAAC,KAC/C,OAAO,CAAC,wBAAwB,CAsxBlC,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) 2026, WSO2 LLC. (https://www.wso2.com).
|
|
3
|
+
*
|
|
4
|
+
* WSO2 LLC. licenses this file to you under the Apache License,
|
|
5
|
+
* Version 2.0 (the "License"); you may not use this file except
|
|
6
|
+
* in compliance with the License.
|
|
7
|
+
* You may obtain a copy of the License at
|
|
8
|
+
*
|
|
9
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
*
|
|
11
|
+
* Unless required by applicable law or agreed to in writing,
|
|
12
|
+
* software distributed under the License is distributed on an
|
|
13
|
+
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
14
|
+
* KIND, either express or implied. See the License for the
|
|
15
|
+
* specific language governing permissions and limitations
|
|
16
|
+
* under the License.
|
|
17
|
+
*/
|
|
18
|
+
export declare const ACCESS_TOKEN_INVALID = "Access token is invalid";
|
|
19
|
+
//# sourceMappingURL=errors.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../../../src/__legacy__/constants/errors.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,eAAO,MAAM,oBAAoB,4BAA4B,CAAC"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) 2026, WSO2 LLC. (https://www.wso2.com).
|
|
3
|
+
*
|
|
4
|
+
* WSO2 LLC. licenses this file to you under the Apache License,
|
|
5
|
+
* Version 2.0 (the "License"); you may not use this file except
|
|
6
|
+
* in compliance with the License.
|
|
7
|
+
* You may obtain a copy of the License at
|
|
8
|
+
*
|
|
9
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
*
|
|
11
|
+
* Unless required by applicable law or agreed to in writing,
|
|
12
|
+
* software distributed under the License is distributed on an
|
|
13
|
+
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
14
|
+
* KIND, either express or implied. See the License for the
|
|
15
|
+
* specific language governing permissions and limitations
|
|
16
|
+
* under the License.
|
|
17
|
+
*/
|
|
18
|
+
export declare enum Hooks {
|
|
19
|
+
SignIn = "sign-in",
|
|
20
|
+
SignOut = "sign-out",
|
|
21
|
+
Initialize = "initialize",
|
|
22
|
+
HttpRequestStart = "http-request-start",
|
|
23
|
+
HttpRequestFinish = "http-request-finish",
|
|
24
|
+
HttpRequestError = "http-request-error",
|
|
25
|
+
HttpRequestSuccess = "http-request-success",
|
|
26
|
+
RevokeAccessToken = "revoke-access-token",
|
|
27
|
+
CustomGrant = "custom-grant",
|
|
28
|
+
SignOutFailed = "sign-out-failed"
|
|
29
|
+
}
|
|
30
|
+
//# sourceMappingURL=hooks.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"hooks.d.ts","sourceRoot":"","sources":["../../../src/__legacy__/constants/hooks.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,oBAAY,KAAK;IACf,MAAM,YAAY;IAClB,OAAO,aAAa;IACpB,UAAU,eAAe;IACzB,gBAAgB,uBAAuB;IACvC,iBAAiB,wBAAwB;IACzC,gBAAgB,uBAAuB;IACvC,kBAAkB,yBAAyB;IAC3C,iBAAiB,wBAAwB;IACzC,WAAW,iBAAiB;IAC5B,aAAa,oBAAoB;CAClC"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) 2026, WSO2 LLC. (https://www.wso2.com).
|
|
3
|
+
*
|
|
4
|
+
* WSO2 LLC. licenses this file to you under the Apache License,
|
|
5
|
+
* Version 2.0 (the "License"); you may not use this file except
|
|
6
|
+
* in compliance with the License.
|
|
7
|
+
* You may obtain a copy of the License at
|
|
8
|
+
*
|
|
9
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
*
|
|
11
|
+
* Unless required by applicable law or agreed to in writing,
|
|
12
|
+
* software distributed under the License is distributed on an
|
|
13
|
+
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
14
|
+
* KIND, either express or implied. See the License for the
|
|
15
|
+
* specific language governing permissions and limitations
|
|
16
|
+
* under the License.
|
|
17
|
+
*/
|
|
18
|
+
export * from './messages-types';
|
|
19
|
+
export * from './storage';
|
|
20
|
+
export * from './hooks';
|
|
21
|
+
export * from './session-management';
|
|
22
|
+
export * from './parameters';
|
|
23
|
+
export * from './errors';
|
|
24
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/__legacy__/constants/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,cAAc,kBAAkB,CAAC;AACjC,cAAc,WAAW,CAAC;AAC1B,cAAc,SAAS,CAAC;AACxB,cAAc,sBAAsB,CAAC;AACrC,cAAc,cAAc,CAAC;AAC7B,cAAc,UAAU,CAAC"}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) 2026, WSO2 LLC. (https://www.wso2.com).
|
|
3
|
+
*
|
|
4
|
+
* WSO2 LLC. licenses this file to you under the Apache License,
|
|
5
|
+
* Version 2.0 (the "License"); you may not use this file except
|
|
6
|
+
* in compliance with the License.
|
|
7
|
+
* You may obtain a copy of the License at
|
|
8
|
+
*
|
|
9
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
*
|
|
11
|
+
* Unless required by applicable law or agreed to in writing,
|
|
12
|
+
* software distributed under the License is distributed on an
|
|
13
|
+
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
14
|
+
* KIND, either express or implied. See the License for the
|
|
15
|
+
* specific language governing permissions and limitations
|
|
16
|
+
* under the License.
|
|
17
|
+
*/
|
|
18
|
+
export declare const INIT = "init";
|
|
19
|
+
export declare const SIGN_IN = "sign-in";
|
|
20
|
+
export declare const AUTH_CODE = "auth-code";
|
|
21
|
+
export declare const SIGN_OUT = "sign-out";
|
|
22
|
+
export declare const HTTP_REQUEST = "http-request";
|
|
23
|
+
export declare const HTTP_REQUEST_ALL = "http-request-all";
|
|
24
|
+
export declare const REQUEST_CUSTOM_GRANT = "request-custom-grant";
|
|
25
|
+
export declare const REVOKE_ACCESS_TOKEN = "revoke-access-token";
|
|
26
|
+
export declare const END_USER_SESSION = "end-user-session";
|
|
27
|
+
export declare const REQUEST_START = "request-start";
|
|
28
|
+
export declare const REQUEST_SUCCESS = "request-success";
|
|
29
|
+
export declare const REQUEST_ERROR = "request-error";
|
|
30
|
+
export declare const REQUEST_FINISH = "request-finish";
|
|
31
|
+
export declare const GET_OIDC_SERVICE_ENDPOINTS = "get-oidc-service-endpoints";
|
|
32
|
+
export declare const GET_BASIC_USER_INFO = "get-basic-user-info";
|
|
33
|
+
export declare const GET_DECODED_ID_TOKEN = "get-decoded-id-token";
|
|
34
|
+
export declare const GET_DECODED_IDP_ID_TOKEN = "get-decoded-idp-id-token";
|
|
35
|
+
export declare const GET_CRYPTO_HELPER = "get-crypto-helper";
|
|
36
|
+
export declare const ENABLE_HTTP_HANDLER = "enable_http_handler";
|
|
37
|
+
export declare const DISABLE_HTTP_HANDLER = "disable_http_handler";
|
|
38
|
+
export declare const GET_AUTH_URL = "get_auth_url";
|
|
39
|
+
export declare const REQUEST_ACCESS_TOKEN = "request_get_token";
|
|
40
|
+
export declare const IS_AUTHENTICATED = "is_authenticated";
|
|
41
|
+
export declare const GET_SIGN_OUT_URL = "get_sign_out_url";
|
|
42
|
+
export declare const REFRESH_ACCESS_TOKEN = "refresh_access-token";
|
|
43
|
+
export declare const REFRESH_ACCESS_TOKEN_ERR0R = "refresh-access-token-error";
|
|
44
|
+
export declare const SET_SESSION_STATE = "set_session_state";
|
|
45
|
+
export declare const START_AUTO_REFRESH_TOKEN = "start_auto_refresh_token";
|
|
46
|
+
export declare const UPDATE_CONFIG = "update_config";
|
|
47
|
+
export declare const GET_ID_TOKEN = "get_id_token";
|
|
48
|
+
export declare const CHECK_SESSION_SIGNED_IN = "check_session_signed_in";
|
|
49
|
+
export declare const CHECK_SESSION_SIGNED_OUT = "check_session_signed_out";
|
|
50
|
+
export declare const GET_CONFIG_DATA = "get_config_data";
|
|
51
|
+
export declare const SET_SESSION_STATE_FROM_IFRAME = "set_session_state_from_iframe";
|
|
52
|
+
//# sourceMappingURL=messages-types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"messages-types.d.ts","sourceRoot":"","sources":["../../../src/__legacy__/constants/messages-types.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,eAAO,MAAM,IAAI,SAAS,CAAC;AAC3B,eAAO,MAAM,OAAO,YAAY,CAAC;AACjC,eAAO,MAAM,SAAS,cAAc,CAAC;AACrC,eAAO,MAAM,QAAQ,aAAa,CAAC;AACnC,eAAO,MAAM,YAAY,iBAAiB,CAAC;AAC3C,eAAO,MAAM,gBAAgB,qBAAqB,CAAC;AACnD,eAAO,MAAM,oBAAoB,yBAAyB,CAAC;AAC3D,eAAO,MAAM,mBAAmB,wBAAwB,CAAC;AACzD,eAAO,MAAM,gBAAgB,qBAAqB,CAAC;AACnD,eAAO,MAAM,aAAa,kBAAkB,CAAC;AAC7C,eAAO,MAAM,eAAe,oBAAoB,CAAC;AACjD,eAAO,MAAM,aAAa,kBAAkB,CAAC;AAC7C,eAAO,MAAM,cAAc,mBAAmB,CAAC;AAC/C,eAAO,MAAM,0BAA0B,+BAA+B,CAAC;AACvE,eAAO,MAAM,mBAAmB,wBAAwB,CAAC;AACzD,eAAO,MAAM,oBAAoB,yBAAyB,CAAC;AAC3D,eAAO,MAAM,wBAAwB,6BAA6B,CAAC;AACnE,eAAO,MAAM,iBAAiB,sBAAsB,CAAC;AACrD,eAAO,MAAM,mBAAmB,wBAAwB,CAAC;AACzD,eAAO,MAAM,oBAAoB,yBAAyB,CAAC;AAC3D,eAAO,MAAM,YAAY,iBAAiB,CAAC;AAC3C,eAAO,MAAM,oBAAoB,sBAAsB,CAAC;AACxD,eAAO,MAAM,gBAAgB,qBAAqB,CAAC;AACnD,eAAO,MAAM,gBAAgB,qBAAqB,CAAC;AACnD,eAAO,MAAM,oBAAoB,yBAAyB,CAAC;AAC3D,eAAO,MAAM,0BAA0B,+BAA+B,CAAC;AACvE,eAAO,MAAM,iBAAiB,sBAAsB,CAAC;AACrD,eAAO,MAAM,wBAAwB,6BAA6B,CAAC;AACnE,eAAO,MAAM,aAAa,kBAAkB,CAAC;AAC7C,eAAO,MAAM,YAAY,iBAAiB,CAAC;AAC3C,eAAO,MAAM,uBAAuB,4BAA4B,CAAC;AACjE,eAAO,MAAM,wBAAwB,6BAA6B,CAAC;AACnE,eAAO,MAAM,eAAe,oBAAoB,CAAC;AACjD,eAAO,MAAM,6BAA6B,kCAAkC,CAAC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) 2026, WSO2 LLC. (https://www.wso2.com).
|
|
3
|
+
*
|
|
4
|
+
* WSO2 LLC. licenses this file to you under the Apache License,
|
|
5
|
+
* Version 2.0 (the "License"); you may not use this file except
|
|
6
|
+
* in compliance with the License.
|
|
7
|
+
* You may obtain a copy of the License at
|
|
8
|
+
*
|
|
9
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
*
|
|
11
|
+
* Unless required by applicable law or agreed to in writing,
|
|
12
|
+
* software distributed under the License is distributed on an
|
|
13
|
+
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
14
|
+
* KIND, either express or implied. See the License for the
|
|
15
|
+
* specific language governing permissions and limitations
|
|
16
|
+
* under the License.
|
|
17
|
+
*/
|
|
18
|
+
export declare const ERROR = "error";
|
|
19
|
+
export declare const ERROR_DESCRIPTION = "error_description";
|
|
20
|
+
export declare const CUSTOM_GRANT_CONFIG = "custom_grant_config";
|
|
21
|
+
export declare const STATE_QUERY = "state";
|
|
22
|
+
//# sourceMappingURL=parameters.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"parameters.d.ts","sourceRoot":"","sources":["../../../src/__legacy__/constants/parameters.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,eAAO,MAAM,KAAK,UAAU,CAAC;AAC7B,eAAO,MAAM,iBAAiB,sBAAsB,CAAC;AACrD,eAAO,MAAM,mBAAmB,wBAAwB,CAAC;AACzD,eAAO,MAAM,WAAW,UAAU,CAAC"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) 2026, WSO2 LLC. (https://www.wso2.com).
|
|
3
|
+
*
|
|
4
|
+
* WSO2 LLC. licenses this file to you under the Apache License,
|
|
5
|
+
* Version 2.0 (the "License"); you may not use this file except
|
|
6
|
+
* in compliance with the License.
|
|
7
|
+
* You may obtain a copy of the License at
|
|
8
|
+
*
|
|
9
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
*
|
|
11
|
+
* Unless required by applicable law or agreed to in writing,
|
|
12
|
+
* software distributed under the License is distributed on an
|
|
13
|
+
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
14
|
+
* KIND, either express or implied. See the License for the
|
|
15
|
+
* specific language governing permissions and limitations
|
|
16
|
+
* under the License.
|
|
17
|
+
*/
|
|
18
|
+
export declare const OP_IFRAME = "opIFrame";
|
|
19
|
+
export declare const RP_IFRAME = "rpIFrame";
|
|
20
|
+
export declare const PROMPT_NONE_IFRAME = "promptNoneIFrame";
|
|
21
|
+
export declare const STATE = "Y2hlY2tTZXNzaW9u";
|
|
22
|
+
export declare const SILENT_SIGN_IN_STATE = "sign-in-silently";
|
|
23
|
+
export declare const INITIALIZED_SIGN_IN = "initialized-sign-in";
|
|
24
|
+
export declare const INITIALIZED_SILENT_SIGN_IN = "initialized-silent-sign-in";
|
|
25
|
+
export declare const PROMPT_NONE_REQUEST_SENT = "promptNoneRequestSent";
|
|
26
|
+
//# sourceMappingURL=session-management.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"session-management.d.ts","sourceRoot":"","sources":["../../../src/__legacy__/constants/session-management.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,eAAO,MAAM,SAAS,aAAa,CAAC;AACpC,eAAO,MAAM,SAAS,aAAa,CAAC;AACpC,eAAO,MAAM,kBAAkB,qBAAqB,CAAC;AACrD,eAAO,MAAM,KAAK,qBAAqB,CAAC;AACxC,eAAO,MAAM,oBAAoB,qBAAqB,CAAC;AACvD,eAAO,MAAM,mBAAmB,wBAAwB,CAAC;AACzD,eAAO,MAAM,0BAA0B,+BAA+B,CAAC;AACvE,eAAO,MAAM,wBAAwB,0BAA0B,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) 2026, WSO2 LLC. (https://www.wso2.com).
|
|
3
|
+
*
|
|
4
|
+
* WSO2 LLC. licenses this file to you under the Apache License,
|
|
5
|
+
* Version 2.0 (the "License"); you may not use this file except
|
|
6
|
+
* in compliance with the License.
|
|
7
|
+
* You may obtain a copy of the License at
|
|
8
|
+
*
|
|
9
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
*
|
|
11
|
+
* Unless required by applicable law or agreed to in writing,
|
|
12
|
+
* software distributed under the License is distributed on an
|
|
13
|
+
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
14
|
+
* KIND, either express or implied. See the License for the
|
|
15
|
+
* specific language governing permissions and limitations
|
|
16
|
+
* under the License.
|
|
17
|
+
*/
|
|
18
|
+
export declare const TOKEN_REQUEST_CONFIG_KEY = "token_request_config";
|
|
19
|
+
//# sourceMappingURL=storage.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"storage.d.ts","sourceRoot":"","sources":["../../../src/__legacy__/constants/storage.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,eAAO,MAAM,wBAAwB,yBAAyB,CAAC"}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) 2026, WSO2 LLC. (https://www.wso2.com).
|
|
3
|
+
*
|
|
4
|
+
* WSO2 LLC. licenses this file to you under the Apache License,
|
|
5
|
+
* Version 2.0 (the "License"); you may not use this file except
|
|
6
|
+
* in compliance with the License.
|
|
7
|
+
* You may obtain a copy of the License at
|
|
8
|
+
*
|
|
9
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
*
|
|
11
|
+
* Unless required by applicable law or agreed to in writing,
|
|
12
|
+
* software distributed under the License is distributed on an
|
|
13
|
+
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
14
|
+
* KIND, either express or implied. See the License for the
|
|
15
|
+
* specific language governing permissions and limitations
|
|
16
|
+
* under the License.
|
|
17
|
+
*/
|
|
18
|
+
import { ThunderIDAuthClient, AuthClientConfig, User, IsomorphicCrypto, TokenExchangeRequestConfig, StorageManager, IdToken, ExtendedAuthorizeRequestUrlParams, OIDCEndpoints, HttpClient } from '@thunderid/javascript';
|
|
19
|
+
import { SPAHelper } from './spa-helper';
|
|
20
|
+
import { HttpError, HttpRequestConfig, HttpRequestInterface, HttpResponse, MainThreadClientConfig, SessionManagementHelperInterface, WebWorkerClientConfig } from '../models';
|
|
21
|
+
import { SPACustomGrantConfig } from '../models/request-custom-grant';
|
|
22
|
+
export declare class AuthenticationHelper<T extends MainThreadClientConfig | WebWorkerClientConfig> {
|
|
23
|
+
protected _authenticationClient: ThunderIDAuthClient<T>;
|
|
24
|
+
protected _storageManager: StorageManager<T>;
|
|
25
|
+
protected _spaHelper: SPAHelper<T>;
|
|
26
|
+
protected _instanceId: number;
|
|
27
|
+
protected _isTokenRefreshing: boolean;
|
|
28
|
+
constructor(authClient: ThunderIDAuthClient<T>, spaHelper: SPAHelper<T>);
|
|
29
|
+
enableHttpHandler(httpClient: HttpClient): void;
|
|
30
|
+
disableHttpHandler(httpClient: HttpClient): void;
|
|
31
|
+
initializeSessionManger(config: AuthClientConfig<T>, oidcEndpoints: OIDCEndpoints, getSessionState: () => Promise<string>, getAuthzURL: (params?: ExtendedAuthorizeRequestUrlParams) => Promise<string>, sessionManagementHelper: SessionManagementHelperInterface): void;
|
|
32
|
+
exchangeToken(config: SPACustomGrantConfig, enableRetrievingSignOutURLFromSession?: (config: SPACustomGrantConfig) => void): Promise<User | Response>;
|
|
33
|
+
getCustomGrantConfigData(): Promise<AuthClientConfig<TokenExchangeRequestConfig> | null>;
|
|
34
|
+
refreshAccessToken(enableRetrievingSignOutURLFromSession?: (config: SPACustomGrantConfig) => void): Promise<User>;
|
|
35
|
+
protected retryFailedRequests(failedRequest: HttpRequestInterface): Promise<HttpResponse>;
|
|
36
|
+
httpRequest(httpClient: HttpClient, requestConfig: HttpRequestConfig, isHttpHandlerEnabled?: boolean, httpErrorCallback?: (error: HttpError) => void | Promise<void>, httpFinishCallback?: () => void, enableRetrievingSignOutURLFromSession?: (config: SPACustomGrantConfig) => void): Promise<HttpResponse>;
|
|
37
|
+
httpRequestAll(requestConfigs: HttpRequestConfig[], httpClient: HttpClient, isHttpHandlerEnabled?: boolean, httpErrorCallback?: (error: HttpError) => void | Promise<void>, httpFinishCallback?: () => void): Promise<HttpResponse[] | undefined>;
|
|
38
|
+
requestAccessToken(authorizationCode?: string, sessionState?: string, checkSession?: () => Promise<void>, pkce?: string, state?: string, tokenRequestConfig?: {
|
|
39
|
+
params: Record<string, unknown>;
|
|
40
|
+
}): Promise<User>;
|
|
41
|
+
signInSilently(constructSilentSignInUrl: (additionalParams?: Record<string, string | boolean>) => Promise<string>, requestAccessToken: (authzCode: string, sessionState: string, state: string, tokenRequestConfig?: {
|
|
42
|
+
params: Record<string, unknown>;
|
|
43
|
+
}) => Promise<User>, sessionManagementHelper: SessionManagementHelperInterface, additionalParams?: Record<string, string | boolean>, tokenRequestConfig?: {
|
|
44
|
+
params: Record<string, unknown>;
|
|
45
|
+
}): Promise<User | boolean>;
|
|
46
|
+
handleSignIn(shouldStopAuthn: () => Promise<boolean>, checkSession: () => Promise<void>, tryRetrievingUserInfo?: () => Promise<User | undefined>): Promise<User | undefined>;
|
|
47
|
+
attachTokenToRequestConfig(request: HttpRequestConfig): Promise<void>;
|
|
48
|
+
getUser(): Promise<User>;
|
|
49
|
+
getDecodedIdToken(sessionId?: string): Promise<IdToken>;
|
|
50
|
+
getDecodedIDPIDToken(): Promise<IdToken>;
|
|
51
|
+
getCrypto(): Promise<IsomorphicCrypto>;
|
|
52
|
+
getIdToken(): Promise<string>;
|
|
53
|
+
getOpenIDProviderEndpoints(): Promise<OIDCEndpoints>;
|
|
54
|
+
getAccessToken(sessionId?: string): Promise<string>;
|
|
55
|
+
getIDPAccessToken(): Promise<string>;
|
|
56
|
+
getStorageManager(): StorageManager<T>;
|
|
57
|
+
isSignedIn(): Promise<boolean>;
|
|
58
|
+
}
|
|
59
|
+
//# sourceMappingURL=authentication-helper.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"authentication-helper.d.ts","sourceRoot":"","sources":["../../../src/__legacy__/helpers/authentication-helper.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,EACL,mBAAmB,EAEnB,gBAAgB,EAChB,IAAI,EACJ,gBAAgB,EAChB,0BAA0B,EAC1B,cAAc,EACd,OAAO,EACP,iCAAiC,EACjC,aAAa,EAIb,UAAU,EACX,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAC,SAAS,EAAC,MAAM,cAAc,CAAC;AAYvC,OAAO,EAEL,SAAS,EACT,iBAAiB,EACjB,oBAAoB,EACpB,YAAY,EACZ,sBAAsB,EAEtB,gCAAgC,EAChC,qBAAqB,EACtB,MAAM,WAAW,CAAC;AACnB,OAAO,EAAC,oBAAoB,EAAC,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the Apache License,
|
|
5
|
+
* Version 2.0 (the "License"); you may not use this file except
|
|
6
|
+
* in compliance with the License.
|
|
7
|
+
* You may obtain a copy of the License at
|
|
8
|
+
*
|
|
9
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
*
|
|
11
|
+
* Unless required by applicable law or agreed to in writing,
|
|
12
|
+
* software distributed under the License is distributed on an
|
|
13
|
+
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
14
|
+
* KIND, either express or implied. See the License for the
|
|
15
|
+
* specific language governing permissions and limitations
|
|
16
|
+
* under the License.
|
|
17
|
+
*/
|
|
18
|
+
export * from './authentication-helper';
|
|
19
|
+
export * from './spa-helper';
|
|
20
|
+
export * from './session-management-helper';
|
|
21
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/__legacy__/helpers/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,cAAc,yBAAyB,CAAC;AACxC,cAAc,cAAc,CAAC;AAC7B,cAAc,6BAA6B,CAAC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) 2026, WSO2 LLC. (https://www.wso2.com).
|
|
3
|
+
*
|
|
4
|
+
* WSO2 LLC. licenses this file to you under the Apache License,
|
|
5
|
+
* Version 2.0 (the "License"); you may not use this file except
|
|
6
|
+
* in compliance with the License.
|
|
7
|
+
* You may obtain a copy of the License at
|
|
8
|
+
*
|
|
9
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
*
|
|
11
|
+
* Unless required by applicable law or agreed to in writing,
|
|
12
|
+
* software distributed under the License is distributed on an
|
|
13
|
+
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
14
|
+
* KIND, either express or implied. See the License for the
|
|
15
|
+
* specific language governing permissions and limitations
|
|
16
|
+
* under the License.
|
|
17
|
+
*/
|
|
18
|
+
import { SessionManagementHelperInterface } from '../models';
|
|
19
|
+
import { BrowserStorage } from '../models/storage';
|
|
20
|
+
export declare const SessionManagementHelper: (signOut: () => Promise<string>, storage: BrowserStorage, setSessionState: (sessionState: string) => void) => Promise<SessionManagementHelperInterface>;
|
|
21
|
+
//# sourceMappingURL=session-management-helper.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"session-management-helper.d.ts","sourceRoot":"","sources":["../../../src/__legacy__/helpers/session-management-helper.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAeH,OAAO,EAA6B,gCAAgC,EAAC,MAAM,WAAW,CAAC;AACvF,OAAO,EAAC,cAAc,EAAC,MAAM,mBAAmB,CAAC;AAGjD,eAAO,MAAM,uBAAuB,YA+NvB,MAAM,OAAO,CAAC,MAAM,CAAC,WACrB,cAAc,mBACN,CAAC,YAAY,EAAE,MAAM,KAAK,IAAI,KAC9C,OAAO,CAAC,gCAAgC,CAkDzC,CAAC"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) 2026, WSO2 LLC. (https://www.wso2.com).
|
|
3
|
+
*
|
|
4
|
+
* WSO2 LLC. licenses this file to you under the Apache License,
|
|
5
|
+
* Version 2.0 (the "License"); you may not use this file except
|
|
6
|
+
* in compliance with the License.
|
|
7
|
+
* You may obtain a copy of the License at
|
|
8
|
+
*
|
|
9
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
*
|
|
11
|
+
* Unless required by applicable law or agreed to in writing,
|
|
12
|
+
* software distributed under the License is distributed on an
|
|
13
|
+
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
14
|
+
* KIND, either express or implied. See the License for the
|
|
15
|
+
* specific language governing permissions and limitations
|
|
16
|
+
* under the License.
|
|
17
|
+
*/
|
|
18
|
+
import { ThunderIDAuthClient } from '@thunderid/javascript';
|
|
19
|
+
import { AuthenticationHelper } from '../helpers/authentication-helper';
|
|
20
|
+
import { MainThreadClientConfig, WebWorkerClientConfig } from '../models/client-config';
|
|
21
|
+
export declare class SPAHelper<T extends MainThreadClientConfig | WebWorkerClientConfig> {
|
|
22
|
+
private _authenticationClient;
|
|
23
|
+
private _storageManager;
|
|
24
|
+
private _isTokenRefreshLoading;
|
|
25
|
+
constructor(authClient: ThunderIDAuthClient<T>);
|
|
26
|
+
refreshAccessTokenAutomatically(authenticationHelper: AuthenticationHelper<MainThreadClientConfig | WebWorkerClientConfig>): Promise<void>;
|
|
27
|
+
getRefreshTimeoutTimer(): Promise<number>;
|
|
28
|
+
clearRefreshTokenTimeout(timer?: number): Promise<void>;
|
|
29
|
+
}
|
|
30
|
+
//# sourceMappingURL=spa-helper.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"spa-helper.d.ts","sourceRoot":"","sources":["../../../src/__legacy__/helpers/spa-helper.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,EAAC,mBAAmB,EAAiC,MAAM,uBAAuB,CAAC;AAE1F,OAAO,EAAC,oBAAoB,EAAC,MAAM,kCAAkC,CAAC;AACtE,OAAO,EAAC,sBAAsB,EAAE,qBAAqB,EAAC,MAAM,yBAAyB,CAAC;AAEtF,qBAAa,SAAS,CAAC,CAAC,SAAS,sBAAsB,GAAG,qBAAqB;IAC7E,OAAO,CAAC,qBAAqB,CAAyB;IACtD,OAAO,CAAC,eAAe,CAAoB;IAC3C,OAAO,CAAC,sBAAsB,CAAS;gBAEpB,UAAU,EAAE,mBAAmB,CAAC,CAAC,CAAC;IAKxC,+BAA+B,CAC1C,oBAAoB,EAAE,oBAAoB,CAAC,sBAAsB,GAAG,qBAAqB,CAAC,GACzF,OAAO,CAAC,IAAI,CAAC;IAiDH,sBAAsB,IAAI,OAAO,CAAC,MAAM,CAAC;IAYzC,wBAAwB,CAAC,KAAK,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;CAarE"}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) 2026, WSO2 LLC. (https://www.wso2.com).
|
|
3
|
+
*
|
|
4
|
+
* WSO2 LLC. licenses this file to you under the Apache License,
|
|
5
|
+
* Version 2.0 (the "License"); you may not use this file except
|
|
6
|
+
* in compliance with the License.
|
|
7
|
+
* You may obtain a copy of the License at
|
|
8
|
+
*
|
|
9
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
*
|
|
11
|
+
* Unless required by applicable law or agreed to in writing,
|
|
12
|
+
* software distributed under the License is distributed on an
|
|
13
|
+
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
14
|
+
* KIND, either express or implied. See the License for the
|
|
15
|
+
* specific language governing permissions and limitations
|
|
16
|
+
* under the License.
|
|
17
|
+
*/
|
|
18
|
+
import { AuthClientConfig } from '@thunderid/javascript';
|
|
19
|
+
import { BrowserStorage } from './storage';
|
|
20
|
+
export interface SPAConfig {
|
|
21
|
+
/**
|
|
22
|
+
* Enable OIDC Session Management with PR Iframe.
|
|
23
|
+
* @remarks If the consumer app the OP is hosted in different domains,
|
|
24
|
+
* third party cookies has to be enabled for this to work properly.
|
|
25
|
+
*/
|
|
26
|
+
syncSession?: boolean;
|
|
27
|
+
checkSessionInterval?: number;
|
|
28
|
+
sessionRefreshInterval?: number;
|
|
29
|
+
allowedExternalUrls?: string[];
|
|
30
|
+
authParams?: Record<string, string>;
|
|
31
|
+
periodicTokenRefresh?: boolean;
|
|
32
|
+
autoLogoutOnTokenRefreshError?: boolean;
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* SDK Client config parameters.
|
|
36
|
+
*/
|
|
37
|
+
export interface MainThreadClientConfig extends SPAConfig {
|
|
38
|
+
/**
|
|
39
|
+
* The storage type to be used for storing the session information.
|
|
40
|
+
*/
|
|
41
|
+
storage?: BrowserStorage.SessionStorage | BrowserStorage.LocalStorage | BrowserStorage.BrowserMemory | 'sessionStorage' | 'localStorage' | 'browserMemory';
|
|
42
|
+
}
|
|
43
|
+
export interface WebWorkerClientConfig extends SPAConfig {
|
|
44
|
+
/**
|
|
45
|
+
* The storage type to be used for storing the session information.
|
|
46
|
+
*/
|
|
47
|
+
storage: BrowserStorage.WebWorker | 'webWorker';
|
|
48
|
+
/**
|
|
49
|
+
* Specifies in seconds how long a request to the web worker should wait before being timed.
|
|
50
|
+
*/
|
|
51
|
+
requestTimeout?: number;
|
|
52
|
+
}
|
|
53
|
+
export type Config = MainThreadClientConfig | WebWorkerClientConfig;
|
|
54
|
+
export type AuthSPAClientConfig = AuthClientConfig<Config>;
|
|
55
|
+
//# sourceMappingURL=client-config.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"client-config.d.ts","sourceRoot":"","sources":["../../../src/__legacy__/models/client-config.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,EAAC,gBAAgB,EAAC,MAAM,uBAAuB,CAAC;AACvD,OAAO,EAAC,cAAc,EAAC,MAAM,WAAW,CAAC;AAEzC,MAAM,WAAW,SAAS;IACxB;;;;OAIG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B,sBAAsB,CAAC,EAAE,MAAM,CAAC;IAChC,mBAAmB,CAAC,EAAE,MAAM,EAAE,CAAC;IAC/B,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACpC,oBAAoB,CAAC,EAAE,OAAO,CAAC;IAC/B,6BAA6B,CAAC,EAAE,OAAO,CAAC;CACzC;AAED;;GAEG;AACH,MAAM,WAAW,sBAAuB,SAAQ,SAAS;IACvD;;OAEG;IACH,OAAO,CAAC,EACJ,cAAc,CAAC,cAAc,GAC7B,cAAc,CAAC,YAAY,GAC3B,cAAc,CAAC,aAAa,GAC5B,gBAAgB,GAChB,cAAc,GACd,eAAe,CAAC;CACrB;AAED,MAAM,WAAW,qBAAsB,SAAQ,SAAS;IACtD;;OAEG;IACH,OAAO,EAAE,cAAc,CAAC,SAAS,GAAG,WAAW,CAAC;IAChD;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB;AAED,MAAM,MAAM,MAAM,GAAG,sBAAsB,GAAG,qBAAqB,CAAC;AAEpE,MAAM,MAAM,mBAAmB,GAAG,gBAAgB,CAAC,MAAM,CAAC,CAAC"}
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) 2026, WSO2 LLC. (https://www.wso2.com).
|
|
3
|
+
*
|
|
4
|
+
* WSO2 LLC. licenses this file to you under the Apache License,
|
|
5
|
+
* Version 2.0 (the "License"); you may not use this file except
|
|
6
|
+
* in compliance with the License.
|
|
7
|
+
* You may obtain a copy of the License at
|
|
8
|
+
*
|
|
9
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
*
|
|
11
|
+
* Unless required by applicable law or agreed to in writing,
|
|
12
|
+
* software distributed under the License is distributed on an
|
|
13
|
+
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
14
|
+
* KIND, either express or implied. See the License for the
|
|
15
|
+
* specific language governing permissions and limitations
|
|
16
|
+
* under the License.
|
|
17
|
+
*/
|
|
18
|
+
import { AuthClientConfig, User, IsomorphicCrypto, TokenExchangeRequestConfig, StorageManager, IdToken, OIDCEndpoints, HttpClient } from '@thunderid/javascript';
|
|
19
|
+
import { HttpError, HttpRequestConfig, HttpResponse, MainThreadClientConfig, SignInConfig, WebWorkerClientConfig } from '.';
|
|
20
|
+
export interface MainThreadClientInterface {
|
|
21
|
+
setHttpRequestStartCallback(callback: () => void): void;
|
|
22
|
+
setHttpRequestSuccessCallback(callback: (response: HttpResponse) => void): void;
|
|
23
|
+
setHttpRequestFinishCallback(callback: () => void): void;
|
|
24
|
+
setHttpRequestErrorCallback(callback: (error: HttpError) => void | Promise<void>): void;
|
|
25
|
+
httpRequest(config: HttpRequestConfig): Promise<HttpResponse>;
|
|
26
|
+
httpRequestAll(config: HttpRequestConfig[]): Promise<HttpResponse[] | undefined>;
|
|
27
|
+
getHttpClient(): HttpClient;
|
|
28
|
+
enableHttpHandler(): boolean;
|
|
29
|
+
disableHttpHandler(): boolean;
|
|
30
|
+
signIn(config?: SignInConfig, authorizationCode?: string, sessionState?: string, afterSignInUrl?: string, tokenRequestConfig?: {
|
|
31
|
+
params: Record<string, unknown>;
|
|
32
|
+
}): Promise<User>;
|
|
33
|
+
signOut(afterSignOutUrl?: string): Promise<boolean>;
|
|
34
|
+
exchangeToken(config: TokenExchangeRequestConfig): Promise<User | Response>;
|
|
35
|
+
refreshAccessToken(): Promise<User>;
|
|
36
|
+
revokeAccessToken(): Promise<boolean>;
|
|
37
|
+
getUser(): Promise<User>;
|
|
38
|
+
getDecodedIdToken(sessionId?: string): Promise<IdToken>;
|
|
39
|
+
getCrypto(): Promise<IsomorphicCrypto>;
|
|
40
|
+
getConfigData(): Promise<AuthClientConfig<MainThreadClientConfig>>;
|
|
41
|
+
getIdToken(): Promise<string>;
|
|
42
|
+
getOpenIDProviderEndpoints(): Promise<OIDCEndpoints>;
|
|
43
|
+
getAccessToken(sessionId?: string): Promise<string>;
|
|
44
|
+
getStorageManager(): Promise<StorageManager<MainThreadClientConfig>>;
|
|
45
|
+
isSignedIn(): Promise<boolean>;
|
|
46
|
+
startAutoRefreshToken(): Promise<void>;
|
|
47
|
+
reInitialize(config: Partial<AuthClientConfig<MainThreadClientConfig>>): Promise<void>;
|
|
48
|
+
signInSilently(additionalParams?: Record<string, string | boolean>, tokenRequestConfig?: {
|
|
49
|
+
params: Record<string, unknown>;
|
|
50
|
+
}): Promise<User | boolean>;
|
|
51
|
+
isSessionActive(): Promise<boolean>;
|
|
52
|
+
decodeJwtToken: <T = Record<string, unknown>>(token: string) => Promise<T>;
|
|
53
|
+
}
|
|
54
|
+
export interface WebWorkerClientInterface {
|
|
55
|
+
exchangeToken(requestParams: TokenExchangeRequestConfig): Promise<Response | User>;
|
|
56
|
+
httpRequest<T = any>(config: HttpRequestConfig): Promise<HttpResponse<T>>;
|
|
57
|
+
httpRequestAll<T = any>(configs: HttpRequestConfig[]): Promise<HttpResponse<T>[]>;
|
|
58
|
+
enableHttpHandler(): Promise<boolean>;
|
|
59
|
+
disableHttpHandler(): Promise<boolean>;
|
|
60
|
+
initialize(): Promise<boolean>;
|
|
61
|
+
signIn(params?: SignInConfig, authorizationCode?: string, sessionState?: string, afterSignInUrl?: string, tokenRequestConfig?: {
|
|
62
|
+
params: Record<string, unknown>;
|
|
63
|
+
}): Promise<User>;
|
|
64
|
+
signOut(afterSignOutUrl?: string): Promise<boolean>;
|
|
65
|
+
revokeAccessToken(): Promise<boolean>;
|
|
66
|
+
getOpenIDProviderEndpoints(): Promise<OIDCEndpoints>;
|
|
67
|
+
getUser(): Promise<User>;
|
|
68
|
+
getConfigData(): Promise<AuthClientConfig<WebWorkerClientConfig>>;
|
|
69
|
+
getDecodedIdToken(sessionId?: string): Promise<IdToken>;
|
|
70
|
+
getDecodedIDPIDToken(): Promise<IdToken>;
|
|
71
|
+
getCrypto(): Promise<IsomorphicCrypto>;
|
|
72
|
+
getIdToken(): Promise<string>;
|
|
73
|
+
isSignedIn(): Promise<boolean>;
|
|
74
|
+
setHttpRequestSuccessCallback(callback: (response: HttpResponse) => void): void;
|
|
75
|
+
setHttpRequestErrorCallback(callback: (response: HttpError) => void | Promise<void>): void;
|
|
76
|
+
setHttpRequestStartCallback(callback: () => void): void;
|
|
77
|
+
setHttpRequestFinishCallback(callback: () => void): void;
|
|
78
|
+
refreshAccessToken(): Promise<User>;
|
|
79
|
+
reInitialize(config: Partial<AuthClientConfig<WebWorkerClientConfig>>): Promise<void>;
|
|
80
|
+
signInSilently(additionalParams?: Record<string, string | boolean>, tokenRequestConfig?: {
|
|
81
|
+
params: Record<string, unknown>;
|
|
82
|
+
}): Promise<User | boolean>;
|
|
83
|
+
decodeJwtToken: <T = Record<string, unknown>>(token: string) => Promise<T>;
|
|
84
|
+
}
|
|
85
|
+
//# sourceMappingURL=client.d.ts.map
|