@okta/okta-auth-js 7.1.1 → 7.2.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 (242) hide show
  1. package/CHANGELOG.md +22 -0
  2. package/README.md +93 -36
  3. package/cjs/core/mixin.js +3 -0
  4. package/cjs/core/mixin.js.map +1 -1
  5. package/cjs/core/types/api.js.map +1 -1
  6. package/cjs/http/OktaUserAgent.js +2 -2
  7. package/cjs/idx/IdxTransactionManager.js +0 -4
  8. package/cjs/idx/IdxTransactionManager.js.map +1 -1
  9. package/cjs/idx/factory/OktaAuthIdx.js.map +1 -1
  10. package/cjs/idx/idxState/v1/idxResponseParser.js +2 -3
  11. package/cjs/idx/idxState/v1/idxResponseParser.js.map +1 -1
  12. package/cjs/idx/mixin.js.map +1 -1
  13. package/cjs/idx/types/api.js.map +1 -1
  14. package/cjs/idx/webauthn.js.map +1 -1
  15. package/cjs/myaccount/api.js +11 -0
  16. package/cjs/myaccount/api.js.map +1 -1
  17. package/cjs/myaccount/emailApi.js +7 -7
  18. package/cjs/myaccount/emailApi.js.map +1 -1
  19. package/cjs/myaccount/passwordApi.js +69 -0
  20. package/cjs/myaccount/passwordApi.js.map +1 -0
  21. package/cjs/myaccount/phoneApi.js +6 -6
  22. package/cjs/myaccount/phoneApi.js.map +1 -1
  23. package/cjs/myaccount/profileApi.js +3 -3
  24. package/cjs/myaccount/profileApi.js.map +1 -1
  25. package/cjs/myaccount/request.js +2 -1
  26. package/cjs/myaccount/request.js.map +1 -1
  27. package/cjs/myaccount/transactions/PasswordTransaction.js +81 -0
  28. package/cjs/myaccount/transactions/PasswordTransaction.js.map +1 -0
  29. package/cjs/myaccount/transactions/index.js +7 -0
  30. package/cjs/myaccount/transactions/index.js.map +1 -1
  31. package/cjs/myaccount/types.js +13 -0
  32. package/cjs/myaccount/types.js.map +1 -1
  33. package/cjs/oidc/TokenManager.js +5 -0
  34. package/cjs/oidc/TokenManager.js.map +1 -1
  35. package/cjs/oidc/endpoints/authorize.js +4 -3
  36. package/cjs/oidc/endpoints/authorize.js.map +1 -1
  37. package/cjs/oidc/enrollAuthenticator.js +33 -0
  38. package/cjs/oidc/enrollAuthenticator.js.map +1 -0
  39. package/cjs/oidc/factory/api.js +11 -11
  40. package/cjs/oidc/factory/api.js.map +1 -1
  41. package/cjs/oidc/getWithRedirect.js +5 -1
  42. package/cjs/oidc/getWithRedirect.js.map +1 -1
  43. package/cjs/oidc/handleOAuthResponse.js +3 -2
  44. package/cjs/oidc/handleOAuthResponse.js.map +1 -1
  45. package/cjs/oidc/mixin/index.js +6 -2
  46. package/cjs/oidc/mixin/index.js.map +1 -1
  47. package/cjs/oidc/types/TokenManager.js.map +1 -1
  48. package/cjs/oidc/types/api.js.map +1 -1
  49. package/cjs/oidc/types/endpoints.js +2 -0
  50. package/cjs/oidc/types/endpoints.js.map +1 -0
  51. package/cjs/oidc/types/index.js +11 -0
  52. package/cjs/oidc/types/index.js.map +1 -1
  53. package/cjs/oidc/types/meta.js.map +1 -1
  54. package/cjs/oidc/types/options.js.map +1 -1
  55. package/cjs/oidc/types/proto.js.map +1 -1
  56. package/cjs/oidc/util/defaultEnrollAuthenticatorParams.js +38 -0
  57. package/cjs/oidc/util/defaultEnrollAuthenticatorParams.js.map +1 -0
  58. package/cjs/oidc/util/enrollAuthenticatorMeta.js +23 -0
  59. package/cjs/oidc/util/enrollAuthenticatorMeta.js.map +1 -0
  60. package/cjs/oidc/util/index.js +36 -0
  61. package/cjs/oidc/util/index.js.map +1 -1
  62. package/cjs/oidc/util/prepareEnrollAuthenticatorParams.js +50 -0
  63. package/cjs/oidc/util/prepareEnrollAuthenticatorParams.js.map +1 -0
  64. package/cjs/services/AutoRenewService.js +15 -0
  65. package/cjs/services/AutoRenewService.js.map +1 -1
  66. package/cjs/util/jsonpath.js +13 -0
  67. package/cjs/util/jsonpath.js.map +1 -0
  68. package/dist/okta-auth-js.authn.min.analyzer.html +2 -2
  69. package/dist/okta-auth-js.authn.min.js +1 -1
  70. package/dist/okta-auth-js.authn.min.js.map +1 -1
  71. package/dist/okta-auth-js.core.min.analyzer.html +2 -2
  72. package/dist/okta-auth-js.core.min.js +1 -1
  73. package/dist/okta-auth-js.core.min.js.map +1 -1
  74. package/dist/okta-auth-js.idx.min.analyzer.html +2 -2
  75. package/dist/okta-auth-js.idx.min.js +1 -1
  76. package/dist/okta-auth-js.idx.min.js.map +1 -1
  77. package/dist/okta-auth-js.min.analyzer.html +2 -2
  78. package/dist/okta-auth-js.min.js +1 -1
  79. package/dist/okta-auth-js.min.js.map +1 -1
  80. package/dist/okta-auth-js.myaccount.min.analyzer.html +2 -2
  81. package/dist/okta-auth-js.myaccount.min.js +1 -1
  82. package/dist/okta-auth-js.myaccount.min.js.map +1 -1
  83. package/esm/browser/core/mixin.js +3 -0
  84. package/esm/browser/core/mixin.js.map +1 -1
  85. package/esm/browser/exports/exports/authn.js +4 -1
  86. package/esm/browser/exports/exports/authn.js.map +1 -1
  87. package/esm/browser/exports/exports/core.js +4 -1
  88. package/esm/browser/exports/exports/core.js.map +1 -1
  89. package/esm/browser/exports/exports/default.js +7 -2
  90. package/esm/browser/exports/exports/default.js.map +1 -1
  91. package/esm/browser/exports/exports/idx.js +4 -1
  92. package/esm/browser/exports/exports/idx.js.map +1 -1
  93. package/esm/browser/exports/exports/myaccount.js +7 -2
  94. package/esm/browser/exports/exports/myaccount.js.map +1 -1
  95. package/esm/browser/http/OktaUserAgent.js +2 -2
  96. package/esm/browser/idx/IdxTransactionManager.js +1 -4
  97. package/esm/browser/idx/IdxTransactionManager.js.map +1 -1
  98. package/esm/browser/idx/factory/OktaAuthIdx.js.map +1 -1
  99. package/esm/browser/idx/idxState/v1/idxResponseParser.js +2 -2
  100. package/esm/browser/idx/idxState/v1/idxResponseParser.js.map +1 -1
  101. package/esm/browser/idx/mixin.js.map +1 -1
  102. package/esm/browser/idx/types/api.js.map +1 -1
  103. package/esm/browser/idx/webauthn.js.map +1 -1
  104. package/esm/browser/myaccount/api.js +1 -0
  105. package/esm/browser/myaccount/api.js.map +1 -1
  106. package/esm/browser/myaccount/emailApi.js.map +1 -1
  107. package/esm/browser/myaccount/passwordApi.js +56 -0
  108. package/esm/browser/myaccount/passwordApi.js.map +1 -0
  109. package/esm/browser/myaccount/phoneApi.js.map +1 -1
  110. package/esm/browser/myaccount/profileApi.js.map +1 -1
  111. package/esm/browser/myaccount/request.js +3 -1
  112. package/esm/browser/myaccount/request.js.map +1 -1
  113. package/esm/browser/myaccount/transactions/PasswordTransaction.js +73 -0
  114. package/esm/browser/myaccount/transactions/PasswordTransaction.js.map +1 -0
  115. package/esm/browser/myaccount/types.js +6 -1
  116. package/esm/browser/myaccount/types.js.map +1 -1
  117. package/esm/browser/oidc/TokenManager.js +5 -0
  118. package/esm/browser/oidc/TokenManager.js.map +1 -1
  119. package/esm/browser/oidc/endpoints/authorize.js +3 -2
  120. package/esm/browser/oidc/endpoints/authorize.js.map +1 -1
  121. package/esm/browser/oidc/enrollAuthenticator.js +36 -0
  122. package/esm/browser/oidc/enrollAuthenticator.js.map +1 -0
  123. package/esm/browser/oidc/factory/api.js +10 -12
  124. package/esm/browser/oidc/factory/api.js.map +1 -1
  125. package/esm/browser/oidc/getWithRedirect.js +6 -1
  126. package/esm/browser/oidc/getWithRedirect.js.map +1 -1
  127. package/esm/browser/oidc/handleOAuthResponse.js +3 -2
  128. package/esm/browser/oidc/handleOAuthResponse.js.map +1 -1
  129. package/esm/browser/oidc/mixin/index.js +6 -3
  130. package/esm/browser/oidc/mixin/index.js.map +1 -1
  131. package/esm/browser/oidc/types/TokenManager.js.map +1 -1
  132. package/esm/browser/oidc/util/defaultEnrollAuthenticatorParams.js +31 -0
  133. package/esm/browser/oidc/util/defaultEnrollAuthenticatorParams.js.map +1 -0
  134. package/esm/browser/oidc/util/enrollAuthenticatorMeta.js +33 -0
  135. package/esm/browser/oidc/util/enrollAuthenticatorMeta.js.map +1 -0
  136. package/esm/browser/oidc/util/prepareEnrollAuthenticatorParams.js +34 -0
  137. package/esm/browser/oidc/util/prepareEnrollAuthenticatorParams.js.map +1 -0
  138. package/esm/browser/package.json +1 -1
  139. package/esm/browser/services/AutoRenewService.js +14 -0
  140. package/esm/browser/services/AutoRenewService.js.map +1 -1
  141. package/esm/browser/util/jsonpath.js +21 -0
  142. package/esm/browser/util/jsonpath.js.map +1 -0
  143. package/esm/node/core/mixin.js +3 -0
  144. package/esm/node/core/mixin.js.map +1 -1
  145. package/esm/node/exports/exports/authn.js +4 -1
  146. package/esm/node/exports/exports/authn.js.map +1 -1
  147. package/esm/node/exports/exports/core.js +4 -1
  148. package/esm/node/exports/exports/core.js.map +1 -1
  149. package/esm/node/exports/exports/default.js +7 -2
  150. package/esm/node/exports/exports/default.js.map +1 -1
  151. package/esm/node/exports/exports/idx.js +4 -1
  152. package/esm/node/exports/exports/idx.js.map +1 -1
  153. package/esm/node/exports/exports/myaccount.js +7 -2
  154. package/esm/node/exports/exports/myaccount.js.map +1 -1
  155. package/esm/node/http/OktaUserAgent.js +2 -2
  156. package/esm/node/idx/IdxTransactionManager.js +1 -4
  157. package/esm/node/idx/IdxTransactionManager.js.map +1 -1
  158. package/esm/node/idx/factory/OktaAuthIdx.js.map +1 -1
  159. package/esm/node/idx/idxState/v1/idxResponseParser.js +2 -2
  160. package/esm/node/idx/idxState/v1/idxResponseParser.js.map +1 -1
  161. package/esm/node/idx/mixin.js.map +1 -1
  162. package/esm/node/idx/types/api.js.map +1 -1
  163. package/esm/node/idx/webauthn.js.map +1 -1
  164. package/esm/node/myaccount/api.js +1 -0
  165. package/esm/node/myaccount/api.js.map +1 -1
  166. package/esm/node/myaccount/emailApi.js.map +1 -1
  167. package/esm/node/myaccount/passwordApi.js +56 -0
  168. package/esm/node/myaccount/passwordApi.js.map +1 -0
  169. package/esm/node/myaccount/phoneApi.js.map +1 -1
  170. package/esm/node/myaccount/profileApi.js.map +1 -1
  171. package/esm/node/myaccount/request.js +3 -1
  172. package/esm/node/myaccount/request.js.map +1 -1
  173. package/esm/node/myaccount/transactions/PasswordTransaction.js +73 -0
  174. package/esm/node/myaccount/transactions/PasswordTransaction.js.map +1 -0
  175. package/esm/node/myaccount/types.js +6 -1
  176. package/esm/node/myaccount/types.js.map +1 -1
  177. package/esm/node/oidc/TokenManager.js +5 -0
  178. package/esm/node/oidc/TokenManager.js.map +1 -1
  179. package/esm/node/oidc/endpoints/authorize.js +3 -2
  180. package/esm/node/oidc/endpoints/authorize.js.map +1 -1
  181. package/esm/node/oidc/enrollAuthenticator.js +37 -0
  182. package/esm/node/oidc/enrollAuthenticator.js.map +1 -0
  183. package/esm/node/oidc/factory/api.js +10 -12
  184. package/esm/node/oidc/factory/api.js.map +1 -1
  185. package/esm/node/oidc/getWithRedirect.js +6 -1
  186. package/esm/node/oidc/getWithRedirect.js.map +1 -1
  187. package/esm/node/oidc/handleOAuthResponse.js +3 -2
  188. package/esm/node/oidc/handleOAuthResponse.js.map +1 -1
  189. package/esm/node/oidc/mixin/index.js +6 -3
  190. package/esm/node/oidc/mixin/index.js.map +1 -1
  191. package/esm/node/oidc/types/TokenManager.js.map +1 -1
  192. package/esm/node/oidc/util/defaultEnrollAuthenticatorParams.js +31 -0
  193. package/esm/node/oidc/util/defaultEnrollAuthenticatorParams.js.map +1 -0
  194. package/esm/node/oidc/util/enrollAuthenticatorMeta.js +33 -0
  195. package/esm/node/oidc/util/enrollAuthenticatorMeta.js.map +1 -0
  196. package/esm/node/oidc/util/prepareEnrollAuthenticatorParams.js +34 -0
  197. package/esm/node/oidc/util/prepareEnrollAuthenticatorParams.js.map +1 -0
  198. package/esm/node/package.json +1 -1
  199. package/esm/node/util/jsonpath.js +21 -0
  200. package/esm/node/util/jsonpath.js.map +1 -0
  201. package/package.json +5 -5
  202. package/types/lib/core/types/api.d.ts +1 -0
  203. package/types/lib/exports/default.d.ts +1 -1
  204. package/types/lib/exports/idx.d.ts +1 -1
  205. package/types/lib/idx/factory/OktaAuthIdx.d.ts +3 -3
  206. package/types/lib/idx/mixin.d.ts +2 -2
  207. package/types/lib/idx/types/api.d.ts +13 -1
  208. package/types/lib/idx/webauthn.d.ts +1 -7
  209. package/types/lib/myaccount/api.d.ts +1 -0
  210. package/types/lib/myaccount/emailApi.d.ts +7 -7
  211. package/types/lib/myaccount/passwordApi.d.ts +17 -0
  212. package/types/lib/myaccount/phoneApi.d.ts +6 -6
  213. package/types/lib/myaccount/profileApi.d.ts +3 -3
  214. package/types/lib/myaccount/transactions/PasswordTransaction.d.ts +13 -0
  215. package/types/lib/myaccount/transactions/index.d.ts +1 -0
  216. package/types/lib/myaccount/types.d.ts +17 -2
  217. package/types/lib/oidc/TokenManager.d.ts +1 -0
  218. package/types/lib/oidc/enrollAuthenticator.d.ts +14 -0
  219. package/types/lib/oidc/factory/api.d.ts +2 -1
  220. package/types/lib/oidc/types/TokenManager.d.ts +1 -0
  221. package/types/lib/oidc/types/api.d.ts +5 -4
  222. package/types/lib/oidc/types/endpoints.d.ts +18 -0
  223. package/types/lib/oidc/types/index.d.ts +1 -0
  224. package/types/lib/oidc/types/meta.d.ts +1 -1
  225. package/types/lib/oidc/types/options.d.ts +6 -1
  226. package/types/lib/oidc/types/proto.d.ts +1 -0
  227. package/types/lib/oidc/util/defaultEnrollAuthenticatorParams.d.ts +2 -0
  228. package/types/lib/oidc/util/enrollAuthenticatorMeta.d.ts +2 -0
  229. package/types/lib/oidc/util/index.d.ts +3 -0
  230. package/types/lib/oidc/util/prepareEnrollAuthenticatorParams.d.ts +2 -0
  231. package/types/lib/services/AutoRenewService.d.ts +1 -0
  232. package/types/lib/util/jsonpath.d.ts +2 -0
  233. package/umd/authn.js +1 -1
  234. package/umd/authn.js.map +1 -1
  235. package/umd/core.js +1 -1
  236. package/umd/core.js.map +1 -1
  237. package/umd/default.js +1 -1
  238. package/umd/default.js.map +1 -1
  239. package/umd/idx.js +1 -1
  240. package/umd/idx.js.map +1 -1
  241. package/umd/myaccount.js +1 -1
  242. package/umd/myaccount.js.map +1 -1
@@ -0,0 +1,31 @@
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 { generateState } from './oauth.js';
14
+ import { isBrowser } from '../../features.js';
15
+ import { removeNils } from '../../util/object.js';
16
+
17
+ function getDefaultEnrollAuthenticatorParams(sdk) {
18
+ const { clientId, redirectUri, responseMode, state, } = sdk.options;
19
+ const defaultRedirectUri = isBrowser() ? window.location.href : undefined;
20
+ return removeNils({
21
+ clientId,
22
+ redirectUri: redirectUri || defaultRedirectUri,
23
+ responseMode,
24
+ state: state || generateState(),
25
+ responseType: 'none',
26
+ prompt: 'enroll_authenticator',
27
+ });
28
+ }
29
+
30
+ export { getDefaultEnrollAuthenticatorParams };
31
+ //# sourceMappingURL=defaultEnrollAuthenticatorParams.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"defaultEnrollAuthenticatorParams.js","sources":["../../../../../lib/oidc/util/defaultEnrollAuthenticatorParams.ts"],"sourcesContent":["\n/* global window */\n/*!\n * Copyright (c) 2015-present, Okta, Inc. and/or its affiliates. All rights reserved.\n * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the \"License.\")\n *\n * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n *\n * See the License for the specific language governing permissions and limitations under the License.\n *\n */\nimport { generateState } from './oauth';\nimport { OktaAuthOAuthInterface, TokenParams } from '../types';\nimport { isBrowser } from '../../features';\nimport { removeNils } from '../../util';\n\nexport function getDefaultEnrollAuthenticatorParams(sdk: OktaAuthOAuthInterface): TokenParams {\n const {\n clientId,\n redirectUri,\n responseMode,\n state,\n } = sdk.options;\n const defaultRedirectUri = isBrowser() ? window.location.href : undefined;\n return removeNils({\n clientId,\n redirectUri: redirectUri || defaultRedirectUri,\n responseMode,\n state: state || generateState(),\n responseType: 'none',\n prompt: 'enroll_authenticator',\n });\n}"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAmBM,CAAU,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,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAmC,CAAC,CAAA,CAAA,CAA2B,CAAA,CAAA,CAAA;AAC7E,CAAA,CAAA,CAAA,CAAA,CAAM,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CACJ,CAAQ,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CACR,WAAW,CACX,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAY,CACZ,CAAA,CAAA,CAAA,CAAA,CAAA,CAAK,CACN,CAAA,CAAA,CAAA,CAAA,CAAG,CAAG,CAAA,CAAA,CAAC,OAAO,CAAC;AAChB,CAAA,CAAA,CAAA,CAAA,CAAM,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAkB,CAAG,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,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A,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AAC/B,CAAA,CAAA,CAAA,CAAA,CAAA,CAAC,CAAC;AACL,CAAA;;"}
@@ -0,0 +1,33 @@
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 { getOAuthUrls } from './oauth.js';
14
+
15
+ function createEnrollAuthenticatorMeta(sdk, params) {
16
+ const issuer = sdk.options.issuer;
17
+ const urls = getOAuthUrls(sdk, params);
18
+ const oauthMeta = {
19
+ issuer,
20
+ urls,
21
+ clientId: params.clientId,
22
+ redirectUri: params.redirectUri,
23
+ responseType: params.responseType,
24
+ responseMode: params.responseMode,
25
+ state: params.state,
26
+ acrValues: params.acrValues,
27
+ enrollAmrValues: params.enrollAmrValues,
28
+ };
29
+ return oauthMeta;
30
+ }
31
+
32
+ export { createEnrollAuthenticatorMeta };
33
+ //# sourceMappingURL=enrollAuthenticatorMeta.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"enrollAuthenticatorMeta.js","sources":["../../../../../lib/oidc/util/enrollAuthenticatorMeta.ts"],"sourcesContent":["/* eslint-disable @typescript-eslint/no-non-null-assertion */\nimport { OAuthTransactionMeta, OktaAuthOAuthInterface, EnrollAuthenticatorOptions } from '../types';\nimport { getOAuthUrls } from './oauth';\n\nexport function createEnrollAuthenticatorMeta(\n sdk: OktaAuthOAuthInterface, \n params: EnrollAuthenticatorOptions\n): OAuthTransactionMeta {\n const issuer = sdk.options.issuer!;\n const urls = getOAuthUrls(sdk, params);\n const oauthMeta: OAuthTransactionMeta = {\n issuer,\n urls,\n clientId: params.clientId!,\n redirectUri: params.redirectUri!,\n responseType: params.responseType!,\n responseMode: params.responseMode!,\n state: params.state!,\n acrValues: params.acrValues,\n enrollAmrValues: params.enrollAmrValues,\n };\n\n return oauthMeta;\n}\n"],"names":[],"mappings":";;;;;;;;;;;;;;AAIgB,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAA6B,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,CAAA,CAAA,CAC3C,CAA2B,CAAA,CAAA,CAAA,CAC3B,MAAkC,CAAA,CAAA,CAAA;AAElC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAM,MAAM,CAAG,CAAA,CAAA,CAAA,CAAA,CAAG,CAAC,CAAO,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAC,MAAO,CAAC;CACnC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAM,IAAI,CAAG,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAY,CAAC,CAAG,CAAA,CAAA,CAAA,CAAE,CAAM,CAAA,CAAA,CAAA,CAAA,CAAA,CAAC,CAAC;AACvC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAM,SAAS,CAAyB,CAAA,CAAA,CAAA;QACtC,CAAM,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;QACN,CAAI,CAAA,CAAA,CAAA,CAAA;QACJ,CAAQ,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAE,CAAM,CAAA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AAA,CAAA,CAAA,CAAA;KACxC,CAAC;AAEF,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAO,SAAS,CAAC;AACnB,CAAA;;"}
@@ -0,0 +1,34 @@
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 AuthSdkError from '../../errors/AuthSdkError.js';
14
+ import { getDefaultEnrollAuthenticatorParams } from './defaultEnrollAuthenticatorParams.js';
15
+
16
+ function prepareParams(params) {
17
+ params = Object.assign(Object.assign({}, params), {
18
+ responseType: 'none', prompt: 'enroll_authenticator', maxAge: 0 });
19
+ if (!params.enrollAmrValues) {
20
+ throw new AuthSdkError('enroll_amr_values must be specified');
21
+ }
22
+ if (!params.acrValues) {
23
+ throw new AuthSdkError('acr_values must be specified');
24
+ }
25
+ delete params.scopes;
26
+ delete params.nonce;
27
+ return params;
28
+ }
29
+ function prepareEnrollAuthenticatorParams(sdk, options) {
30
+ return prepareParams(Object.assign(Object.assign({}, getDefaultEnrollAuthenticatorParams(sdk)), options));
31
+ }
32
+
33
+ export { prepareEnrollAuthenticatorParams };
34
+ //# sourceMappingURL=prepareEnrollAuthenticatorParams.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"prepareEnrollAuthenticatorParams.js","sources":["../../../../../lib/oidc/util/prepareEnrollAuthenticatorParams.ts"],"sourcesContent":["/* eslint-disable complexity */\n/*!\n * Copyright (c) 2015-present, Okta, Inc. and/or its affiliates. All rights reserved.\n * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the \"License.\")\n *\n * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n *\n * See the License for the specific language governing permissions and limitations under the License.\n *\n */\nimport { AuthSdkError } from '../../errors';\nimport { OktaAuthOAuthInterface, EnrollAuthenticatorOptions } from '../types';\nimport { getDefaultEnrollAuthenticatorParams } from './defaultEnrollAuthenticatorParams';\n\nfunction prepareParams(\n params: EnrollAuthenticatorOptions\n): EnrollAuthenticatorOptions {\n params = {\n ...params,\n // forced params:\n responseType: 'none',\n prompt: 'enroll_authenticator',\n maxAge: 0,\n };\n\n if (!params.enrollAmrValues) {\n throw new AuthSdkError('enroll_amr_values must be specified');\n }\n if (!params.acrValues) {\n // `acr_values` is required and should equal 'urn:okta:2fa:any:ifpossible'\n // But this can be changed in future\n throw new AuthSdkError('acr_values must be specified');\n }\n\n // `scope`, `nonce` must be omitted\n delete params.scopes;\n delete params.nonce;\n\n return params;\n}\n\n// Prepares params for a call to /authorize\nexport function prepareEnrollAuthenticatorParams(\n sdk: OktaAuthOAuthInterface,\n options: EnrollAuthenticatorOptions\n): EnrollAuthenticatorOptions {\n return prepareParams({\n ...getDefaultEnrollAuthenticatorParams(sdk),\n ...options\n });\n}\n"],"names":[],"mappings":";;;;;;;;;;;;;;;AAiBA,CAAS,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAa,CACpB,CAAA,CAAA,CAAA,CAAA,CAAA,CAAkC,CAAA,CAAA,CAAA;AAElC,CAAA,CAAA,CAAA,CAAA,CAAM,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,gCACD,CAAA,CAAA,CAAA,CAAA,CAA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CAAA,CAAA,CAAA,CAAA,CAAA,CAAmC,CAAC,CAAG,CAAA,CAAA,CAAC,CAAA,CACxC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAO,CAAA,CACV,CAAC;AACL,CAAA;;"}
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@okta/okta-auth-js",
3
- "version": "7.1.1",
3
+ "version": "7.2.0",
4
4
  "type": "module"
5
5
  }
@@ -0,0 +1,21 @@
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 { JSONPath } from 'jsonpath-plus';
14
+
15
+ function jsonpath(options) {
16
+ return JSONPath(Object.assign({
17
+ preventEval: true }, options));
18
+ }
19
+
20
+ export { jsonpath };
21
+ //# sourceMappingURL=jsonpath.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"jsonpath.js","sources":["../../../../lib/util/jsonpath.ts"],"sourcesContent":["import { JSONPath, JSONPathOptions } from 'jsonpath-plus';\n\nexport function jsonpath(options: JSONPathOptions): any {\n // eslint-disable-next-line new-cap\n return JSONPath({\n // Disable javascript evaluation by default\n\tpreventEval: true, ...options, });\n}\n"],"names":[],"mappings":";;;;;;;;;;;;;;AAEM,CAAU,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAQ,CAAC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAwB,CAAA,CAAA,CAAA;AAE/C,CAAA,CAAA,CAAA,CAAA,OAAO,CAAQ,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,MAAA,CAAA,CAAA;AAEhB,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAW,EAAE,CAAI,CAAA,CAAA,CAAA,CAAA,CAAK,EAAA,CAAO,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,EAAI,CAAC;AACnC,CAAA;;"}
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "private": false,
3
3
  "name": "@okta/okta-auth-js",
4
4
  "description": "The Okta Auth SDK",
5
- "version": "7.1.1",
5
+ "version": "7.2.0",
6
6
  "homepage": "https://github.com/okta/okta-auth-js",
7
7
  "license": "Apache-2.0",
8
8
  "main": "cjs/exports/default.js",
@@ -215,8 +215,8 @@
215
215
  "shelljs": "0.8.5",
216
216
  "ts-jest": "^28.0.2",
217
217
  "tsd": "^0.17.0",
218
- "typedoc": "^0.22.13",
219
- "typedoc-plugin-markdown": "^3.11.14",
218
+ "typedoc": "^0.23.19",
219
+ "typedoc-plugin-markdown": "^3.13.6",
220
220
  "typescript": "^4.7.3",
221
221
  "webpack": "^5.60.0",
222
222
  "webpack-bundle-analyzer": "^4.5.0",
@@ -234,7 +234,7 @@
234
234
  "directory": "test/types"
235
235
  },
236
236
  "okta": {
237
- "commitSha": "75c5d434ac7f59d64575a88b84e4682a9ca9eeb1",
238
- "fullVersion": "7.1.1-g75c5d43"
237
+ "commitSha": "2c92f04e2703f5eae10ff84fc4f46bbbcd500777",
238
+ "fullVersion": "7.2.0-g2c92f04"
239
239
  }
240
240
  }
@@ -12,4 +12,5 @@ export interface OktaAuthCoreInterface<M extends PKCETransactionMeta = PKCETrans
12
12
  start(): Promise<void>;
13
13
  stop(): Promise<void>;
14
14
  handleLoginRedirect(tokens?: Tokens, originalUri?: string): Promise<void>;
15
+ handleRedirect(originalUri?: string): Promise<void>;
15
16
  }
@@ -1,7 +1,7 @@
1
1
  import { OktaAuthIdxOptions } from '../idx';
2
2
  export interface OktaAuthOptions extends OktaAuthIdxOptions {
3
3
  }
4
- declare const WithAuthn: import("./common").OktaAuthConstructor<import("../idx").OktaAuthIdxInterface<import("../idx").IdxTransactionMeta, import("../idx").IdxStorageManagerInterface<import("../idx").IdxTransactionMeta>, OktaAuthOptions, import("../idx").IdxTransactionManagerInterface> & import("./common").OktaAuthCoreInterface<import("../idx").IdxTransactionMeta, import("../idx").IdxStorageManagerInterface<import("../idx").IdxTransactionMeta>, OktaAuthOptions, import("../idx").IdxTransactionManagerInterface>> & import("./common").OktaAuthConstructor<import("../myaccount").OktaAuthMyAccountInterface<import("./common").PKCETransactionMeta, import("./common").OAuthStorageManagerInterface<import("./common").PKCETransactionMeta>, import("./common").OktaAuthOAuthOptions>> & import("./common").OktaAuthConstructor<import("../authn").OktaAuthTxInterface<import("./common").StorageManagerInterface, import("./common").OktaAuthHttpOptions>>;
4
+ declare const WithAuthn: import("../idx").OktaAuthIdxConstructor<import("../idx").OktaAuthIdxInterface<import("../idx").IdxTransactionMeta, import("../idx").IdxStorageManagerInterface<import("../idx").IdxTransactionMeta>, OktaAuthOptions, import("../idx").IdxTransactionManagerInterface> & import("./common").OktaAuthCoreInterface<import("../idx").IdxTransactionMeta, import("../idx").IdxStorageManagerInterface<import("../idx").IdxTransactionMeta>, OktaAuthOptions, import("../idx").IdxTransactionManagerInterface>> & import("./common").OktaAuthConstructor<import("../myaccount").OktaAuthMyAccountInterface<import("./common").PKCETransactionMeta, import("./common").OAuthStorageManagerInterface<import("./common").PKCETransactionMeta>, import("./common").OktaAuthOAuthOptions>> & import("./common").OktaAuthConstructor<import("../authn").OktaAuthTxInterface<import("./common").StorageManagerInterface, import("./common").OktaAuthHttpOptions>>;
5
5
  declare class OktaAuth extends WithAuthn {
6
6
  constructor(options: OktaAuthOptions);
7
7
  }
@@ -1,5 +1,5 @@
1
1
  import { OktaAuthIdxOptions } from '../idx';
2
- declare const OktaAuthIdx: import("./common").OktaAuthConstructor<import("../idx").OktaAuthIdxInterface<import("../idx").IdxTransactionMeta, import("../idx").IdxStorageManagerInterface<import("../idx").IdxTransactionMeta>, OktaAuthIdxOptions, import("../idx").IdxTransactionManagerInterface> & import("./common").OktaAuthCoreInterface<import("../idx").IdxTransactionMeta, import("../idx").IdxStorageManagerInterface<import("../idx").IdxTransactionMeta>, OktaAuthIdxOptions, import("../idx").IdxTransactionManagerInterface>>;
2
+ declare const OktaAuthIdx: import("../idx").OktaAuthIdxConstructor<import("../idx").OktaAuthIdxInterface<import("../idx").IdxTransactionMeta, import("../idx").IdxStorageManagerInterface<import("../idx").IdxTransactionMeta>, OktaAuthIdxOptions, import("../idx").IdxTransactionManagerInterface> & import("./common").OktaAuthCoreInterface<import("../idx").IdxTransactionMeta, import("../idx").IdxStorageManagerInterface<import("../idx").IdxTransactionMeta>, OktaAuthIdxOptions, import("../idx").IdxTransactionManagerInterface>>;
3
3
  export interface OktaAuthOptions extends OktaAuthIdxOptions {
4
4
  }
5
5
  declare class OktaAuth extends OktaAuthIdx {
@@ -1,9 +1,9 @@
1
- import { OktaAuthConstructor, OktaAuthOptionsConstructor } from '../../base/types';
1
+ import { OktaAuthOptionsConstructor } from '../../base/types';
2
2
  import { StorageManagerConstructor } from '../../storage/types';
3
- import { IdxTransactionManagerInterface, OktaAuthIdxInterface } from '../types/api';
3
+ import { IdxTransactionManagerInterface, OktaAuthIdxInterface, OktaAuthIdxConstructor } from '../types/api';
4
4
  import { IdxTransactionMeta } from '../types/meta';
5
5
  import { IdxStorageManagerInterface } from '../types/storage';
6
6
  import { OktaAuthIdxOptions } from '../types/options';
7
7
  import { TransactionManagerConstructor } from '../../oidc/types';
8
8
  import { OktaAuthCoreInterface } from '../../core/types';
9
- export declare function createOktaAuthIdx<M extends IdxTransactionMeta = IdxTransactionMeta, S extends IdxStorageManagerInterface<M> = IdxStorageManagerInterface<M>, O extends OktaAuthIdxOptions = OktaAuthIdxOptions, TM extends IdxTransactionManagerInterface = IdxTransactionManagerInterface>(StorageManagerConstructor: StorageManagerConstructor<S>, OptionsConstructor: OktaAuthOptionsConstructor<O>, TransactionManagerConstructor: TransactionManagerConstructor<TM>): OktaAuthConstructor<OktaAuthIdxInterface<M, S, O, TM> & OktaAuthCoreInterface<M, S, O, TM>>;
9
+ export declare function createOktaAuthIdx<M extends IdxTransactionMeta = IdxTransactionMeta, S extends IdxStorageManagerInterface<M> = IdxStorageManagerInterface<M>, O extends OktaAuthIdxOptions = OktaAuthIdxOptions, TM extends IdxTransactionManagerInterface = IdxTransactionManagerInterface>(StorageManagerConstructor: StorageManagerConstructor<S>, OptionsConstructor: OktaAuthOptionsConstructor<O>, TransactionManagerConstructor: TransactionManagerConstructor<TM>): OktaAuthIdxConstructor<OktaAuthIdxInterface<M, S, O, TM> & OktaAuthCoreInterface<M, S, O, TM>>;
@@ -1,6 +1,6 @@
1
1
  import { OktaAuthConstructor } from '../base/types';
2
2
  import { OktaAuthOAuthInterface } from '../oidc/types';
3
- import { IdxTransactionManagerInterface, OktaAuthIdxInterface, OktaAuthIdxOptions } from './types';
3
+ import { IdxTransactionManagerInterface, OktaAuthIdxInterface, OktaAuthIdxConstructor, OktaAuthIdxOptions } from './types';
4
4
  import { IdxTransactionMeta } from './types/meta';
5
5
  import { IdxStorageManagerInterface } from './types/storage';
6
- export declare function mixinIdx<M extends IdxTransactionMeta = IdxTransactionMeta, S extends IdxStorageManagerInterface<M> = IdxStorageManagerInterface<M>, O extends OktaAuthIdxOptions = OktaAuthIdxOptions, TM extends IdxTransactionManagerInterface = IdxTransactionManagerInterface, TBase extends OktaAuthConstructor<OktaAuthOAuthInterface<M, S, O, TM>> = OktaAuthConstructor<OktaAuthOAuthInterface<M, S, O, TM>>>(Base: TBase): TBase & OktaAuthConstructor<OktaAuthIdxInterface<M, S, O, TM>>;
6
+ export declare function mixinIdx<M extends IdxTransactionMeta = IdxTransactionMeta, S extends IdxStorageManagerInterface<M> = IdxStorageManagerInterface<M>, O extends OktaAuthIdxOptions = OktaAuthIdxOptions, TM extends IdxTransactionManagerInterface = IdxTransactionManagerInterface, TBase extends OktaAuthConstructor<OktaAuthOAuthInterface<M, S, O, TM>> = OktaAuthConstructor<OktaAuthOAuthInterface<M, S, O, TM>>>(Base: TBase): TBase & OktaAuthIdxConstructor<OktaAuthIdxInterface<M, S, O, TM>>;
@@ -12,10 +12,12 @@
12
12
  import { APIError } from '../../errors/types';
13
13
  import { OktaAuthOAuthInterface, Tokens, TransactionManagerConstructor, TransactionManagerInterface } from '../../oidc/types';
14
14
  import { FlowIdentifier } from './FlowIdentifier';
15
- import { IdxActions, IdxAuthenticator, IdxContext, IdxForm, IdxMessage, IdxOption, IdxRemediation, IdxResponse, RawIdxResponse, IdxActionParams, IdpConfig, IdxToPersist } from './idx-js';
15
+ import { IdxActions, IdxAuthenticator, IdxContext, IdxForm, IdxMessage, IdxOption, IdxRemediation, IdxResponse, RawIdxResponse, IdxActionParams, IdpConfig, IdxToPersist, ChallengeData, ActivationData } from './idx-js';
16
16
  import { AccountUnlockOptions, AuthenticationOptions, CancelOptions, InteractOptions, IntrospectOptions, OktaAuthIdxOptions, PasswordRecoveryOptions, ProceedOptions, RegistrationOptions, StartOptions, IdxTransactionMetaOptions } from './options';
17
17
  import { IdxTransactionMeta } from './meta';
18
18
  import { IdxStorageManagerInterface, SavedIdxResponse } from './storage';
19
+ import type { WebauthnEnrollValues, WebauthnVerificationValues } from '../authenticator';
20
+ import { OktaAuthConstructor } from '../../base/types';
19
21
  export declare enum IdxStatus {
20
22
  SUCCESS = "SUCCESS",
21
23
  PENDING = "PENDING",
@@ -153,6 +155,16 @@ export interface IdxTransactionManagerInterface extends TransactionManagerInterf
153
155
  clearIdxResponse(): void;
154
156
  }
155
157
  export declare type IdxTransactionManagerConstructor = TransactionManagerConstructor<IdxTransactionManagerInterface>;
158
+ export interface WebauthnAPI {
159
+ getAssertion(credential: PublicKeyCredential): WebauthnVerificationValues;
160
+ getAttestation(credential: PublicKeyCredential): WebauthnEnrollValues;
161
+ buildCredentialRequestOptions(challengeData: ChallengeData, authenticatorEnrollments: IdxAuthenticator[]): CredentialRequestOptions;
162
+ buildCredentialCreationOptions(activationData: ActivationData, authenticatorEnrollments: IdxAuthenticator[]): CredentialCreationOptions;
163
+ }
156
164
  export interface OktaAuthIdxInterface<M extends IdxTransactionMeta = IdxTransactionMeta, S extends IdxStorageManagerInterface<M> = IdxStorageManagerInterface<M>, O extends OktaAuthIdxOptions = OktaAuthIdxOptions, TM extends IdxTransactionManagerInterface = IdxTransactionManagerInterface> extends OktaAuthOAuthInterface<M, S, O, TM> {
157
165
  idx: IdxAPI;
158
166
  }
167
+ export interface OktaAuthIdxConstructor<I extends OktaAuthIdxInterface = OktaAuthIdxInterface> extends OktaAuthConstructor<I> {
168
+ new (...args: any[]): I;
169
+ webauthn: WebauthnAPI;
170
+ }
@@ -9,13 +9,7 @@
9
9
  *
10
10
  * See the License for the specific language governing permissions and limitations under the License.
11
11
  */
12
- import { ActivationData, ChallengeData, IdxAuthenticator, WebauthnEnrollValues, WebauthnVerificationValues } from './types';
13
- export interface WebauthnAPI {
14
- getAssertion(credential: PublicKeyCredential): WebauthnVerificationValues;
15
- getAttestation(credential: PublicKeyCredential): WebauthnEnrollValues;
16
- buildCredentialRequestOptions(challengeData: ChallengeData, authenticatorEnrollments: IdxAuthenticator[]): CredentialRequestOptions;
17
- buildCredentialCreationOptions(activationData: ActivationData, authenticatorEnrollments: IdxAuthenticator[]): CredentialCreationOptions;
18
- }
12
+ import { ActivationData, ChallengeData, IdxAuthenticator } from './types';
19
13
  export declare const buildCredentialCreationOptions: (activationData: ActivationData, authenticatorEnrollments: IdxAuthenticator[]) => CredentialCreationOptions;
20
14
  export declare const buildCredentialRequestOptions: (challengeData: ChallengeData, authenticatorEnrollments: IdxAuthenticator[]) => CredentialRequestOptions;
21
15
  export declare const getAttestation: (credential: PublicKeyCredential) => {
@@ -12,3 +12,4 @@
12
12
  export * from './profileApi';
13
13
  export * from './emailApi';
14
14
  export * from './phoneApi';
15
+ export * from './passwordApi';
@@ -1,29 +1,29 @@
1
1
  import { IAPIFunction, BaseTransaction, EmailTransaction, EmailChallengeTransaction } from './types';
2
2
  /**
3
- * @scope: okta.myaccount.email.read
3
+ * @scope: okta.myAccount.email.read
4
4
  */
5
5
  export declare const getEmails: IAPIFunction<EmailTransaction[]>;
6
6
  /**
7
- * @scope: okta.myaccount.email.read
7
+ * @scope: okta.myAccount.email.read
8
8
  */
9
9
  export declare const getEmail: IAPIFunction<EmailTransaction>;
10
10
  /**
11
- * @scope: okta.myaccount.email.manage
11
+ * @scope: okta.myAccount.email.manage
12
12
  */
13
13
  export declare const addEmail: IAPIFunction<EmailTransaction>;
14
14
  /**
15
- * @scope: okta.myaccount.email.manage
15
+ * @scope: okta.myAccount.email.manage
16
16
  */
17
17
  export declare const deleteEmail: IAPIFunction<BaseTransaction>;
18
18
  /**
19
- * @scope: okta.myaccount.email.read
19
+ * @scope: okta.myAccount.email.read
20
20
  */
21
21
  export declare const sendEmailChallenge: IAPIFunction<EmailChallengeTransaction>;
22
22
  /**
23
- * @scope: okta.myaccount.email.read
23
+ * @scope: okta.myAccount.email.read
24
24
  */
25
25
  export declare const getEmailChallenge: IAPIFunction<EmailChallengeTransaction>;
26
26
  /**
27
- * @scope: okta.myaccount.email.manage
27
+ * @scope: okta.myAccount.email.manage
28
28
  */
29
29
  export declare const verifyEmailChallenge: IAPIFunction<BaseTransaction>;
@@ -0,0 +1,17 @@
1
+ import { IAPIFunction, BaseTransaction, PasswordTransaction } from './types';
2
+ /**
3
+ * @scope: okta.myAccount.password.read
4
+ */
5
+ export declare const getPassword: IAPIFunction<PasswordTransaction>;
6
+ /**
7
+ * @scope: okta.myAccount.password.manage
8
+ */
9
+ export declare const enrollPassword: IAPIFunction<PasswordTransaction>;
10
+ /**
11
+ * @scope: okta.myAccount.password.manage
12
+ */
13
+ export declare const updatePassword: IAPIFunction<PasswordTransaction>;
14
+ /**
15
+ * @scope: okta.myAccount.password.manage
16
+ */
17
+ export declare const deletePassword: IAPIFunction<BaseTransaction>;
@@ -1,25 +1,25 @@
1
1
  import { IAPIFunction, BaseTransaction, PhoneTransaction } from './types';
2
2
  /**
3
- * @scope: okta.myaccount.phone.read
3
+ * @scope: okta.myAccount.phone.read
4
4
  */
5
5
  export declare const getPhones: IAPIFunction<PhoneTransaction[]>;
6
6
  /**
7
- * @scope: okta.myaccount.phone.read
7
+ * @scope: okta.myAccount.phone.read
8
8
  */
9
9
  export declare const getPhone: IAPIFunction<PhoneTransaction>;
10
10
  /**
11
- * @scope: okta.myaccount.phone.manage
11
+ * @scope: okta.myAccount.phone.manage
12
12
  */
13
13
  export declare const addPhone: IAPIFunction<PhoneTransaction>;
14
14
  /**
15
- * @scope: okta.myaccount.phone.manage
15
+ * @scope: okta.myAccount.phone.manage
16
16
  */
17
17
  export declare const deletePhone: IAPIFunction<BaseTransaction>;
18
18
  /**
19
- * @scope: okta.myaccount.phone.manage
19
+ * @scope: okta.myAccount.phone.manage
20
20
  */
21
21
  export declare const sendPhoneChallenge: IAPIFunction<BaseTransaction>;
22
22
  /**
23
- * @scope: okta.myaccount.phone.manage
23
+ * @scope: okta.myAccount.phone.manage
24
24
  */
25
25
  export declare const verifyPhoneChallenge: IAPIFunction<BaseTransaction>;
@@ -1,13 +1,13 @@
1
1
  import { IAPIFunction, ProfileTransaction, ProfileSchemaTransaction } from './types';
2
2
  /**
3
- * @scope: okta.myaccount.profile.read
3
+ * @scope: okta.myAccount.profile.read
4
4
  */
5
5
  export declare const getProfile: IAPIFunction<ProfileTransaction>;
6
6
  /**
7
- * @scope: okta.myaccount.profile.manage
7
+ * @scope: okta.myAccount.profile.manage
8
8
  */
9
9
  export declare const updateProfile: IAPIFunction<ProfileTransaction>;
10
10
  /**
11
- * @scope: okta.myaccount.profile.read
11
+ * @scope: okta.myAccount.profile.read
12
12
  */
13
13
  export declare const getProfileSchema: IAPIFunction<ProfileSchemaTransaction>;
@@ -0,0 +1,13 @@
1
+ import { EnrollPasswordPayload, UpdatePasswordPayload, PasswordStatus } from '../types';
2
+ import BaseTransaction from './Base';
3
+ export default class PasswordTransaction extends BaseTransaction {
4
+ id: string;
5
+ created: string;
6
+ lastUpdated: string;
7
+ status: PasswordStatus;
8
+ get?: () => Promise<PasswordTransaction>;
9
+ enroll?: (payload: EnrollPasswordPayload) => Promise<PasswordTransaction>;
10
+ update?: (payload: UpdatePasswordPayload) => Promise<PasswordTransaction>;
11
+ delete?: () => Promise<BaseTransaction>;
12
+ constructor(oktaAuth: any, options: any);
13
+ }
@@ -4,4 +4,5 @@ export { default as EmailTransaction } from './EmailTransaction';
4
4
  export { default as EmailStatusTransaction } from './EmailStatusTransaction';
5
5
  export { default as EmailChallengeTransaction } from './EmailChallengeTransaction';
6
6
  export { default as PhoneTransaction } from './PhoneTransaction';
7
+ export { default as PasswordTransaction } from './PasswordTransaction';
7
8
  export { default as BaseTransaction } from './Base';
@@ -1,5 +1,5 @@
1
1
  import { OAuthStorageManagerInterface, OAuthTransactionMeta, OktaAuthOAuthInterface, OktaAuthOAuthOptions, PKCETransactionMeta } from '../oidc/types';
2
- export { EmailTransaction, EmailStatusTransaction, EmailChallengeTransaction, PhoneTransaction, ProfileTransaction, ProfileSchemaTransaction, BaseTransaction } from './transactions';
2
+ export { EmailTransaction, EmailStatusTransaction, EmailChallengeTransaction, PhoneTransaction, ProfileTransaction, ProfileSchemaTransaction, PasswordTransaction, BaseTransaction } from './transactions';
3
3
  export declare enum EmailRole {
4
4
  PRIMARY = "PRIMARY",
5
5
  SECONDARY = "SECONDARY"
@@ -8,6 +8,10 @@ export declare enum Status {
8
8
  VERIFIED = "VERIFIED",
9
9
  UNVERIFIED = "UNVERIFIED"
10
10
  }
11
+ export declare enum PasswordStatus {
12
+ NOT_ENROLLED = "NOT_ENROLLED",
13
+ ACTIVE = "ACTIVE"
14
+ }
11
15
  export declare type EmailProfile = {
12
16
  email: string;
13
17
  };
@@ -36,6 +40,17 @@ export declare type ChallengePhonePayload = {
36
40
  export declare type VerificationPayload = {
37
41
  verificationCode: string;
38
42
  };
43
+ export declare type EnrollPasswordPayload = {
44
+ profile: {
45
+ password: string;
46
+ };
47
+ };
48
+ export declare type UpdatePasswordPayload = {
49
+ profile: {
50
+ password: string;
51
+ currentPassword?: string;
52
+ };
53
+ };
39
54
  export declare type UpdateProfilePayload = {
40
55
  profile: {
41
56
  firstName?: string;
@@ -49,7 +64,7 @@ export declare type MyAccountRequestOptions = {
49
64
  id?: string;
50
65
  emailId?: string;
51
66
  challengeId?: string;
52
- payload?: AddEmailPayload | AddPhonePayload | ChallengePhonePayload | VerificationPayload | UpdateProfilePayload;
67
+ payload?: AddEmailPayload | AddPhonePayload | ChallengePhonePayload | VerificationPayload | UpdateProfilePayload | EnrollPasswordPayload | UpdatePasswordPayload;
53
68
  accessToken?: string;
54
69
  };
55
70
  export declare type IAPIFunction<T> = (oktaAuth: OktaAuthOAuthInterface, options?: MyAccountRequestOptions) => Promise<T>;
@@ -18,6 +18,7 @@ export declare class TokenManager implements TokenManagerInterface {
18
18
  constructor(sdk: OktaAuthOAuthInterface, options?: TokenManagerOptions);
19
19
  start(): void;
20
20
  stop(): void;
21
+ isStarted(): boolean;
21
22
  getOptions(): TokenManagerOptions;
22
23
  getExpireTime(token: any): number;
23
24
  hasExpired(token: any): boolean;
@@ -0,0 +1,14 @@
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 { OktaAuthOAuthInterface, EnrollAuthenticatorOptions } from './types';
14
+ export declare function enrollAuthenticator(sdk: OktaAuthOAuthInterface, options: EnrollAuthenticatorOptions): void;
@@ -11,5 +11,6 @@
11
11
  *
12
12
  */
13
13
  import { PromiseQueue } from '../../util';
14
- import { OktaAuthOAuthInterface, TokenAPI } from '../types';
14
+ import { OktaAuthOAuthInterface, TokenAPI, Endpoints } from '../types';
15
15
  export declare function createTokenAPI(sdk: OktaAuthOAuthInterface, queue: PromiseQueue): TokenAPI;
16
+ export declare function createEndpoints(sdk: OktaAuthOAuthInterface): Endpoints;
@@ -58,4 +58,5 @@ export interface TokenManagerInterface {
58
58
  getStorage(): StorageProvider;
59
59
  start(): any;
60
60
  stop(): any;
61
+ isStarted(): boolean;
61
62
  }
@@ -12,12 +12,14 @@
12
12
  import { JWTObject } from './JWT';
13
13
  import { OAuthTransactionMeta, PKCETransactionMeta } from './meta';
14
14
  import { CustomUrls, OktaAuthOAuthOptions, SigninWithRedirectOptions, TokenParams } from './options';
15
+ import { OAuthResponseType } from './proto';
15
16
  import { OAuthStorageManagerInterface } from './storage';
16
17
  import { AccessToken, IDToken, RefreshToken, RevocableToken, Token, Tokens } from './Token';
17
18
  import { TokenManagerInterface } from './TokenManager';
18
19
  import { CustomUserClaims, UserClaims } from './UserClaims';
19
20
  import { TransactionManagerInterface } from './TransactionManager';
20
21
  import { OktaAuthSessionInterface } from '../../session/types';
22
+ import { Endpoints } from './endpoints';
21
23
  export interface PopupParams {
22
24
  popupTitle?: string;
23
25
  popupWindow?: Window;
@@ -26,6 +28,7 @@ export interface TokenResponse {
26
28
  tokens: Tokens;
27
29
  state: string;
28
30
  code?: string;
31
+ responseType?: OAuthResponseType | OAuthResponseType[] | 'none';
29
32
  }
30
33
  export interface ParseFromUrlOptions {
31
34
  url?: string;
@@ -39,9 +42,6 @@ export interface ParseFromUrlInterface extends ParseFromUrlFunction {
39
42
  }
40
43
  export declare type GetWithRedirectFunction = (params?: TokenParams) => Promise<void>;
41
44
  export declare type SetLocationFunction = (loc: string) => void;
42
- export interface GetWithRedirectAPI extends GetWithRedirectFunction {
43
- _setLocation: SetLocationFunction;
44
- }
45
45
  export interface BaseTokenAPI {
46
46
  decode(token: string): JWTObject;
47
47
  prepareTokenParams(params?: TokenParams): Promise<TokenParams>;
@@ -49,7 +49,7 @@ export interface BaseTokenAPI {
49
49
  }
50
50
  export interface TokenAPI extends BaseTokenAPI {
51
51
  getUserInfo<S extends CustomUserClaims = CustomUserClaims>(accessToken?: AccessToken, idToken?: IDToken): Promise<UserClaims<S>>;
52
- getWithRedirect: GetWithRedirectAPI;
52
+ getWithRedirect: GetWithRedirectFunction;
53
53
  parseFromUrl: ParseFromUrlInterface;
54
54
  getWithoutPrompt(params?: TokenParams): Promise<TokenResponse>;
55
55
  getWithPopup(params?: TokenParams): Promise<TokenResponse>;
@@ -103,6 +103,7 @@ export interface OktaAuthOAuthInterface<M extends OAuthTransactionMeta = PKCETra
103
103
  tokenManager: TokenManagerInterface;
104
104
  pkce: PkceAPI;
105
105
  transactionManager: TM;
106
+ endpoints: Endpoints;
106
107
  isPKCE(): boolean;
107
108
  getIdToken(): string | undefined;
108
109
  getAccessToken(): string | undefined;
@@ -0,0 +1,18 @@
1
+ /*!
2
+ * Copyright (c) 2021-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
+ import { EnrollAuthenticatorOptions } from './options';
13
+ export declare type EnrollAuthenticatorFunction = (params: EnrollAuthenticatorOptions) => void;
14
+ export interface Endpoints {
15
+ authorize: {
16
+ enrollAuthenticator: EnrollAuthenticatorFunction;
17
+ };
18
+ }
@@ -20,3 +20,4 @@ export * from './TokenManager';
20
20
  export * from './Transaction';
21
21
  export * from './TransactionManager';
22
22
  export * from './UserClaims';
23
+ export * from './endpoints';
@@ -10,7 +10,7 @@
10
10
  * See the License for the specific language governing permissions and limitations under the License.
11
11
  */
12
12
  import { CustomUrls, TokenParams } from './options';
13
- export interface OAuthTransactionMeta extends Pick<TokenParams, 'issuer' | 'clientId' | 'redirectUri' | 'responseType' | 'responseMode' | 'scopes' | 'state' | 'pkce' | 'ignoreSignature' | 'nonce' | 'acrValues'> {
13
+ export interface OAuthTransactionMeta extends Pick<TokenParams, 'issuer' | 'clientId' | 'redirectUri' | 'responseType' | 'responseMode' | 'scopes' | 'state' | 'pkce' | 'ignoreSignature' | 'nonce' | 'acrValues' | 'enrollAmrValues'> {
14
14
  urls: CustomUrls;
15
15
  originalUri?: string;
16
16
  }