@okta/okta-auth-js 5.7.0 → 5.10.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.
- package/CHANGELOG.md +47 -0
- package/README.md +12 -2
- package/cjs/OktaAuth.js +88 -43
- package/cjs/OktaAuth.js.map +1 -1
- package/cjs/OktaUserAgent.js +2 -2
- package/cjs/OktaUserAgent.js.map +1 -1
- package/cjs/StorageManager.js +8 -0
- package/cjs/StorageManager.js.map +1 -1
- package/cjs/TokenManager.js +24 -2
- package/cjs/TokenManager.js.map +1 -1
- package/cjs/TransactionManager.js +24 -12
- package/cjs/TransactionManager.js.map +1 -1
- package/cjs/constants.js +3 -1
- package/cjs/constants.js.map +1 -1
- package/cjs/features.js +1 -1
- package/cjs/features.js.map +1 -1
- package/cjs/idx/authenticate.js +3 -18
- package/cjs/idx/authenticate.js.map +1 -1
- package/cjs/idx/authenticator/Authenticator.js +14 -0
- package/cjs/idx/authenticator/Authenticator.js.map +1 -0
- package/cjs/idx/authenticator/OktaPassword.js +31 -0
- package/cjs/idx/authenticator/OktaPassword.js.map +1 -0
- package/cjs/idx/authenticator/OktaVerifyTotp.js +17 -0
- package/cjs/idx/authenticator/OktaVerifyTotp.js.map +1 -0
- package/cjs/idx/authenticator/SecurityQuestionEnrollment.js +50 -0
- package/cjs/idx/authenticator/SecurityQuestionEnrollment.js.map +1 -0
- package/cjs/idx/authenticator/SecurityQuestionVerification.js +31 -0
- package/cjs/idx/authenticator/SecurityQuestionVerification.js.map +1 -0
- package/cjs/idx/authenticator/VerificationCodeAuthenticator.js +34 -0
- package/cjs/idx/authenticator/VerificationCodeAuthenticator.js.map +1 -0
- package/cjs/idx/authenticator/getAuthenticator.js +42 -0
- package/cjs/idx/authenticator/getAuthenticator.js.map +1 -0
- package/cjs/idx/authenticator/index.js +80 -0
- package/cjs/idx/authenticator/index.js.map +1 -0
- package/cjs/idx/cancel.js +5 -0
- package/cjs/idx/cancel.js.map +1 -1
- package/cjs/idx/flow/AuthenticationFlow.js +32 -0
- package/cjs/idx/flow/AuthenticationFlow.js.map +1 -0
- package/cjs/idx/flow/FlowSpecification.js +39 -0
- package/cjs/idx/flow/FlowSpecification.js.map +1 -0
- package/cjs/idx/flow/PasswordRecoveryFlow.js +28 -0
- package/cjs/idx/flow/PasswordRecoveryFlow.js.map +1 -0
- package/{esm/crypto/browser.js → cjs/idx/flow/RegistrationFlow.js} +16 -12
- package/cjs/idx/flow/RegistrationFlow.js.map +1 -0
- package/cjs/idx/flow/RemediationFlow.js +2 -0
- package/{esm/types/Cookies.js.map → cjs/idx/flow/RemediationFlow.js.map} +1 -1
- package/cjs/idx/flow/index.js +67 -0
- package/cjs/idx/flow/index.js.map +1 -0
- package/cjs/idx/index.js +39 -0
- package/cjs/idx/index.js.map +1 -1
- package/cjs/idx/interact.js +13 -4
- package/cjs/idx/interact.js.map +1 -1
- package/cjs/idx/introspect.js +24 -7
- package/cjs/idx/introspect.js.map +1 -1
- package/cjs/idx/poll.js +59 -0
- package/cjs/idx/poll.js.map +1 -0
- package/cjs/idx/proceed.js +49 -0
- package/cjs/idx/proceed.js.map +1 -0
- package/cjs/idx/recoverPassword.js +3 -17
- package/cjs/idx/recoverPassword.js.map +1 -1
- package/cjs/idx/register.js +22 -20
- package/cjs/idx/register.js.map +1 -1
- package/cjs/idx/remediate.js +61 -118
- package/cjs/idx/remediate.js.map +1 -1
- package/cjs/idx/remediators/AuthenticatorEnrollmentData.js +9 -12
- package/cjs/idx/remediators/AuthenticatorEnrollmentData.js.map +1 -1
- package/cjs/idx/remediators/AuthenticatorVerificationData.js +6 -9
- package/cjs/idx/remediators/AuthenticatorVerificationData.js.map +1 -1
- package/cjs/idx/remediators/Base/AuthenticatorData.js +43 -32
- package/cjs/idx/remediators/Base/AuthenticatorData.js.map +1 -1
- package/cjs/idx/remediators/Base/Remediator.js +51 -20
- package/cjs/idx/remediators/Base/Remediator.js.map +1 -1
- package/cjs/idx/remediators/Base/SelectAuthenticator.js +16 -16
- package/cjs/idx/remediators/Base/SelectAuthenticator.js.map +1 -1
- package/cjs/idx/remediators/Base/VerifyAuthenticator.js +8 -28
- package/cjs/idx/remediators/Base/VerifyAuthenticator.js.map +1 -1
- package/{esm/idx/remediators/RedirectIdp.js → cjs/idx/remediators/ChallengePoll.js} +13 -25
- package/cjs/idx/remediators/ChallengePoll.js.map +1 -0
- package/cjs/idx/remediators/EnrollPoll.js +56 -0
- package/cjs/idx/remediators/EnrollPoll.js.map +1 -0
- package/cjs/idx/remediators/Identify.js +4 -36
- package/cjs/idx/remediators/Identify.js.map +1 -1
- package/cjs/idx/remediators/SelectAuthenticatorAuthenticate.js +23 -2
- package/cjs/idx/remediators/SelectAuthenticatorAuthenticate.js.map +1 -1
- package/cjs/idx/remediators/Skip.js +7 -0
- package/cjs/idx/remediators/Skip.js.map +1 -1
- package/cjs/idx/remediators/index.js +26 -0
- package/cjs/idx/remediators/index.js.map +1 -1
- package/cjs/idx/run.js +36 -16
- package/cjs/idx/run.js.map +1 -1
- package/cjs/idx/startTransaction.js +2 -0
- package/cjs/idx/startTransaction.js.map +1 -1
- package/cjs/idx/transactionMeta.js +77 -39
- package/cjs/idx/transactionMeta.js.map +1 -1
- package/cjs/idx/types/FlowIdentifier.js +2 -0
- package/{esm/types/AuthState.js.map → cjs/idx/types/FlowIdentifier.js.map} +1 -1
- package/cjs/idx/types/idx-js.js +5 -0
- package/cjs/idx/types/idx-js.js.map +1 -1
- package/cjs/idx/types/index.js +18 -1
- package/cjs/idx/types/index.js.map +1 -1
- package/cjs/oidc/endpoints/authorize.js +4 -1
- package/cjs/oidc/endpoints/authorize.js.map +1 -1
- package/cjs/oidc/getWithRedirect.js +2 -6
- package/cjs/oidc/getWithRedirect.js.map +1 -1
- package/cjs/oidc/util/loginRedirect.js +9 -5
- package/cjs/oidc/util/loginRedirect.js.map +1 -1
- package/cjs/oidc/util/urlParams.js +1 -1
- package/cjs/oidc/util/urlParams.js.map +1 -1
- package/cjs/options.js +12 -2
- package/cjs/options.js.map +1 -1
- package/cjs/server/serverStorage.js +2 -1
- package/cjs/server/serverStorage.js.map +1 -1
- package/cjs/types/Token.js.map +1 -1
- package/cjs/types/Transaction.js.map +1 -1
- package/{esm/clock.js → cjs/util/emailVerify.js} +14 -18
- package/cjs/util/emailVerify.js.map +1 -0
- package/cjs/util/index.js +13 -0
- package/cjs/util/index.js.map +1 -1
- package/dist/okta-auth-js.min.js +2 -74
- package/dist/okta-auth-js.min.js.LICENSE.txt +32 -0
- package/dist/okta-auth-js.min.js.map +1 -1
- package/dist/okta-auth-js.polyfill.js +2 -18
- package/{esm/crypto/webcrypto.js → dist/okta-auth-js.polyfill.js.LICENSE.txt} +8 -4
- package/dist/okta-auth-js.polyfill.js.map +1 -1
- package/dist/okta-auth-js.umd.js +2 -74
- package/dist/okta-auth-js.umd.js.LICENSE.txt +32 -0
- package/dist/okta-auth-js.umd.js.map +1 -1
- package/esm/index.js +8580 -16
- package/esm/index.js.map +1 -1
- package/lib/OktaAuth.d.ts +6 -3
- package/lib/StorageManager.d.ts +1 -0
- package/lib/TokenManager.d.ts +2 -0
- package/lib/TransactionManager.d.ts +5 -1
- package/lib/constants.d.ts +1 -0
- package/lib/crypto/base64.d.ts +2 -2
- package/lib/crypto/oidcHash.d.ts +1 -1
- package/lib/crypto/verifyToken.d.ts +1 -1
- package/lib/idx/authenticator/Authenticator.d.ts +12 -0
- package/lib/idx/authenticator/OktaPassword.d.ts +11 -0
- package/lib/idx/authenticator/OktaVerifyTotp.d.ts +9 -0
- package/lib/idx/authenticator/SecurityQuestionEnrollment.d.ts +28 -0
- package/lib/idx/authenticator/SecurityQuestionVerification.d.ts +14 -0
- package/lib/idx/authenticator/VerificationCodeAuthenticator.d.ts +10 -0
- package/lib/idx/authenticator/getAuthenticator.d.ts +3 -0
- package/lib/idx/authenticator/index.d.ts +6 -0
- package/{esm/oidc/endpoints/index.js → lib/idx/flow/AuthenticationFlow.d.ts} +3 -5
- package/lib/idx/flow/FlowSpecification.d.ts +8 -0
- package/{esm/crypto/index.js → lib/idx/flow/PasswordRecoveryFlow.d.ts} +3 -6
- package/{esm/tx/TransactionState.js → lib/idx/flow/RegistrationFlow.d.ts} +3 -3
- package/lib/idx/flow/RemediationFlow.d.ts +13 -0
- package/lib/idx/{flowMonitors → flow}/index.d.ts +5 -4
- package/lib/idx/index.d.ts +3 -0
- package/lib/idx/interact.d.ts +1 -0
- package/lib/idx/introspect.d.ts +2 -1
- package/lib/idx/poll.d.ts +13 -0
- package/lib/idx/proceed.d.ts +21 -0
- package/lib/idx/register.d.ts +1 -1
- package/lib/idx/remediators/AuthenticatorEnrollmentData.d.ts +9 -5
- package/lib/idx/remediators/AuthenticatorVerificationData.d.ts +0 -1
- package/lib/idx/remediators/Base/AuthenticatorData.d.ts +8 -3
- package/lib/idx/remediators/Base/Remediator.d.ts +9 -6
- package/lib/idx/remediators/Base/SelectAuthenticator.d.ts +5 -4
- package/lib/idx/remediators/Base/VerifyAuthenticator.d.ts +8 -4
- package/lib/idx/remediators/ChallengePoll.d.ts +15 -0
- package/{esm/tx/util.js → lib/idx/remediators/EnrollPoll.d.ts} +11 -13
- package/lib/idx/remediators/Identify.d.ts +1 -3
- package/lib/idx/remediators/SelectAuthenticatorAuthenticate.d.ts +6 -2
- package/lib/idx/remediators/Skip.d.ts +3 -0
- package/lib/idx/remediators/index.d.ts +2 -0
- package/lib/idx/run.d.ts +8 -9
- package/lib/idx/transactionMeta.d.ts +28 -4
- package/lib/idx/types/FlowIdentifier.d.ts +1 -0
- package/lib/idx/types/idx-js.d.ts +53 -1
- package/lib/idx/types/index.d.ts +18 -4
- package/lib/oidc/util/loginRedirect.d.ts +1 -1
- package/lib/types/OktaAuthOptions.d.ts +3 -0
- package/lib/types/Token.d.ts +1 -0
- package/lib/types/Transaction.d.ts +2 -0
- package/lib/types/api.d.ts +15 -2
- package/lib/{idx/flowMonitors/AuthenticationFlowMonitor.d.ts → util/emailVerify.d.ts} +5 -3
- package/lib/util/index.d.ts +1 -0
- package/package.json +22 -13
- package/cjs/idx/flowMonitors/AuthenticationFlowMonitor.js +0 -45
- package/cjs/idx/flowMonitors/AuthenticationFlowMonitor.js.map +0 -1
- package/cjs/idx/flowMonitors/FlowMonitor.js +0 -69
- package/cjs/idx/flowMonitors/FlowMonitor.js.map +0 -1
- package/cjs/idx/flowMonitors/PasswordRecoveryFlowMonitor.js +0 -55
- package/cjs/idx/flowMonitors/PasswordRecoveryFlowMonitor.js.map +0 -1
- package/cjs/idx/flowMonitors/RegistrationFlowMonitor.js +0 -35
- package/cjs/idx/flowMonitors/RegistrationFlowMonitor.js.map +0 -1
- package/cjs/idx/flowMonitors/index.js +0 -54
- package/cjs/idx/flowMonitors/index.js.map +0 -1
- package/esm/AuthStateManager.js +0 -214
- package/esm/AuthStateManager.js.map +0 -1
- package/esm/OktaAuth.js +0 -681
- package/esm/OktaAuth.js.map +0 -1
- package/esm/OktaUserAgent.js +0 -49
- package/esm/OktaUserAgent.js.map +0 -1
- package/esm/PromiseQueue.js +0 -71
- package/esm/PromiseQueue.js.map +0 -1
- package/esm/SavedObject.js +0 -91
- package/esm/SavedObject.js.map +0 -1
- package/esm/StorageManager.js +0 -182
- package/esm/StorageManager.js.map +0 -1
- package/esm/TokenManager.js +0 -455
- package/esm/TokenManager.js.map +0 -1
- package/esm/TransactionManager.js +0 -316
- package/esm/TransactionManager.js.map +0 -1
- package/esm/browser/browserStorage.js +0 -256
- package/esm/browser/browserStorage.js.map +0 -1
- package/esm/browser/fingerprint.js +0 -74
- package/esm/browser/fingerprint.js.map +0 -1
- package/esm/builderUtil.js +0 -56
- package/esm/builderUtil.js.map +0 -1
- package/esm/clock.js.map +0 -1
- package/esm/constants.js +0 -35
- package/esm/constants.js.map +0 -1
- package/esm/crypto/base64.js +0 -66
- package/esm/crypto/base64.js.map +0 -1
- package/esm/crypto/browser.js.map +0 -1
- package/esm/crypto/index.js.map +0 -1
- package/esm/crypto/node.js +0 -54
- package/esm/crypto/node.js.map +0 -1
- package/esm/crypto/oidcHash.js +0 -27
- package/esm/crypto/oidcHash.js.map +0 -1
- package/esm/crypto/verifyToken.js +0 -39
- package/esm/crypto/verifyToken.js.map +0 -1
- package/esm/crypto/webcrypto.js.map +0 -1
- package/esm/errors/AuthApiError.js +0 -30
- package/esm/errors/AuthApiError.js.map +0 -1
- package/esm/errors/AuthPollStopError.js +0 -20
- package/esm/errors/AuthPollStopError.js.map +0 -1
- package/esm/errors/AuthSdkError.js +0 -29
- package/esm/errors/AuthSdkError.js.map +0 -1
- package/esm/errors/CustomError.js +0 -21
- package/esm/errors/CustomError.js.map +0 -1
- package/esm/errors/OAuthError.js +0 -22
- package/esm/errors/OAuthError.js.map +0 -1
- package/esm/errors/index.js +0 -22
- package/esm/errors/index.js.map +0 -1
- package/esm/features.js +0 -64
- package/esm/features.js.map +0 -1
- package/esm/fetch/fetchRequest.js +0 -92
- package/esm/fetch/fetchRequest.js.map +0 -1
- package/esm/http/headers.js +0 -17
- package/esm/http/headers.js.map +0 -1
- package/esm/http/index.js +0 -3
- package/esm/http/index.js.map +0 -1
- package/esm/http/request.js +0 -145
- package/esm/http/request.js.map +0 -1
- package/esm/idx/authenticate.js +0 -47
- package/esm/idx/authenticate.js.map +0 -1
- package/esm/idx/cancel.js +0 -32
- package/esm/idx/cancel.js.map +0 -1
- package/esm/idx/flowMonitors/AuthenticationFlowMonitor.js +0 -41
- package/esm/idx/flowMonitors/AuthenticationFlowMonitor.js.map +0 -1
- package/esm/idx/flowMonitors/FlowMonitor.js +0 -73
- package/esm/idx/flowMonitors/FlowMonitor.js.map +0 -1
- package/esm/idx/flowMonitors/PasswordRecoveryFlowMonitor.js +0 -57
- package/esm/idx/flowMonitors/PasswordRecoveryFlowMonitor.js.map +0 -1
- package/esm/idx/flowMonitors/RegistrationFlowMonitor.js +0 -28
- package/esm/idx/flowMonitors/RegistrationFlowMonitor.js.map +0 -1
- package/esm/idx/flowMonitors/index.js +0 -16
- package/esm/idx/flowMonitors/index.js.map +0 -1
- package/esm/idx/handleInteractionCodeRedirect.js +0 -64
- package/esm/idx/handleInteractionCodeRedirect.js.map +0 -1
- package/esm/idx/headers.js +0 -39
- package/esm/idx/headers.js.map +0 -1
- package/esm/idx/index.js +0 -20
- package/esm/idx/index.js.map +0 -1
- package/esm/idx/interact.js +0 -83
- package/esm/idx/interact.js.map +0 -1
- package/esm/idx/introspect.js +0 -45
- package/esm/idx/introspect.js.map +0 -1
- package/esm/idx/recoverPassword.js +0 -46
- package/esm/idx/recoverPassword.js.map +0 -1
- package/esm/idx/register.js +0 -63
- package/esm/idx/register.js.map +0 -1
- package/esm/idx/remediate.js +0 -302
- package/esm/idx/remediate.js.map +0 -1
- package/esm/idx/remediators/AuthenticatorEnrollmentData.js +0 -68
- package/esm/idx/remediators/AuthenticatorEnrollmentData.js.map +0 -1
- package/esm/idx/remediators/AuthenticatorVerificationData.js +0 -66
- package/esm/idx/remediators/AuthenticatorVerificationData.js.map +0 -1
- package/esm/idx/remediators/Base/AuthenticatorData.js +0 -105
- package/esm/idx/remediators/Base/AuthenticatorData.js.map +0 -1
- package/esm/idx/remediators/Base/Remediator.js +0 -221
- package/esm/idx/remediators/Base/Remediator.js.map +0 -1
- package/esm/idx/remediators/Base/SelectAuthenticator.js +0 -140
- package/esm/idx/remediators/Base/SelectAuthenticator.js.map +0 -1
- package/esm/idx/remediators/Base/VerifyAuthenticator.js +0 -65
- package/esm/idx/remediators/Base/VerifyAuthenticator.js.map +0 -1
- package/esm/idx/remediators/ChallengeAuthenticator.js +0 -18
- package/esm/idx/remediators/ChallengeAuthenticator.js.map +0 -1
- package/esm/idx/remediators/EnrollAuthenticator.js +0 -18
- package/esm/idx/remediators/EnrollAuthenticator.js.map +0 -1
- package/esm/idx/remediators/EnrollProfile.js +0 -79
- package/esm/idx/remediators/EnrollProfile.js.map +0 -1
- package/esm/idx/remediators/Identify.js +0 -87
- package/esm/idx/remediators/Identify.js.map +0 -1
- package/esm/idx/remediators/ReEnrollAuthenticator.js +0 -45
- package/esm/idx/remediators/ReEnrollAuthenticator.js.map +0 -1
- package/esm/idx/remediators/RedirectIdp.js.map +0 -1
- package/esm/idx/remediators/ResetAuthenticator.js +0 -18
- package/esm/idx/remediators/ResetAuthenticator.js.map +0 -1
- package/esm/idx/remediators/SelectAuthenticatorAuthenticate.js +0 -18
- package/esm/idx/remediators/SelectAuthenticatorAuthenticate.js.map +0 -1
- package/esm/idx/remediators/SelectAuthenticatorEnroll.js +0 -18
- package/esm/idx/remediators/SelectAuthenticatorEnroll.js.map +0 -1
- package/esm/idx/remediators/SelectEnrollProfile.js +0 -24
- package/esm/idx/remediators/SelectEnrollProfile.js.map +0 -1
- package/esm/idx/remediators/Skip.js +0 -23
- package/esm/idx/remediators/Skip.js.map +0 -1
- package/esm/idx/remediators/index.js +0 -26
- package/esm/idx/remediators/index.js.map +0 -1
- package/esm/idx/remediators/util.js +0 -35
- package/esm/idx/remediators/util.js.map +0 -1
- package/esm/idx/run.js +0 -201
- package/esm/idx/run.js.map +0 -1
- package/esm/idx/startTransaction.js +0 -27
- package/esm/idx/startTransaction.js.map +0 -1
- package/esm/idx/transactionMeta.js +0 -114
- package/esm/idx/transactionMeta.js.map +0 -1
- package/esm/idx/types/idx-js.js +0 -17
- package/esm/idx/types/idx-js.js.map +0 -1
- package/esm/idx/types/index.js +0 -44
- package/esm/idx/types/index.js.map +0 -1
- package/esm/oidc/decodeToken.js +0 -31
- package/esm/oidc/decodeToken.js.map +0 -1
- package/esm/oidc/endpoints/authorize.js +0 -61
- package/esm/oidc/endpoints/authorize.js.map +0 -1
- package/esm/oidc/endpoints/index.js.map +0 -1
- package/esm/oidc/endpoints/token.js +0 -97
- package/esm/oidc/endpoints/token.js.map +0 -1
- package/esm/oidc/endpoints/well-known.js +0 -58
- package/esm/oidc/endpoints/well-known.js.map +0 -1
- package/esm/oidc/exchangeCodeForTokens.js +0 -69
- package/esm/oidc/exchangeCodeForTokens.js.map +0 -1
- package/esm/oidc/getToken.js +0 -180
- package/esm/oidc/getToken.js.map +0 -1
- package/esm/oidc/getUserInfo.js +0 -82
- package/esm/oidc/getUserInfo.js.map +0 -1
- package/esm/oidc/getWithPopup.js +0 -34
- package/esm/oidc/getWithPopup.js.map +0 -1
- package/esm/oidc/getWithRedirect.js +0 -65
- package/esm/oidc/getWithRedirect.js.map +0 -1
- package/esm/oidc/getWithoutPrompt.js +0 -29
- package/esm/oidc/getWithoutPrompt.js.map +0 -1
- package/esm/oidc/handleOAuthResponse.js +0 -148
- package/esm/oidc/handleOAuthResponse.js.map +0 -1
- package/esm/oidc/index.js +0 -29
- package/esm/oidc/index.js.map +0 -1
- package/esm/oidc/parseFromUrl.js +0 -144
- package/esm/oidc/parseFromUrl.js.map +0 -1
- package/esm/oidc/renewToken.js +0 -85
- package/esm/oidc/renewToken.js.map +0 -1
- package/esm/oidc/renewTokens.js +0 -74
- package/esm/oidc/renewTokens.js.map +0 -1
- package/esm/oidc/renewTokensWithRefresh.js +0 -55
- package/esm/oidc/renewTokensWithRefresh.js.map +0 -1
- package/esm/oidc/revokeToken.js +0 -57
- package/esm/oidc/revokeToken.js.map +0 -1
- package/esm/oidc/util/browser.js +0 -74
- package/esm/oidc/util/browser.js.map +0 -1
- package/esm/oidc/util/defaultTokenParams.js +0 -42
- package/esm/oidc/util/defaultTokenParams.js.map +0 -1
- package/esm/oidc/util/errors.js +0 -31
- package/esm/oidc/util/errors.js.map +0 -1
- package/esm/oidc/util/index.js +0 -25
- package/esm/oidc/util/index.js.map +0 -1
- package/esm/oidc/util/loginRedirect.js +0 -84
- package/esm/oidc/util/loginRedirect.js.map +0 -1
- package/esm/oidc/util/oauth.js +0 -70
- package/esm/oidc/util/oauth.js.map +0 -1
- package/esm/oidc/util/pkce.js +0 -55
- package/esm/oidc/util/pkce.js.map +0 -1
- package/esm/oidc/util/prepareTokenParams.js +0 -75
- package/esm/oidc/util/prepareTokenParams.js.map +0 -1
- package/esm/oidc/util/refreshToken.js +0 -24
- package/esm/oidc/util/refreshToken.js.map +0 -1
- package/esm/oidc/util/urlParams.js +0 -54
- package/esm/oidc/util/urlParams.js.map +0 -1
- package/esm/oidc/util/validateClaims.js +0 -53
- package/esm/oidc/util/validateClaims.js.map +0 -1
- package/esm/oidc/util/validateToken.js +0 -21
- package/esm/oidc/util/validateToken.js.map +0 -1
- package/esm/oidc/verifyToken.js +0 -78
- package/esm/oidc/verifyToken.js.map +0 -1
- package/esm/options.js +0 -134
- package/esm/options.js.map +0 -1
- package/esm/server/serverStorage.js +0 -110
- package/esm/server/serverStorage.js.map +0 -1
- package/esm/services/TokenService.js +0 -103
- package/esm/services/TokenService.js.map +0 -1
- package/esm/session.js +0 -81
- package/esm/session.js.map +0 -1
- package/esm/tx/AuthTransaction.js +0 -213
- package/esm/tx/AuthTransaction.js.map +0 -1
- package/esm/tx/TransactionState.js.map +0 -1
- package/esm/tx/api.js +0 -87
- package/esm/tx/api.js.map +0 -1
- package/esm/tx/index.js +0 -18
- package/esm/tx/index.js.map +0 -1
- package/esm/tx/poll.js +0 -124
- package/esm/tx/poll.js.map +0 -1
- package/esm/tx/util.js.map +0 -1
- package/esm/types/AuthState.js +0 -3
- package/esm/types/Cookies.js +0 -3
- package/esm/types/EventEmitter.js +0 -3
- package/esm/types/EventEmitter.js.map +0 -1
- package/esm/types/JWT.js +0 -3
- package/esm/types/JWT.js.map +0 -1
- package/esm/types/OAuth.js +0 -3
- package/esm/types/OAuth.js.map +0 -1
- package/esm/types/OktaAuthOptions.js +0 -3
- package/esm/types/OktaAuthOptions.js.map +0 -1
- package/esm/types/Storage.js +0 -3
- package/esm/types/Storage.js.map +0 -1
- package/esm/types/Token.js +0 -29
- package/esm/types/Token.js.map +0 -1
- package/esm/types/TokenManager.js +0 -3
- package/esm/types/TokenManager.js.map +0 -1
- package/esm/types/Transaction.js +0 -57
- package/esm/types/Transaction.js.map +0 -1
- package/esm/types/UserClaims.js +0 -3
- package/esm/types/UserClaims.js.map +0 -1
- package/esm/types/api.js +0 -3
- package/esm/types/api.js.map +0 -1
- package/esm/types/http.js +0 -3
- package/esm/types/http.js.map +0 -1
- package/esm/types/index.js +0 -27
- package/esm/types/index.js.map +0 -1
- package/esm/util/console.js +0 -53
- package/esm/util/console.js.map +0 -1
- package/esm/util/index.js +0 -17
- package/esm/util/index.js.map +0 -1
- package/esm/util/misc.js +0 -33
- package/esm/util/misc.js.map +0 -1
- package/esm/util/object.js +0 -117
- package/esm/util/object.js.map +0 -1
- package/esm/util/sharedStorage.js +0 -43
- package/esm/util/sharedStorage.js.map +0 -1
- package/esm/util/types.js +0 -27
- package/esm/util/types.js.map +0 -1
- package/esm/util/url.js +0 -64
- package/esm/util/url.js.map +0 -1
- package/lib/idx/flowMonitors/FlowMonitor.d.ts +0 -23
- package/lib/idx/flowMonitors/PasswordRecoveryFlowMonitor.d.ts +0 -16
- package/lib/idx/flowMonitors/RegistrationFlowMonitor.d.ts +0 -15
package/lib/OktaAuth.d.ts
CHANGED
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
*/
|
|
12
12
|
import { OktaAuth as SDKInterface, OktaAuthOptions, AccessToken, RefreshToken, TokenAPI, FeaturesAPI, SignoutAPI, FingerprintAPI, UserClaims, SigninWithRedirectOptions, SigninWithCredentialsOptions, SignoutOptions, Tokens, ForgotPasswordOptions, VerifyRecoveryTokenOptions, TransactionAPI, SessionAPI, SigninAPI, PkceAPI, SigninOptions, IdxAPI, SignoutRedirectUrlOptions, HttpAPI } from './types';
|
|
13
13
|
import { AuthTransaction } from './tx';
|
|
14
|
+
import { EmailVerifyCallbackResponse } from './util';
|
|
14
15
|
import { TokenManager } from './TokenManager';
|
|
15
16
|
import PromiseQueue from './PromiseQueue';
|
|
16
17
|
import { AuthStateManager } from './AuthStateManager';
|
|
@@ -44,8 +45,10 @@ declare class OktaAuth implements SDKInterface, SigninAPI, SignoutAPI {
|
|
|
44
45
|
start(): void;
|
|
45
46
|
stop(): void;
|
|
46
47
|
setHeaders(headers: any): void;
|
|
47
|
-
isInteractionRequired(): boolean;
|
|
48
|
+
isInteractionRequired(hashOrSearch?: string): boolean;
|
|
48
49
|
isInteractionRequiredError(error: Error): boolean;
|
|
50
|
+
isEmailVerifyCallback(urlPath: string): boolean;
|
|
51
|
+
parseEmailVerifyCallback(urlPath: string): EmailVerifyCallbackResponse;
|
|
49
52
|
signIn(opts: SigninOptions): Promise<AuthTransaction>;
|
|
50
53
|
signInWithCredentials(opts: SigninWithCredentialsOptions): Promise<AuthTransaction>;
|
|
51
54
|
signInWithRedirect(opts?: SigninWithRedirectOptions): Promise<void>;
|
|
@@ -64,9 +67,9 @@ declare class OktaAuth implements SDKInterface, SigninAPI, SignoutAPI {
|
|
|
64
67
|
* Store parsed tokens from redirect url
|
|
65
68
|
*/
|
|
66
69
|
storeTokensFromRedirect(): Promise<void>;
|
|
67
|
-
setOriginalUri(originalUri: string): void;
|
|
70
|
+
setOriginalUri(originalUri: string, state?: string): void;
|
|
68
71
|
getOriginalUri(state?: string): string;
|
|
69
|
-
removeOriginalUri(): void;
|
|
72
|
+
removeOriginalUri(state?: string): void;
|
|
70
73
|
isLoginRedirect(): boolean;
|
|
71
74
|
handleLoginRedirect(tokens?: Tokens, originalUri?: string): Promise<void>;
|
|
72
75
|
isPKCE(): boolean;
|
package/lib/StorageManager.d.ts
CHANGED
|
@@ -19,6 +19,7 @@ export default class StorageManager {
|
|
|
19
19
|
getStorage(options: StorageOptions): SimpleStorage;
|
|
20
20
|
getTransactionStorage(options?: StorageOptions): TransactionStorage;
|
|
21
21
|
getSharedTansactionStorage(options?: StorageOptions): TransactionStorage;
|
|
22
|
+
getOriginalUriStorage(options?: StorageOptions): TransactionStorage;
|
|
22
23
|
getIdxResponseStorage(options?: StorageOptions): IdxResponseStorage;
|
|
23
24
|
getTokenStorage(options?: StorageOptions): StorageProvider;
|
|
24
25
|
getHttpCache(options?: StorageOptions): StorageProvider;
|
package/lib/TokenManager.d.ts
CHANGED
|
@@ -44,6 +44,8 @@ export declare class TokenManager implements TokenManagerInterface {
|
|
|
44
44
|
validateToken(token: Token): void;
|
|
45
45
|
renew(key: any): Promise<Token>;
|
|
46
46
|
clear(): void;
|
|
47
|
+
clearPendingRemoveTokens(): void;
|
|
47
48
|
getTokensFromStorageValue(value: any): any;
|
|
48
49
|
updateRefreshToken(token: RefreshToken): void;
|
|
50
|
+
addPendingRemoveFlags(): void;
|
|
49
51
|
}
|
|
@@ -12,6 +12,9 @@
|
|
|
12
12
|
import StorageManager from './StorageManager';
|
|
13
13
|
import { TransactionMeta, PKCETransactionMeta, OAuthTransactionMeta, TransactionMetaOptions, TransactionManagerOptions } from './types';
|
|
14
14
|
import { RawIdxResponse } from './idx/types/idx-js';
|
|
15
|
+
export interface ClearTransactionMetaOptions extends TransactionMetaOptions {
|
|
16
|
+
clearSharedStorage?: boolean;
|
|
17
|
+
}
|
|
15
18
|
export default class TransactionManager {
|
|
16
19
|
options: TransactionManagerOptions;
|
|
17
20
|
storageManager: StorageManager;
|
|
@@ -21,7 +24,7 @@ export default class TransactionManager {
|
|
|
21
24
|
saveParamsCookie: boolean;
|
|
22
25
|
enableSharedStorage: boolean;
|
|
23
26
|
constructor(options: TransactionManagerOptions);
|
|
24
|
-
clear(options?:
|
|
27
|
+
clear(options?: ClearTransactionMetaOptions): void;
|
|
25
28
|
save(meta: TransactionMeta, options?: TransactionMetaOptions): void;
|
|
26
29
|
exists(options?: TransactionMetaOptions): boolean;
|
|
27
30
|
load(options?: TransactionMetaOptions): TransactionMeta;
|
|
@@ -31,4 +34,5 @@ export default class TransactionManager {
|
|
|
31
34
|
loadLegacyOAuthParams(): OAuthTransactionMeta;
|
|
32
35
|
saveIdxResponse(idxResponse: RawIdxResponse): void;
|
|
33
36
|
loadIdxResponse(): RawIdxResponse;
|
|
37
|
+
clearIdxResponse(): void;
|
|
34
38
|
}
|
package/lib/constants.d.ts
CHANGED
|
@@ -21,6 +21,7 @@ export declare const CACHE_STORAGE_NAME = "okta-cache-storage";
|
|
|
21
21
|
export declare const PKCE_STORAGE_NAME = "okta-pkce-storage";
|
|
22
22
|
export declare const TRANSACTION_STORAGE_NAME = "okta-transaction-storage";
|
|
23
23
|
export declare const SHARED_TRANSACTION_STORAGE_NAME = "okta-shared-transaction-storage";
|
|
24
|
+
export declare const ORIGINAL_URI_STORAGE_NAME = "okta-original-uri-storage";
|
|
24
25
|
export declare const IDX_RESPONSE_STORAGE_NAME = "okta-idx-response-storage";
|
|
25
26
|
export declare const ACCESS_TOKEN_STORAGE_KEY = "accessToken";
|
|
26
27
|
export declare const ID_TOKEN_STORAGE_KEY = "idToken";
|
package/lib/crypto/base64.d.ts
CHANGED
|
@@ -12,6 +12,6 @@
|
|
|
12
12
|
export declare function stringToBase64Url(str: any): any;
|
|
13
13
|
export declare function base64ToBase64Url(b64: any): any;
|
|
14
14
|
export declare function base64UrlToBase64(b64u: any): any;
|
|
15
|
-
export declare function base64UrlToString(b64u: any):
|
|
15
|
+
export declare function base64UrlToString(b64u: any): any;
|
|
16
16
|
export declare function stringToBuffer(str: any): Uint8Array;
|
|
17
|
-
export declare function base64UrlDecode(str: any):
|
|
17
|
+
export declare function base64UrlDecode(str: any): any;
|
package/lib/crypto/oidcHash.d.ts
CHANGED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { RemediationValues } from '../remediators';
|
|
2
|
+
import { IdxAuthenticator, IdxRemediationValue } from '../types/idx-js';
|
|
3
|
+
export interface Credentials {
|
|
4
|
+
[key: string]: string;
|
|
5
|
+
}
|
|
6
|
+
export declare abstract class Authenticator {
|
|
7
|
+
meta: IdxAuthenticator;
|
|
8
|
+
constructor(authenticator: IdxAuthenticator);
|
|
9
|
+
abstract canVerify(values: RemediationValues): boolean;
|
|
10
|
+
abstract mapCredentials(values: RemediationValues): Credentials;
|
|
11
|
+
abstract getInputs(idxRemediationValue: IdxRemediationValue): any;
|
|
12
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Authenticator } from './Authenticator';
|
|
2
|
+
export declare type OktaPasswordInputValues = {
|
|
3
|
+
password: string;
|
|
4
|
+
};
|
|
5
|
+
export declare class OktaPassword extends Authenticator {
|
|
6
|
+
canVerify(values: any): boolean;
|
|
7
|
+
mapCredentials(values: any): {
|
|
8
|
+
passcode: any;
|
|
9
|
+
};
|
|
10
|
+
getInputs(idxRemediationValue: any): any;
|
|
11
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Credentials } from './Authenticator';
|
|
2
|
+
import { VerificationCodeAuthenticator } from './VerificationCodeAuthenticator';
|
|
3
|
+
interface TotpCredentials extends Credentials {
|
|
4
|
+
totp: string;
|
|
5
|
+
}
|
|
6
|
+
export declare class OktaVerifyTotp extends VerificationCodeAuthenticator {
|
|
7
|
+
mapCredentials(values: any): TotpCredentials;
|
|
8
|
+
}
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { Authenticator } from './Authenticator';
|
|
2
|
+
export declare class SecurityQuestionEnrollment extends Authenticator {
|
|
3
|
+
canVerify(values: any): any;
|
|
4
|
+
mapCredentials(values: any): {
|
|
5
|
+
questionKey: any;
|
|
6
|
+
question: any;
|
|
7
|
+
answer: any;
|
|
8
|
+
};
|
|
9
|
+
getInputs(): ({
|
|
10
|
+
name: string;
|
|
11
|
+
type: string;
|
|
12
|
+
require: boolean;
|
|
13
|
+
label?: undefined;
|
|
14
|
+
required?: undefined;
|
|
15
|
+
} | {
|
|
16
|
+
name: string;
|
|
17
|
+
type: string;
|
|
18
|
+
label: string;
|
|
19
|
+
require?: undefined;
|
|
20
|
+
required?: undefined;
|
|
21
|
+
} | {
|
|
22
|
+
name: string;
|
|
23
|
+
type: string;
|
|
24
|
+
label: string;
|
|
25
|
+
required: boolean;
|
|
26
|
+
require?: undefined;
|
|
27
|
+
})[];
|
|
28
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { Authenticator } from './Authenticator';
|
|
2
|
+
export declare class SecurityQuestionVerification extends Authenticator {
|
|
3
|
+
canVerify(values: any): any;
|
|
4
|
+
mapCredentials(values: any): {
|
|
5
|
+
questionKey: string;
|
|
6
|
+
answer: any;
|
|
7
|
+
};
|
|
8
|
+
getInputs(): {
|
|
9
|
+
name: string;
|
|
10
|
+
type: string;
|
|
11
|
+
label: string;
|
|
12
|
+
required: boolean;
|
|
13
|
+
}[];
|
|
14
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Authenticator, Credentials } from './Authenticator';
|
|
2
|
+
interface VerificationCodeCredentials extends Credentials {
|
|
3
|
+
passcode: string;
|
|
4
|
+
}
|
|
5
|
+
export declare class VerificationCodeAuthenticator extends Authenticator {
|
|
6
|
+
canVerify(values: any): boolean;
|
|
7
|
+
mapCredentials(values: any): VerificationCodeCredentials | Credentials;
|
|
8
|
+
getInputs(idxRemediationValue: any): any;
|
|
9
|
+
}
|
|
10
|
+
export {};
|
|
@@ -6,10 +6,8 @@
|
|
|
6
6
|
* Unless required by applicable law or agreed to in writing, software
|
|
7
7
|
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
|
8
8
|
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
9
|
-
*
|
|
9
|
+
*
|
|
10
10
|
* See the License for the specific language governing permissions and limitations under the License.
|
|
11
11
|
*/
|
|
12
|
-
|
|
13
|
-
export
|
|
14
|
-
export * from './well-known';
|
|
15
|
-
//# sourceMappingURL=index.js.map
|
|
12
|
+
import { RemediationFlow } from './RemediationFlow';
|
|
13
|
+
export declare const AuthenticationFlow: RemediationFlow;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { OktaAuth, FlowIdentifier } from '../../types';
|
|
2
|
+
import { RemediationFlow } from './RemediationFlow';
|
|
3
|
+
export interface FlowSpecification {
|
|
4
|
+
flow: FlowIdentifier;
|
|
5
|
+
remediators: RemediationFlow;
|
|
6
|
+
actions?: string[];
|
|
7
|
+
}
|
|
8
|
+
export declare function getFlowSpecification(oktaAuth: OktaAuth, flow?: FlowIdentifier): FlowSpecification;
|
|
@@ -6,11 +6,8 @@
|
|
|
6
6
|
* Unless required by applicable law or agreed to in writing, software
|
|
7
7
|
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
|
8
8
|
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
9
|
-
*
|
|
9
|
+
*
|
|
10
10
|
* See the License for the specific language governing permissions and limitations under the License.
|
|
11
11
|
*/
|
|
12
|
-
|
|
13
|
-
export
|
|
14
|
-
export * from './verifyToken';
|
|
15
|
-
export * from './webcrypto';
|
|
16
|
-
//# sourceMappingURL=index.js.map
|
|
12
|
+
import { RemediationFlow } from './RemediationFlow';
|
|
13
|
+
export declare const PasswordRecoveryFlow: RemediationFlow;
|
|
@@ -6,8 +6,8 @@
|
|
|
6
6
|
* Unless required by applicable law or agreed to in writing, software
|
|
7
7
|
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
|
8
8
|
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
9
|
-
*
|
|
9
|
+
*
|
|
10
10
|
* See the License for the specific language governing permissions and limitations under the License.
|
|
11
11
|
*/
|
|
12
|
-
|
|
13
|
-
|
|
12
|
+
import { RemediationFlow } from './RemediationFlow';
|
|
13
|
+
export declare const RegistrationFlow: RemediationFlow;
|
|
@@ -0,0 +1,13 @@
|
|
|
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
|
+
import * as remediators from '../remediators';
|
|
13
|
+
export declare type RemediationFlow = Record<string, typeof remediators.Remediator>;
|
|
@@ -9,7 +9,8 @@
|
|
|
9
9
|
*
|
|
10
10
|
* See the License for the specific language governing permissions and limitations under the License.
|
|
11
11
|
*/
|
|
12
|
-
export * from './
|
|
13
|
-
export * from './
|
|
14
|
-
export * from './
|
|
15
|
-
export * from './
|
|
12
|
+
export * from './AuthenticationFlow';
|
|
13
|
+
export * from './FlowSpecification';
|
|
14
|
+
export * from './PasswordRecoveryFlow';
|
|
15
|
+
export * from './RegistrationFlow';
|
|
16
|
+
export * from './RemediationFlow';
|
package/lib/idx/index.d.ts
CHANGED
|
@@ -13,7 +13,10 @@ export * from './authenticate';
|
|
|
13
13
|
export * from './cancel';
|
|
14
14
|
export * from './interact';
|
|
15
15
|
export * from './introspect';
|
|
16
|
+
export * from './poll';
|
|
17
|
+
export * from './proceed';
|
|
16
18
|
export * from './register';
|
|
17
19
|
export * from './recoverPassword';
|
|
18
20
|
export * from './handleInteractionCodeRedirect';
|
|
19
21
|
export * from './startTransaction';
|
|
22
|
+
export * from './transactionMeta';
|
package/lib/idx/interact.d.ts
CHANGED
package/lib/idx/introspect.d.ts
CHANGED
|
@@ -12,7 +12,8 @@
|
|
|
12
12
|
import { OktaAuth } from '../types';
|
|
13
13
|
import { IdxResponse } from './types/idx-js';
|
|
14
14
|
export interface IntrospectOptions {
|
|
15
|
-
interactionHandle
|
|
15
|
+
interactionHandle?: string;
|
|
16
16
|
stateHandle?: string;
|
|
17
|
+
stateTokenExternalId?: string;
|
|
17
18
|
}
|
|
18
19
|
export declare function introspect(authClient: OktaAuth, options: IntrospectOptions): Promise<IdxResponse>;
|
|
@@ -0,0 +1,13 @@
|
|
|
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 { IdxPollOptions, IdxTransaction, OktaAuth } from '../types';
|
|
13
|
+
export declare function poll(authClient: OktaAuth, options?: IdxPollOptions): Promise<IdxTransaction>;
|
|
@@ -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
|
+
import { OktaAuth, IdxTransaction } from '../types';
|
|
13
|
+
import { AuthenticationOptions } from './authenticate';
|
|
14
|
+
import { EnrollPollValues as EnrollPollOptions } from './remediators';
|
|
15
|
+
import { RegistrationOptions } from './register';
|
|
16
|
+
import { PasswordRecoveryOptions } from './recoverPassword';
|
|
17
|
+
export declare type ProceedOptions = AuthenticationOptions & RegistrationOptions & PasswordRecoveryOptions & EnrollPollOptions;
|
|
18
|
+
export declare function canProceed(authClient: OktaAuth, options?: {
|
|
19
|
+
state?: string;
|
|
20
|
+
}): boolean;
|
|
21
|
+
export declare function proceed(authClient: OktaAuth, options?: ProceedOptions): Promise<IdxTransaction>;
|
package/lib/idx/register.d.ts
CHANGED
|
@@ -12,4 +12,4 @@
|
|
|
12
12
|
import { EnrollProfileValues, SelectAuthenticatorEnrollValues, EnrollAuthenticatorValues, AuthenticatorEnrollmentDataValues, SkipValues } from './remediators';
|
|
13
13
|
import { IdxOptions, IdxTransaction, OktaAuth } from '../types';
|
|
14
14
|
export declare type RegistrationOptions = IdxOptions & EnrollProfileValues & SelectAuthenticatorEnrollValues & EnrollAuthenticatorValues & AuthenticatorEnrollmentDataValues & SkipValues;
|
|
15
|
-
export declare function register(authClient: OktaAuth, options
|
|
15
|
+
export declare function register(authClient: OktaAuth, options?: RegistrationOptions): Promise<IdxTransaction>;
|
|
@@ -10,7 +10,6 @@
|
|
|
10
10
|
* See the License for the specific language governing permissions and limitations under the License.
|
|
11
11
|
*/
|
|
12
12
|
import { AuthenticatorData, AuthenticatorDataValues } from './Base/AuthenticatorData';
|
|
13
|
-
import { Authenticator } from '../types';
|
|
14
13
|
export declare type AuthenticatorEnrollmentDataValues = AuthenticatorDataValues & {
|
|
15
14
|
phoneNumber?: string;
|
|
16
15
|
resend?: boolean;
|
|
@@ -18,16 +17,21 @@ export declare type AuthenticatorEnrollmentDataValues = AuthenticatorDataValues
|
|
|
18
17
|
export declare class AuthenticatorEnrollmentData extends AuthenticatorData {
|
|
19
18
|
static remediationName: string;
|
|
20
19
|
values: AuthenticatorEnrollmentDataValues;
|
|
21
|
-
canRemediate(): boolean;
|
|
22
20
|
mapAuthenticator(): {
|
|
23
21
|
id: string;
|
|
24
22
|
methodType: string;
|
|
25
23
|
phoneNumber: string;
|
|
26
24
|
};
|
|
27
|
-
getInputAuthenticator(): {
|
|
25
|
+
getInputAuthenticator(): ({
|
|
28
26
|
name: string;
|
|
29
27
|
type: string;
|
|
30
28
|
required: boolean;
|
|
31
|
-
|
|
32
|
-
|
|
29
|
+
label?: undefined;
|
|
30
|
+
} | {
|
|
31
|
+
name: string;
|
|
32
|
+
type: string;
|
|
33
|
+
required: boolean;
|
|
34
|
+
label: string;
|
|
35
|
+
})[];
|
|
36
|
+
protected mapAuthenticatorDataFromValues(data?: any): any;
|
|
33
37
|
}
|
|
@@ -14,7 +14,6 @@ export declare type AuthenticatorVerificationDataValues = AuthenticatorDataValue
|
|
|
14
14
|
export declare class AuthenticatorVerificationData extends AuthenticatorData {
|
|
15
15
|
static remediationName: string;
|
|
16
16
|
values: AuthenticatorVerificationDataValues;
|
|
17
|
-
canRemediate(): boolean;
|
|
18
17
|
mapAuthenticator(): {
|
|
19
18
|
id: string;
|
|
20
19
|
enrollmentId: string;
|
|
@@ -10,8 +10,8 @@
|
|
|
10
10
|
* See the License for the specific language governing permissions and limitations under the License.
|
|
11
11
|
*/
|
|
12
12
|
import { Remediator, RemediationValues } from './Remediator';
|
|
13
|
-
import { Authenticator } from '../../types';
|
|
14
13
|
import { IdxRemediationValue, IdxOption, IdxRemediation } from '../../types/idx-js';
|
|
14
|
+
import { Authenticator } from '../../types';
|
|
15
15
|
export declare type AuthenticatorDataValues = RemediationValues & {
|
|
16
16
|
methodType?: string;
|
|
17
17
|
};
|
|
@@ -20,7 +20,11 @@ export declare class AuthenticatorData extends Remediator {
|
|
|
20
20
|
authenticator: any[];
|
|
21
21
|
};
|
|
22
22
|
values: AuthenticatorDataValues;
|
|
23
|
+
authenticator: Authenticator;
|
|
23
24
|
constructor(remediation: IdxRemediation, values?: AuthenticatorDataValues);
|
|
25
|
+
protected formatAuthenticatorData(): void;
|
|
26
|
+
protected getAuthenticatorData(): Authenticator;
|
|
27
|
+
canRemediate(): boolean;
|
|
24
28
|
getNextStep(): {
|
|
25
29
|
options: IdxOption[];
|
|
26
30
|
name: string;
|
|
@@ -28,9 +32,10 @@ export declare class AuthenticatorData extends Remediator {
|
|
|
28
32
|
canSkip?: boolean;
|
|
29
33
|
canResend?: boolean;
|
|
30
34
|
inputs?: import("../../types").Input[];
|
|
35
|
+
poll?: import("../../types").IdxPollOptions;
|
|
31
36
|
};
|
|
32
|
-
protected
|
|
33
|
-
protected mapAuthenticatorFromValues(authenticator?: Authenticator): Authenticator;
|
|
37
|
+
protected mapAuthenticatorDataFromValues(authenticatorData?: any): any;
|
|
34
38
|
protected getAuthenticatorFromRemediation(): IdxRemediationValue;
|
|
35
39
|
private getMethodTypes;
|
|
40
|
+
getValuesAfterProceed(): RemediationValues;
|
|
36
41
|
}
|
|
@@ -9,12 +9,14 @@
|
|
|
9
9
|
*
|
|
10
10
|
* See the License for the specific language governing permissions and limitations under the License.
|
|
11
11
|
*/
|
|
12
|
-
import { NextStep, IdxMessage, Authenticator } from '../../types';
|
|
13
|
-
import { IdxAuthenticator, IdxRemediation } from '../../types/idx-js';
|
|
12
|
+
import { NextStep, IdxMessage, Authenticator, IdxOptions } from '../../types';
|
|
13
|
+
import { IdxAuthenticator, IdxRemediation, IdxContext } from '../../types/idx-js';
|
|
14
14
|
export declare type IdxToRemediationValueMap = Record<string, string[]>;
|
|
15
|
-
export interface RemediationValues {
|
|
15
|
+
export interface RemediationValues extends IdxOptions {
|
|
16
16
|
stateHandle?: string;
|
|
17
17
|
authenticators?: Authenticator[] | string[];
|
|
18
|
+
authenticator?: string;
|
|
19
|
+
authenticatorsData?: Authenticator[];
|
|
18
20
|
}
|
|
19
21
|
export declare class Remediator {
|
|
20
22
|
static remediationName: string;
|
|
@@ -22,13 +24,14 @@ export declare class Remediator {
|
|
|
22
24
|
values: RemediationValues;
|
|
23
25
|
map?: IdxToRemediationValueMap;
|
|
24
26
|
constructor(remediation: IdxRemediation, values?: RemediationValues);
|
|
27
|
+
private formatAuthenticators;
|
|
25
28
|
getName(): string;
|
|
26
29
|
canRemediate(): boolean;
|
|
27
30
|
getData(key?: string): any;
|
|
28
31
|
hasData(key: string): boolean;
|
|
29
|
-
getNextStep(): NextStep;
|
|
32
|
+
getNextStep(_context?: IdxContext): NextStep;
|
|
30
33
|
private getInputs;
|
|
31
|
-
getMessages(): IdxMessage[] | undefined;
|
|
32
|
-
getValuesAfterProceed():
|
|
34
|
+
static getMessages(remediation: IdxRemediation): IdxMessage[] | undefined;
|
|
35
|
+
getValuesAfterProceed(): RemediationValues;
|
|
33
36
|
protected getAuthenticator(): IdxAuthenticator | undefined;
|
|
34
37
|
}
|
|
@@ -10,17 +10,16 @@
|
|
|
10
10
|
* See the License for the specific language governing permissions and limitations under the License.
|
|
11
11
|
*/
|
|
12
12
|
import { Remediator, RemediationValues } from './Remediator';
|
|
13
|
-
import {
|
|
13
|
+
import { IdxAuthenticator, IdxRemediationValue } from '../../types/idx-js';
|
|
14
14
|
export declare type SelectAuthenticatorValues = RemediationValues & {
|
|
15
15
|
authenticator?: string;
|
|
16
16
|
};
|
|
17
17
|
export declare class SelectAuthenticator extends Remediator {
|
|
18
18
|
values: SelectAuthenticatorValues;
|
|
19
|
-
|
|
19
|
+
selectedAuthenticator: IdxAuthenticator;
|
|
20
20
|
map: {
|
|
21
21
|
authenticator: any[];
|
|
22
22
|
};
|
|
23
|
-
constructor(remediation: IdxRemediation, values?: SelectAuthenticatorValues);
|
|
24
23
|
canRemediate(): boolean;
|
|
25
24
|
getNextStep(): {
|
|
26
25
|
options: {
|
|
@@ -28,10 +27,11 @@ export declare class SelectAuthenticator extends Remediator {
|
|
|
28
27
|
value: string;
|
|
29
28
|
}[];
|
|
30
29
|
name: string;
|
|
31
|
-
authenticator?:
|
|
30
|
+
authenticator?: IdxAuthenticator;
|
|
32
31
|
canSkip?: boolean;
|
|
33
32
|
canResend?: boolean;
|
|
34
33
|
inputs?: import("../../types").Input[];
|
|
34
|
+
poll?: import("../../types").IdxPollOptions;
|
|
35
35
|
};
|
|
36
36
|
mapAuthenticator(remediationValue: IdxRemediationValue): {
|
|
37
37
|
id: any;
|
|
@@ -40,4 +40,5 @@ export declare class SelectAuthenticator extends Remediator {
|
|
|
40
40
|
name: string;
|
|
41
41
|
key: string;
|
|
42
42
|
};
|
|
43
|
+
getValuesAfterProceed(): RemediationValues;
|
|
43
44
|
}
|
|
@@ -10,19 +10,23 @@
|
|
|
10
10
|
* See the License for the specific language governing permissions and limitations under the License.
|
|
11
11
|
*/
|
|
12
12
|
import { Remediator, RemediationValues } from './Remediator';
|
|
13
|
+
import { Authenticator } from '../../authenticator';
|
|
14
|
+
import { IdxRemediation } from '../../types/idx-js';
|
|
13
15
|
export interface VerifyAuthenticatorValues extends RemediationValues {
|
|
14
16
|
verificationCode?: string;
|
|
15
17
|
password?: string;
|
|
18
|
+
questionKey?: string;
|
|
19
|
+
question?: string;
|
|
20
|
+
answer?: string;
|
|
16
21
|
}
|
|
17
22
|
export declare class VerifyAuthenticator extends Remediator {
|
|
23
|
+
authenticator: Authenticator;
|
|
18
24
|
values: VerifyAuthenticatorValues;
|
|
19
25
|
map: {
|
|
20
26
|
credentials: any[];
|
|
21
27
|
};
|
|
28
|
+
constructor(remediation: IdxRemediation, values?: RemediationValues);
|
|
22
29
|
canRemediate(): boolean;
|
|
23
|
-
mapCredentials():
|
|
24
|
-
passcode: string;
|
|
25
|
-
};
|
|
30
|
+
mapCredentials(): import("../../authenticator").Credentials;
|
|
26
31
|
getInputCredentials(input: any): any;
|
|
27
|
-
getValuesAfterProceed(): VerifyAuthenticatorValues;
|
|
28
32
|
}
|
|
@@ -0,0 +1,15 @@
|
|
|
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
|
+
import { EnrollPoll } from './EnrollPoll';
|
|
13
|
+
export declare class ChallengePoll extends EnrollPoll {
|
|
14
|
+
static remediationName: string;
|
|
15
|
+
}
|
|
@@ -8,19 +8,17 @@
|
|
|
8
8
|
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
9
9
|
*
|
|
10
10
|
* See the License for the specific language governing permissions and limitations under the License.
|
|
11
|
-
*
|
|
12
11
|
*/
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
builtArgs.stateToken = res.stateToken;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
return builtArgs;
|
|
12
|
+
import { Remediator, RemediationValues } from './Base/Remediator';
|
|
13
|
+
import { NextStep } from '../../types';
|
|
14
|
+
import { IdxContext } from '../types/idx-js';
|
|
15
|
+
export interface EnrollPollValues extends RemediationValues {
|
|
16
|
+
startPolling?: boolean;
|
|
22
17
|
}
|
|
23
|
-
export
|
|
24
|
-
|
|
18
|
+
export declare class EnrollPoll extends Remediator {
|
|
19
|
+
static remediationName: string;
|
|
20
|
+
values: EnrollPollValues;
|
|
21
|
+
canRemediate(): boolean;
|
|
22
|
+
getNextStep(context?: IdxContext): NextStep;
|
|
23
|
+
getValuesAfterProceed(): unknown;
|
|
25
24
|
}
|
|
26
|
-
//# sourceMappingURL=util.js.map
|
|
@@ -10,7 +10,6 @@
|
|
|
10
10
|
* See the License for the specific language governing permissions and limitations under the License.
|
|
11
11
|
*/
|
|
12
12
|
import { Remediator, RemediationValues } from './Base/Remediator';
|
|
13
|
-
import { IdxRemediation } from '../types/idx-js';
|
|
14
13
|
export interface IdentifyValues extends RemediationValues {
|
|
15
14
|
username?: string;
|
|
16
15
|
password?: string;
|
|
@@ -21,12 +20,11 @@ export declare class Identify extends Remediator {
|
|
|
21
20
|
map: {
|
|
22
21
|
identifier: string[];
|
|
23
22
|
credentials: any[];
|
|
23
|
+
rememberMe: string[];
|
|
24
24
|
};
|
|
25
|
-
constructor(remediation: IdxRemediation, values?: IdentifyValues);
|
|
26
25
|
canRemediate(): boolean;
|
|
27
26
|
mapCredentials(): {
|
|
28
27
|
passcode: string;
|
|
29
28
|
};
|
|
30
29
|
getInputCredentials(input: any): any;
|
|
31
|
-
getValuesAfterProceed(): unknown;
|
|
32
30
|
}
|