@okta/spa-platform 0.6.0

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.
Files changed (82) hide show
  1. package/LICENSE +189 -0
  2. package/THIRD-PARTY-NOTICES.md +5 -0
  3. package/dist/esm/Credential/Credential.js +26 -0
  4. package/dist/esm/Credential/Credential.js.map +1 -0
  5. package/dist/esm/Credential/CredentialCoordinator.js +128 -0
  6. package/dist/esm/Credential/CredentialCoordinator.js.map +1 -0
  7. package/dist/esm/Credential/CredentialDataSource.js +24 -0
  8. package/dist/esm/Credential/CredentialDataSource.js.map +1 -0
  9. package/dist/esm/Credential/TokenStorage.js +275 -0
  10. package/dist/esm/Credential/TokenStorage.js.map +1 -0
  11. package/dist/esm/FetchClient/index.js +21 -0
  12. package/dist/esm/FetchClient/index.js.map +1 -0
  13. package/dist/esm/flows/AuthorizationCodeFlow.js +137 -0
  14. package/dist/esm/flows/AuthorizationCodeFlow.js.map +1 -0
  15. package/dist/esm/flows/SessionLogoutFlow.js +45 -0
  16. package/dist/esm/flows/SessionLogoutFlow.js.map +1 -0
  17. package/dist/esm/flows/TransactionStorage.js +32 -0
  18. package/dist/esm/flows/TransactionStorage.js.map +1 -0
  19. package/dist/esm/index.js +36 -0
  20. package/dist/esm/index.js.map +1 -0
  21. package/dist/esm/orchestrators/AuthorizationCodeFlowOrchestrator.js +124 -0
  22. package/dist/esm/orchestrators/AuthorizationCodeFlowOrchestrator.js.map +1 -0
  23. package/dist/esm/orchestrators/HostOrchestrator/Host.js +161 -0
  24. package/dist/esm/orchestrators/HostOrchestrator/Host.js.map +1 -0
  25. package/dist/esm/orchestrators/HostOrchestrator/OrchestrationBridge.js +37 -0
  26. package/dist/esm/orchestrators/HostOrchestrator/OrchestrationBridge.js.map +1 -0
  27. package/dist/esm/orchestrators/HostOrchestrator/SubApp.js +139 -0
  28. package/dist/esm/orchestrators/HostOrchestrator/SubApp.js.map +1 -0
  29. package/dist/esm/orchestrators/HostOrchestrator/index.js +45 -0
  30. package/dist/esm/orchestrators/HostOrchestrator/index.js.map +1 -0
  31. package/dist/esm/platform/OAuth2Client.js +30 -0
  32. package/dist/esm/platform/OAuth2Client.js.map +1 -0
  33. package/dist/esm/platform/defaults.js +25 -0
  34. package/dist/esm/platform/defaults.js.map +1 -0
  35. package/dist/esm/platform/dpop/authority.js +19 -0
  36. package/dist/esm/platform/dpop/authority.js.map +1 -0
  37. package/dist/esm/platform/dpop/nonceCache.js +32 -0
  38. package/dist/esm/platform/dpop/nonceCache.js.map +1 -0
  39. package/dist/esm/platform/index.js +21 -0
  40. package/dist/esm/platform/index.js.map +1 -0
  41. package/dist/esm/utils/IndexedDBStore.js +117 -0
  42. package/dist/esm/utils/IndexedDBStore.js.map +1 -0
  43. package/dist/esm/utils/LocalBroadcastChannel.js +114 -0
  44. package/dist/esm/utils/LocalBroadcastChannel.js.map +1 -0
  45. package/dist/esm/utils/LocalStorageCache.js +78 -0
  46. package/dist/esm/utils/LocalStorageCache.js.map +1 -0
  47. package/dist/esm/utils/SynchronizedResult.js +101 -0
  48. package/dist/esm/utils/SynchronizedResult.js.map +1 -0
  49. package/dist/esm/utils/UserAgent.js +18 -0
  50. package/dist/esm/utils/UserAgent.js.map +1 -0
  51. package/dist/esm/utils/isModernBrowser.js +25 -0
  52. package/dist/esm/utils/isModernBrowser.js.map +1 -0
  53. package/dist/types/Credential/Credential.d.ts +20 -0
  54. package/dist/types/Credential/CredentialCoordinator.d.ts +28 -0
  55. package/dist/types/Credential/CredentialDataSource.d.ts +9 -0
  56. package/dist/types/Credential/TokenStorage.d.ts +56 -0
  57. package/dist/types/Credential/index.d.ts +5 -0
  58. package/dist/types/FetchClient/index.d.ts +13 -0
  59. package/dist/types/flows/AuthorizationCodeFlow.d.ts +95 -0
  60. package/dist/types/flows/SessionLogoutFlow.d.ts +9 -0
  61. package/dist/types/flows/TransactionStorage.d.ts +9 -0
  62. package/dist/types/flows/index.d.ts +6 -0
  63. package/dist/types/index.d.ts +18 -0
  64. package/dist/types/orchestrators/AuthorizationCodeFlowOrchestrator.d.ts +55 -0
  65. package/dist/types/orchestrators/HostOrchestrator/Host.d.ts +21 -0
  66. package/dist/types/orchestrators/HostOrchestrator/OrchestrationBridge.d.ts +10 -0
  67. package/dist/types/orchestrators/HostOrchestrator/SubApp.d.ts +29 -0
  68. package/dist/types/orchestrators/HostOrchestrator/index.d.ts +170 -0
  69. package/dist/types/orchestrators/index.d.ts +5 -0
  70. package/dist/types/platform/OAuth2Client.d.ts +13 -0
  71. package/dist/types/platform/defaults.d.ts +2 -0
  72. package/dist/types/platform/dpop/authority.d.ts +6 -0
  73. package/dist/types/platform/dpop/index.d.ts +5 -0
  74. package/dist/types/platform/dpop/nonceCache.d.ts +16 -0
  75. package/dist/types/platform/index.d.ts +12 -0
  76. package/dist/types/utils/IndexedDBStore.d.ts +20 -0
  77. package/dist/types/utils/LocalBroadcastChannel.d.ts +39 -0
  78. package/dist/types/utils/LocalStorageCache.d.ts +35 -0
  79. package/dist/types/utils/SynchronizedResult.d.ts +40 -0
  80. package/dist/types/utils/UserAgent.d.ts +6 -0
  81. package/dist/types/utils/isModernBrowser.d.ts +9 -0
  82. package/package.json +1 -0
package/LICENSE ADDED
@@ -0,0 +1,189 @@
1
+ Okta Auth SDK License
2
+
3
+ The Okta software accompanied by this notice is provided pursuant to the
4
+ following terms:
5
+
6
+ Copyright © 2015-present, Okta, Inc.
7
+
8
+ Licensed under the Apache License, Version 2.0 (the "License"); you may not use
9
+ this file except in compliance with the License. You may obtain a copy of the
10
+ License at http://www.apache.org/licenses/LICENSE-2.0. Unless required by
11
+ applicable law or agreed to in writing, software distributed under the License
12
+ is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
13
+ KIND, either express or implied. See the License for the specific language
14
+ governing permissions and limitations under the License.
15
+
16
+ The Okta software accompanied by this notice has build dependencies on certain
17
+ third party software licensed under separate terms ("Third Party Components")
18
+ located in THIRD_PARTY_NOTICES.
19
+
20
+
21
+ Apache License
22
+ Version 2.0, January 2004
23
+ http://www.apache.org/licenses/
24
+
25
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
26
+
27
+ 1. Definitions.
28
+
29
+ "License" shall mean the terms and conditions for use, reproduction, and
30
+ distribution as defined by Sections 1 through 9 of this document.
31
+
32
+ "Licensor" shall mean the copyright owner or entity authorized by the copyright
33
+ owner that is granting the License.
34
+
35
+ "Legal Entity" shall mean the union of the acting entity and all other entities
36
+ that control, are controlled by, or are under common control with that entity.
37
+ For the purposes of this definition, "control" means (i) the power, direct or
38
+ indirect, to cause the direction or management of such entity, whether by
39
+ contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the
40
+ outstanding shares, or (iii) beneficial ownership of such entity.
41
+
42
+ You" (or "Your") shall mean an individual or Legal Entity exercising
43
+ permissions granted by this License.
44
+
45
+ "Source" form shall mean the preferred form for making modifications, including
46
+ but not limited to software source code, documentation source, and
47
+ configuration files.
48
+
49
+ "Object" form shall mean any form resulting from mechanical transformation or
50
+ translation of a Source form, including but not limited to compiled object
51
+ code, generated documentation, and conversions to other media types.
52
+
53
+ "Work" shall mean the work of authorship, whether in Source or Object form,
54
+ made available under the License, as indicated by a copyright notice that is
55
+ included in or attached to the work (an example is provided in the Appendix
56
+ below).
57
+
58
+ "Derivative Works" shall mean any work, whether in Source or Object form, that
59
+ is based on (or derived from) the Work and for which the editorial revisions,
60
+ annotations, elaborations, or other modifications represent, as a whole, an
61
+ original work of authorship. For the purposes of this License, Derivative Works
62
+ shall not include works that remain separable from, or merely link (or bind by
63
+ name) to the interfaces of, the Work and Derivative Works thereof.
64
+
65
+ "Contribution" shall mean any work of authorship, including the original
66
+ version of the Work and any modifications or additions to that Work or
67
+ Derivative Works thereof, that is intentionally submitted to Licensor for
68
+ inclusion in the Work by the copyright owner or by an individual or Legal
69
+ Entity authorized to submit on behalf of the copyright owner. For the purposes
70
+ of this definition, "submitted" means any form of electronic, verbal, or
71
+ written communication sent to the Licensor or its representatives, including
72
+ but not limited to communication on electronic mailing lists, source code
73
+ control systems, and issue tracking systems that are managed by, or on behalf
74
+ of, the Licensor for the purpose of discussing and improving the Work, but
75
+ excluding communication that is conspicuously marked or otherwise designated in
76
+ writing by the copyright owner as "Not a Contribution."
77
+
78
+ "Contributor" shall mean Licensor and any individual or Legal Entity on behalf
79
+ of whom a Contribution has been received by Licensor and subsequently
80
+ incorporated within the Work.
81
+ 2. Grant of Copyright License. Subject to the terms and conditions of this
82
+ License, each Contributor hereby grants to You a perpetual, worldwide,
83
+ non-exclusive, no-charge, royalty-free, irrevocable copyright license to
84
+ reproduce, prepare Derivative Works of, publicly display, publicly perform,
85
+ sublicense, and distribute the Work and such Derivative Works in Source or
86
+ Object form.
87
+
88
+ 3. Grant of Patent License. Subject to the terms and conditions of this
89
+ License, each Contributor hereby grants to You a perpetual, worldwide,
90
+ non-exclusive, no-charge, royalty-free, irrevocable (except as stated in this
91
+ section) patent license to make, have made, use, offer to sell, sell, import,
92
+ and otherwise transfer the Work, where such license applies only to those
93
+ patent claims licensable by such Contributor that are necessarily infringed by
94
+ their Contribution(s) alone or by combination of their Contribution(s) with the
95
+ Work to which such Contribution(s) was submitted. If You institute patent
96
+ litigation against any entity (including a cross-claim or counterclaim in a
97
+ lawsuit) alleging that the Work or a Contribution incorporated within the Work
98
+ constitutes direct or contributory patent infringement, then any patent
99
+ licenses granted to You under this License for that Work shall terminate as of
100
+ the date such litigation is filed.
101
+
102
+ 4. Redistribution. You may reproduce and distribute copies of the Work or
103
+ Derivative Works thereof in any medium, with or without modifications, and in
104
+ Source or Object form, provided that You meet the following conditions:
105
+
106
+ (a) You must give any other recipients of the Work or Derivative Works a copy
107
+ of this License; and
108
+
109
+ (b) You must cause any modified files to carry prominent notices stating that
110
+ You changed the files; and
111
+
112
+ (c) You must retain, in the Source form of any Derivative Works that You
113
+ distribute, all copyright, patent, trademark, and attribution notices from the
114
+ Source form of the Work, excluding those notices that do not pertain to any
115
+ part of the Derivative Works; and
116
+
117
+ (d) If the Work includes a "NOTICE" text file as part of its distribution, then
118
+ any Derivative Works that You distribute must include a readable copy of the
119
+ attribution notices contained within such NOTICE file, excluding those notices
120
+ that do not pertain to any part of the Derivative Works, in at least one of the
121
+ following places: within a NOTICE text file distributed as part of the
122
+ Derivative Works; within the Source form or documentation, if provided along
123
+ with the Derivative Works; or, within a display generated by the Derivative
124
+ Works, if and wherever such third-party notices normally appear. The contents
125
+ of the NOTICE file are for informational purposes only and do not modify the
126
+ License. You may add Your own attribution notices within Derivative Works that
127
+ You distribute, alongside or as an addendum to the NOTICE text from the Work,
128
+ provided that such additional attribution notices cannot be construed as
129
+ modifying the License.
130
+
131
+ You may add Your own copyright statement to Your modifications and may provide
132
+ additional or different license terms and conditions for use, reproduction, or
133
+ distribution of Your modifications, or for any such Derivative Works as a
134
+ whole, provided Your use, reproduction, and distribution of the Work otherwise
135
+ complies with the conditions stated in this License.
136
+
137
+ 5. Submission of Contributions. Unless You explicitly state otherwise, any
138
+ Contribution intentionally submitted for inclusion in the Work by You to the
139
+ Licensor shall be under the terms and conditions of this License, without any
140
+ additional terms or conditions. Notwithstanding the above, nothing herein shall
141
+ supersede or modify the terms of any separate license agreement you may have
142
+ executed with Licensor regarding such Contributions.
143
+
144
+ 6. Trademarks. This License does not grant permission to use the trade names,
145
+ trademarks, service marks, or product names of the Licensor, except as required
146
+ for reasonable and customary use in describing the origin of the Work and
147
+ reproducing the content of the NOTICE file.
148
+
149
+ 7. Disclaimer of Warranty. Unless required by applicable law or agreed to in
150
+ writing, Licensor provides the Work (and each Contributor provides its
151
+ Contributions) on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
152
+ KIND, either express or implied, including, without limitation, any warranties
153
+ or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
154
+ PARTICULAR PURPOSE. You are solely responsible for determining the
155
+ appropriateness of using or redistributing the Work and assume any risks
156
+ associated with Your exercise of permissions under this License.
157
+
158
+ 8. Limitation of Liability. In no event and under no legal theory, whether in
159
+ tort (including negligence), contract, or otherwise, unless required by
160
+ applicable law (such as deliberate and grossly negligent acts) or agreed to in
161
+ writing, shall any Contributor be liable to You for damages, including any
162
+ direct, indirect, special, incidental, or consequential damages of any
163
+ character arising as a result of this License or out of the use or inability to
164
+ use the Work (including but not limited to damages for loss of goodwill, work
165
+ stoppage, computer failure or malfunction, or any and all other commercial
166
+ damages or losses), even if such Contributor has been advised of the
167
+ possibility of such damages.
168
+
169
+ 9. Accepting Warranty or Additional Liability. While redistributing the Work or
170
+ Derivative Works thereof, You may choose to offer, and charge a fee for,
171
+ acceptance of support, warranty, indemnity, or other liability obligations
172
+ and/or rights consistent with this License. However, in accepting such
173
+ obligations, You may act only on Your own behalf and on Your sole
174
+ responsibility, not on behalf of any other Contributor, and only if You agree
175
+ to indemnify, defend, and hold each Contributor harmless for any liability
176
+ incurred by, or claims asserted against, such Contributor by reason of your
177
+ accepting any such warranty or additional liability.
178
+
179
+ END OF TERMS AND CONDITIONS
180
+
181
+ APPENDIX: How to apply the Apache License to your work.
182
+
183
+ To apply the Apache License to your work, attach the following boilerplate
184
+ notice, with the fields enclosed by brackets "[]" replaced with your own
185
+ identifying information. (Don't include the brackets!) The text should be
186
+ enclosed in the appropriate comment syntax for the file format. We also
187
+ recommend that a file or class name and description of purpose be included on
188
+ the same "printed page" as the copyright notice for easier identification
189
+ within third-party archives.
@@ -0,0 +1,5 @@
1
+ This file was generated with the generate-license-file npm package!
2
+ https://www.npmjs.com/package/generate-license-file
3
+
4
+ This file was generated with the generate-license-file npm package!
5
+ https://www.npmjs.com/package/generate-license-file
@@ -0,0 +1,26 @@
1
+ /*!
2
+ * Copyright (c) 2015-present, Okta, Inc. and/or its affiliates. All rights reserved.
3
+ * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.")
4
+ *
5
+ * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.
6
+ * Unless required by applicable law or agreed to in writing, software
7
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
8
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
9
+ *
10
+ * See the License for the specific language governing permissions and limitations under the License.
11
+ */
12
+
13
+ import { Credential as Credential$1 } from '@okta/auth-foundation/core';
14
+ import { CredentialCoordinatorImpl } from './CredentialCoordinator.js';
15
+
16
+ class Credential extends Credential$1 {
17
+ static {
18
+ this.coordinator = new CredentialCoordinatorImpl(this);
19
+ }
20
+ static close() {
21
+ this.coordinator?.close?.();
22
+ }
23
+ }
24
+
25
+ export { Credential };
26
+ //# sourceMappingURL=Credential.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Credential.js","sources":["../../../../src/Credential/Credential.ts"],"sourcesContent":[null],"names":["CredentialBase"],"mappings":";;;;;;;;;;;;;;;AAmBM,CAAA,CAAA,CAAA,CAAA,CAAA,CAAO,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAW,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAQA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAc,CAAA,CAAA;AAC5C,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;QACE,CAAA,CAAA,CAAA,CAAI,CAAC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAW,CAAA,CAAA,CAAG,IAAI,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAyB,CAAC,IAAI,CAAC,CAAA;;AASjD,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAO,KAAK,CAAA,CAAA,CAAA,CAAA;AAEhB,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAI,CAAC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAyC,CAAA,CAAE,KAAK,CAAA,CAAA,CAAA,CAAI,CAAA;IAC5D,CAAA;AACD,CAAA;;"}
@@ -0,0 +1,128 @@
1
+ /*!
2
+ * Copyright (c) 2015-present, Okta, Inc. and/or its affiliates. All rights reserved.
3
+ * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.")
4
+ *
5
+ * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.
6
+ * Unless required by applicable law or agreed to in writing, software
7
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
8
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
9
+ *
10
+ * See the License for the specific language governing permissions and limitations under the License.
11
+ */
12
+
13
+ import { CredentialCoordinatorImpl as CredentialCoordinatorImpl$1, shortID, pause, Token } from '@okta/auth-foundation/core';
14
+ import { DefaultCredentialDataSource } from './CredentialDataSource.js';
15
+ import { BrowserTokenStorage } from './TokenStorage.js';
16
+ import { isFirefox } from '../utils/UserAgent.js';
17
+
18
+ function log(...args) { }
19
+ class CredentialCoordinatorImpl extends CredentialCoordinatorImpl$1 {
20
+ id = shortID();
21
+ channel = new BroadcastChannel('CredentialCoordinatorImpl');
22
+ constructor(CredentialConstructor) {
23
+ super(CredentialConstructor);
24
+ this.tokenStorage = new BrowserTokenStorage();
25
+ this.credentialDataSource = new DefaultCredentialDataSource(CredentialConstructor);
26
+ this.registerTabListeners();
27
+ this.emitter.on('credential_refreshed', ({ credential }) => {
28
+ const { token } = credential;
29
+ this.broadcast('credential_refreshed', { id: token.id, value: token.toJSON() });
30
+ });
31
+ }
32
+ get tokenStorage() {
33
+ return super.tokenStorage;
34
+ }
35
+ set tokenStorage(tokenStorage) {
36
+ if (super.tokenStorage) {
37
+ [
38
+ 'token_added',
39
+ 'token_removed',
40
+ 'default_changed',
41
+ 'metadata_updated',
42
+ ].forEach(evt => super.tokenStorage.emitter.off(evt));
43
+ }
44
+ super.tokenStorage = tokenStorage;
45
+ this.tokenStorage.emitter.on('token_added', ({ token }) => {
46
+ this.broadcast('credential_added', { id: token.id, value: token.toJSON() });
47
+ });
48
+ this.tokenStorage.emitter.on('token_removed', ({ id }) => {
49
+ this.broadcast('credential_removed', { id });
50
+ });
51
+ this.tokenStorage.emitter.on('default_changed', ({ id }) => {
52
+ this.broadcast('default_changed', { id });
53
+ });
54
+ this.tokenStorage.emitter.on('metadata_updated', ({ id }) => {
55
+ this.broadcast('metadata_updated', { id });
56
+ });
57
+ }
58
+ broadcast(eventName, data) {
59
+ this.channel.postMessage({
60
+ eventName,
61
+ source: this.id,
62
+ ...data
63
+ });
64
+ }
65
+ registerTabListeners() {
66
+ this.channel.onmessage = async (event) => {
67
+ if (isFirefox()) {
68
+ await pause(50);
69
+ }
70
+ const { eventName, id, value, source } = event.data;
71
+ if (source == this.id) {
72
+ return;
73
+ }
74
+ if (eventName === 'default_changed') {
75
+ log('default', id, this._default);
76
+ if (id !== this._default?.id) {
77
+ this._default = undefined;
78
+ this.emitter.emit('default_changed', { storage: this.tokenStorage, id });
79
+ }
80
+ }
81
+ else if (eventName === 'cleared') {
82
+ await this.clear(true);
83
+ this.emitter.emit('cleared');
84
+ }
85
+ else if (eventName === 'metadata_updated') {
86
+ const metadata = await this.tokenStorage.getMetadata(id);
87
+ if (metadata) {
88
+ this.emitter.emit('metadata_updated', { storage: this.tokenStorage, id, metadata });
89
+ }
90
+ }
91
+ else {
92
+ const token = new Token({ ...value, id });
93
+ if (eventName === 'credential_removed') {
94
+ if (this.credentialDataSource.hasCredential(token)) {
95
+ this.credentialDataSource.remove(id);
96
+ }
97
+ else {
98
+ this.emitter.emit('credential_removed', { dataSource: this.credentialDataSource, id });
99
+ }
100
+ }
101
+ else {
102
+ const credential = this.credentialDataSource.credentialFor(token);
103
+ if (eventName === 'credential_added') ;
104
+ else if (eventName === 'credential_refreshed') {
105
+ if (Token.isEqual(token, credential.token)) {
106
+ return;
107
+ }
108
+ credential.token = token;
109
+ this.emitter.emit('credential_refreshed', { credential });
110
+ }
111
+ }
112
+ }
113
+ log('allIDs: ', this.allIDs(), 'size: ', this.credentialDataSource.size);
114
+ };
115
+ }
116
+ async clear(localOnly = false) {
117
+ await super.clear(localOnly);
118
+ if (!localOnly) {
119
+ this.broadcast('cleared', {});
120
+ }
121
+ }
122
+ close() {
123
+ this.channel.close();
124
+ }
125
+ }
126
+
127
+ export { CredentialCoordinatorImpl };
128
+ //# sourceMappingURL=CredentialCoordinator.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CredentialCoordinator.js","sources":["../../../../src/Credential/CredentialCoordinator.ts"],"sourcesContent":[null],"names":["CredentialCoordinatorBase"],"mappings":";;;;;;;;;;;;;;;;;AA6BA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAS,CAAA,CAAA,CAAG,CAAE,CAAA,CAAA,CAAG,CAAA,CAAA,CAAA,CAAW,IAAG,CAAA;AAUzB,CAAA,CAAA,CAAA,CAAA,CAAA,CAAO,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAA0B,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAQA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAyB,CAAA,CAAA;IAErD,CAAA,CAAE,CAAA,CAAA,CAAW,CA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,CAAK,CAAC,CAAA,CAAA,CAAA,CAAA,CAAK,CAAC,SAAS,CAAC,CAAA;QAC5B,CAAA,CAAA,CAAA,CAAI,CAAC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAS,CAAA,CAAE,CAAA;AACd,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,IAAI,CAAC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAS,CAAC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAS,CAAA,CAAE,EAAE,CAAC,CAAA;QAC/B,CAAA;IACF,CAAA;IAQO,KAAK,CAAA,CAAA,CAAA,CAAA;AACV,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAI,CAAC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAO,CAAC,KAAK,CAAA,CAAE,CAAA;IACtB,CAAA;AACD,CAAA;;"}
@@ -0,0 +1,24 @@
1
+ /*!
2
+ * Copyright (c) 2015-present, Okta, Inc. and/or its affiliates. All rights reserved.
3
+ * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.")
4
+ *
5
+ * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.
6
+ * Unless required by applicable law or agreed to in writing, software
7
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
8
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
9
+ *
10
+ * See the License for the specific language governing permissions and limitations under the License.
11
+ */
12
+
13
+ import { DefaultCredentialDataSource as DefaultCredentialDataSource$1 } from '@okta/auth-foundation/core';
14
+ import { OAuth2Client } from '../platform/OAuth2Client.js';
15
+ import '../platform/dpop/authority.js';
16
+
17
+ class DefaultCredentialDataSource extends DefaultCredentialDataSource$1 {
18
+ createOAuth2Client(params) {
19
+ return new OAuth2Client(params);
20
+ }
21
+ }
22
+
23
+ export { DefaultCredentialDataSource };
24
+ //# sourceMappingURL=CredentialDataSource.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CredentialDataSource.js","sources":["../../../../src/Credential/CredentialDataSource.ts"],"sourcesContent":[null],"names":["BaseCredentialDataSource"],"mappings":";;;;;;;;;;;;;;;;AAaM,CAAA,CAAA,CAAA,CAAA,CAAA,CAAO,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAA4B,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAQA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAwB,CAAA,CAAA;AAC7D,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAkB,CAAE,CAAA,CAAA,CAAA,CAAA,CAAA,CAA2B,CAAA,CAAA,CAAA;AACvD,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAO,CAAA,CAAA,CAAA,CAAI,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAY,CAAC,MAAM,CAAC,CAAA;IACjC,CAAA;AACD,CAAA;;"}