@okta/okta-auth-js 5.11.0 → 6.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.
- package/CHANGELOG.md +74 -0
- package/README.md +63 -29
- package/cjs/AuthStateManager.js +15 -6
- package/cjs/AuthStateManager.js.map +1 -1
- package/cjs/OktaAuth.js +168 -108
- package/cjs/OktaAuth.js.map +1 -1
- package/cjs/OktaUserAgent.js +2 -2
- package/cjs/OktaUserAgent.js.map +1 -1
- package/cjs/PromiseQueue.js +11 -2
- package/cjs/PromiseQueue.js.map +1 -1
- package/cjs/SavedObject.js +4 -2
- package/cjs/SavedObject.js.map +1 -1
- package/cjs/ServiceManager.js +195 -0
- package/cjs/ServiceManager.js.map +1 -0
- package/cjs/StorageManager.js +16 -9
- package/cjs/StorageManager.js.map +1 -1
- package/cjs/TokenManager.js +42 -34
- package/cjs/TokenManager.js.map +1 -1
- package/cjs/TransactionManager.js +26 -7
- package/cjs/TransactionManager.js.map +1 -1
- package/cjs/browser/browserStorage.js +36 -20
- package/cjs/browser/browserStorage.js.map +1 -1
- package/cjs/browser/fingerprint.js +12 -4
- package/cjs/browser/fingerprint.js.map +1 -1
- package/cjs/builderUtil.js +7 -19
- package/cjs/builderUtil.js.map +1 -1
- package/cjs/clock.js +5 -1
- package/cjs/clock.js.map +1 -1
- package/cjs/crypto/base64.js +18 -0
- package/cjs/crypto/base64.js.map +1 -1
- package/cjs/crypto/index.js +6 -4
- package/cjs/crypto/index.js.map +1 -1
- package/cjs/crypto/node.js +19 -13
- package/cjs/crypto/node.js.map +1 -1
- package/cjs/crypto/oidcHash.js +5 -1
- package/cjs/crypto/oidcHash.js.map +1 -1
- package/cjs/crypto/webauthn.js +101 -0
- package/cjs/crypto/webauthn.js.map +1 -0
- package/cjs/crypto/webcrypto.js +3 -1
- package/cjs/crypto/webcrypto.js.map +1 -1
- package/cjs/errors/AuthApiError.js +1 -1
- package/cjs/errors/AuthPollStopError.js +1 -1
- package/cjs/errors/AuthSdkError.js +1 -1
- package/cjs/errors/CustomError.js +5 -1
- package/cjs/errors/CustomError.js.map +1 -1
- package/cjs/errors/OAuthError.js +1 -1
- package/cjs/errors/index.js +1 -1
- package/cjs/features.js +9 -3
- package/cjs/features.js.map +1 -1
- package/cjs/fetch/fetchRequest.js +19 -6
- package/cjs/fetch/fetchRequest.js.map +1 -1
- package/cjs/http/headers.js.map +1 -1
- package/cjs/http/index.js +4 -2
- package/cjs/http/index.js.map +1 -1
- package/cjs/http/request.js +11 -5
- package/cjs/http/request.js.map +1 -1
- package/cjs/idx/authenticate.js +8 -5
- package/cjs/idx/authenticate.js.map +1 -1
- package/cjs/idx/authenticator/Authenticator.js.map +1 -1
- package/cjs/idx/authenticator/OktaPassword.js.map +1 -1
- package/cjs/idx/authenticator/SecurityQuestionEnrollment.js +1 -1
- package/cjs/idx/authenticator/SecurityQuestionEnrollment.js.map +1 -1
- package/cjs/idx/authenticator/SecurityQuestionVerification.js +2 -1
- package/cjs/idx/authenticator/SecurityQuestionVerification.js.map +1 -1
- package/cjs/idx/authenticator/VerificationCodeAuthenticator.js +2 -2
- package/cjs/idx/authenticator/VerificationCodeAuthenticator.js.map +1 -1
- package/cjs/idx/authenticator/WebauthnEnrollment.js +46 -0
- package/cjs/idx/authenticator/WebauthnEnrollment.js.map +1 -0
- package/cjs/idx/authenticator/WebauthnVerification.js +55 -0
- package/cjs/idx/authenticator/WebauthnVerification.js.map +1 -0
- package/cjs/idx/authenticator/getAuthenticator.js +17 -6
- package/cjs/idx/authenticator/getAuthenticator.js.map +1 -1
- package/cjs/idx/authenticator/index.js +34 -6
- package/cjs/idx/authenticator/index.js.map +1 -1
- package/cjs/idx/cancel.js.map +1 -1
- package/cjs/idx/emailVerify.js +73 -0
- package/cjs/idx/emailVerify.js.map +1 -0
- package/cjs/idx/flow/AccountUnlockFlow.js +30 -0
- package/cjs/idx/flow/AccountUnlockFlow.js.map +1 -0
- package/cjs/idx/flow/FlowSpecification.js +24 -4
- package/cjs/idx/flow/FlowSpecification.js.map +1 -1
- package/cjs/idx/flow/PasswordRecoveryFlow.js +4 -1
- package/cjs/idx/flow/PasswordRecoveryFlow.js.map +1 -1
- package/cjs/idx/flow/RegistrationFlow.js +2 -0
- package/cjs/idx/flow/RegistrationFlow.js.map +1 -1
- package/cjs/idx/flow/index.js +20 -5
- package/cjs/idx/flow/index.js.map +1 -1
- package/cjs/idx/handleInteractionCodeRedirect.js +6 -1
- package/cjs/idx/handleInteractionCodeRedirect.js.map +1 -1
- package/cjs/idx/headers.js +21 -5
- package/cjs/idx/headers.js.map +1 -1
- package/cjs/idx/idx-js/client.js +91 -0
- package/cjs/idx/idx-js/client.js.map +1 -0
- package/cjs/idx/idx-js/index.js +162 -0
- package/cjs/idx/idx-js/index.js.map +1 -0
- package/cjs/idx/idx-js/interact.js +83 -0
- package/cjs/idx/idx-js/interact.js.map +1 -0
- package/cjs/idx/idx-js/introspect.js +58 -0
- package/cjs/idx/idx-js/introspect.js.map +1 -0
- package/cjs/idx/idx-js/parsers.js +41 -0
- package/cjs/idx/idx-js/parsers.js.map +1 -0
- package/cjs/idx/idx-js/util.js +34 -0
- package/cjs/idx/idx-js/util.js.map +1 -0
- package/cjs/idx/idx-js/v1/actionParser.js +90 -0
- package/cjs/idx/idx-js/v1/actionParser.js.map +1 -0
- package/cjs/idx/idx-js/v1/generateIdxAction.js +117 -0
- package/cjs/idx/idx-js/v1/generateIdxAction.js.map +1 -0
- package/cjs/idx/idx-js/v1/idxResponseParser.js +137 -0
- package/cjs/idx/idx-js/v1/idxResponseParser.js.map +1 -0
- package/cjs/idx/idx-js/v1/makeIdxState.js +64 -0
- package/cjs/idx/idx-js/v1/makeIdxState.js.map +1 -0
- package/cjs/idx/idx-js/v1/parsers.js +24 -0
- package/cjs/idx/idx-js/v1/parsers.js.map +1 -0
- package/cjs/idx/idx-js/v1/remediationParser.js +32 -0
- package/cjs/idx/idx-js/v1/remediationParser.js.map +1 -0
- package/cjs/idx/index.js +121 -109
- package/cjs/idx/index.js.map +1 -1
- package/cjs/idx/interact.js +53 -36
- package/cjs/idx/interact.js.map +1 -1
- package/cjs/idx/introspect.js +17 -19
- package/cjs/idx/introspect.js.map +1 -1
- package/cjs/idx/poll.js +13 -3
- package/cjs/idx/poll.js.map +1 -1
- package/cjs/idx/proceed.js +4 -7
- package/cjs/idx/proceed.js.map +1 -1
- package/cjs/idx/recoverPassword.js +1 -1
- package/cjs/idx/recoverPassword.js.map +1 -1
- package/cjs/idx/register.js +11 -16
- package/cjs/idx/register.js.map +1 -1
- package/cjs/idx/remediate.js +74 -27
- package/cjs/idx/remediate.js.map +1 -1
- package/cjs/idx/remediators/AuthenticatorEnrollmentData.js +12 -4
- package/cjs/idx/remediators/AuthenticatorEnrollmentData.js.map +1 -1
- package/cjs/idx/remediators/AuthenticatorVerificationData.js +52 -9
- package/cjs/idx/remediators/AuthenticatorVerificationData.js.map +1 -1
- package/cjs/idx/remediators/Base/AuthenticatorData.js +31 -13
- package/cjs/idx/remediators/Base/AuthenticatorData.js.map +1 -1
- package/cjs/idx/remediators/Base/Remediator.js +67 -31
- package/cjs/idx/remediators/Base/Remediator.js.map +1 -1
- package/cjs/idx/remediators/Base/SelectAuthenticator.js +46 -30
- package/cjs/idx/remediators/Base/SelectAuthenticator.js.map +1 -1
- package/cjs/idx/remediators/Base/VerifyAuthenticator.js +16 -4
- package/cjs/idx/remediators/Base/VerifyAuthenticator.js.map +1 -1
- package/cjs/idx/remediators/ChallengeAuthenticator.js +2 -2
- package/cjs/idx/remediators/ChallengeAuthenticator.js.map +1 -1
- package/cjs/idx/remediators/ChallengePoll.js +2 -2
- package/cjs/idx/remediators/EnrollAuthenticator.js +2 -2
- package/cjs/idx/remediators/EnrollAuthenticator.js.map +1 -1
- package/cjs/idx/remediators/EnrollPoll.js +18 -9
- package/cjs/idx/remediators/EnrollPoll.js.map +1 -1
- package/cjs/idx/remediators/EnrollProfile.js +24 -9
- package/cjs/idx/remediators/EnrollProfile.js.map +1 -1
- package/cjs/idx/remediators/EnrollmentChannelData.js +96 -0
- package/cjs/idx/remediators/EnrollmentChannelData.js.map +1 -0
- package/cjs/idx/remediators/Identify.js +5 -3
- package/cjs/idx/remediators/Identify.js.map +1 -1
- package/cjs/idx/remediators/ReEnrollAuthenticator.js +6 -3
- package/cjs/idx/remediators/ReEnrollAuthenticator.js.map +1 -1
- package/cjs/idx/remediators/RedirectIdp.js +2 -2
- package/cjs/idx/remediators/ResetAuthenticator.js +2 -2
- package/cjs/idx/remediators/ResetAuthenticator.js.map +1 -1
- package/cjs/idx/remediators/SelectAuthenticatorAuthenticate.js +7 -5
- package/cjs/idx/remediators/SelectAuthenticatorAuthenticate.js.map +1 -1
- package/cjs/idx/remediators/SelectAuthenticatorEnroll.js +2 -2
- package/cjs/idx/remediators/SelectAuthenticatorEnroll.js.map +1 -1
- package/cjs/idx/remediators/SelectAuthenticatorUnlockAccount.js +72 -0
- package/cjs/idx/remediators/SelectAuthenticatorUnlockAccount.js.map +1 -0
- package/cjs/idx/remediators/SelectEnrollProfile.js +2 -2
- package/cjs/idx/remediators/SelectEnrollProfile.js.map +1 -1
- package/cjs/idx/remediators/SelectEnrollmentChannel.js +86 -0
- package/cjs/idx/remediators/SelectEnrollmentChannel.js.map +1 -0
- package/cjs/idx/remediators/Skip.js +5 -3
- package/cjs/idx/remediators/Skip.js.map +1 -1
- package/cjs/idx/remediators/index.js +57 -16
- package/cjs/idx/remediators/index.js.map +1 -1
- package/cjs/idx/remediators/util.js +18 -3
- package/cjs/idx/remediators/util.js.map +1 -1
- package/cjs/idx/run.js +145 -49
- package/cjs/idx/run.js.map +1 -1
- package/cjs/idx/startTransaction.js +4 -2
- package/cjs/idx/startTransaction.js.map +1 -1
- package/cjs/idx/transactionMeta.js +82 -69
- package/cjs/idx/transactionMeta.js.map +1 -1
- package/cjs/idx/types/idx-js.js.map +1 -1
- package/cjs/idx/types/index.js +59 -7
- package/cjs/idx/types/index.js.map +1 -1
- package/cjs/idx/unlockAccount.js +48 -0
- package/cjs/idx/unlockAccount.js.map +1 -0
- package/cjs/index.js +33 -13
- package/cjs/index.js.map +1 -1
- package/cjs/oidc/endpoints/authorize.js +10 -2
- package/cjs/oidc/endpoints/authorize.js.map +1 -1
- package/cjs/oidc/endpoints/index.js +5 -3
- package/cjs/oidc/endpoints/index.js.map +1 -1
- package/cjs/oidc/endpoints/token.js +16 -3
- package/cjs/oidc/endpoints/token.js.map +1 -1
- package/cjs/oidc/endpoints/well-known.js +7 -3
- package/cjs/oidc/endpoints/well-known.js.map +1 -1
- package/cjs/oidc/exchangeCodeForTokens.js +12 -4
- package/cjs/oidc/exchangeCodeForTokens.js.map +1 -1
- package/cjs/oidc/getToken.js +12 -6
- package/cjs/oidc/getToken.js.map +1 -1
- package/cjs/oidc/getUserInfo.js +7 -3
- package/cjs/oidc/getUserInfo.js.map +1 -1
- package/cjs/oidc/getWithPopup.js +8 -2
- package/cjs/oidc/getWithPopup.js.map +1 -1
- package/cjs/oidc/getWithRedirect.js +15 -38
- package/cjs/oidc/getWithRedirect.js.map +1 -1
- package/cjs/oidc/getWithoutPrompt.js +8 -2
- package/cjs/oidc/getWithoutPrompt.js.map +1 -1
- package/cjs/oidc/handleOAuthResponse.js +87 -87
- package/cjs/oidc/handleOAuthResponse.js.map +1 -1
- package/cjs/oidc/index.js +4 -2
- package/cjs/oidc/index.js.map +1 -1
- package/cjs/oidc/parseFromUrl.js +9 -3
- package/cjs/oidc/parseFromUrl.js.map +1 -1
- package/cjs/oidc/renewToken.js.map +1 -1
- package/cjs/oidc/renewTokens.js +6 -2
- package/cjs/oidc/renewTokens.js.map +1 -1
- package/cjs/oidc/renewTokensWithRefresh.js +5 -1
- package/cjs/oidc/renewTokensWithRefresh.js.map +1 -1
- package/cjs/oidc/revokeToken.js +34 -31
- package/cjs/oidc/revokeToken.js.map +1 -1
- package/cjs/oidc/util/browser.js +5 -1
- package/cjs/oidc/util/browser.js.map +1 -1
- package/cjs/oidc/util/defaultTokenParams.js.map +1 -1
- package/cjs/oidc/util/errors.js.map +1 -1
- package/cjs/oidc/util/index.js +27 -11
- package/cjs/oidc/util/index.js.map +1 -1
- package/cjs/oidc/util/loginRedirect.js +10 -1
- package/cjs/oidc/util/loginRedirect.js.map +1 -1
- package/cjs/oidc/util/oauth.js +4 -2
- package/cjs/oidc/util/oauth.js.map +1 -1
- package/cjs/oidc/util/oauthMeta.js +36 -0
- package/cjs/oidc/util/oauthMeta.js.map +1 -0
- package/cjs/oidc/util/pkce.js +11 -3
- package/cjs/oidc/util/pkce.js.map +1 -1
- package/cjs/oidc/util/prepareTokenParams.js +62 -39
- package/cjs/oidc/util/prepareTokenParams.js.map +1 -1
- package/cjs/oidc/util/validateClaims.js +3 -1
- package/cjs/oidc/util/validateClaims.js.map +1 -1
- package/cjs/oidc/verifyToken.js +13 -4
- package/cjs/oidc/verifyToken.js.map +1 -1
- package/cjs/options/browser.js +81 -0
- package/cjs/options/browser.js.map +1 -0
- package/cjs/options/index.js +94 -0
- package/cjs/options/index.js.map +1 -0
- package/cjs/options/node.js +46 -0
- package/cjs/options/node.js.map +1 -0
- package/cjs/server/serverStorage.js +9 -5
- package/cjs/server/serverStorage.js.map +1 -1
- package/cjs/services/AutoRenewService.js +94 -0
- package/cjs/services/AutoRenewService.js.map +1 -0
- package/cjs/services/SyncStorageService.js +93 -0
- package/cjs/services/SyncStorageService.js.map +1 -0
- package/cjs/services/index.js +30 -0
- package/cjs/services/index.js.map +1 -0
- package/cjs/tx/AuthTransaction.js +18 -9
- package/cjs/tx/AuthTransaction.js.map +1 -1
- package/cjs/tx/TransactionState.js +0 -17
- package/cjs/tx/TransactionState.js.map +1 -1
- package/cjs/tx/api.js +11 -6
- package/cjs/tx/api.js.map +1 -1
- package/cjs/tx/index.js +7 -5
- package/cjs/tx/index.js.map +1 -1
- package/cjs/tx/poll.js +6 -4
- package/cjs/tx/poll.js.map +1 -1
- package/cjs/tx/util.js +5 -1
- package/cjs/tx/util.js.map +1 -1
- package/cjs/types/Service.js +2 -0
- package/cjs/types/Service.js.map +1 -0
- package/cjs/types/Transaction.js +10 -2
- package/cjs/types/Transaction.js.map +1 -1
- package/cjs/types/index.js +29 -14
- package/cjs/types/index.js.map +1 -1
- package/cjs/util/index.js +7 -18
- package/cjs/util/index.js.map +1 -1
- package/cjs/util/misc.js +5 -1
- package/cjs/util/misc.js.map +1 -1
- package/cjs/util/object.js +16 -6
- package/cjs/util/object.js.map +1 -1
- package/cjs/util/sharedStorage.js +5 -1
- package/cjs/util/sharedStorage.js.map +1 -1
- package/cjs/util/url.js.map +1 -1
- package/dist/okta-auth-js.min.js +1 -1
- package/dist/okta-auth-js.min.js.LICENSE.txt +0 -20
- package/dist/okta-auth-js.min.js.map +1 -1
- package/dist/okta-auth-js.polyfill.js +1 -1
- package/dist/okta-auth-js.polyfill.js.map +1 -1
- package/dist/okta-auth-js.umd.js +1 -1
- package/dist/okta-auth-js.umd.js.LICENSE.txt +1 -19
- package/dist/okta-auth-js.umd.js.map +1 -1
- package/esm/{index.js → esm.browser.js} +3283 -2698
- package/esm/esm.browser.js.map +1 -0
- package/esm/esm.node.mjs +9277 -0
- package/esm/esm.node.mjs.map +1 -0
- package/lib/AuthStateManager.d.ts +2 -5
- package/lib/OktaAuth.d.ts +14 -16
- package/lib/ServiceManager.d.ts +38 -0
- package/lib/StorageManager.d.ts +2 -2
- package/lib/TokenManager.d.ts +4 -5
- package/lib/TransactionManager.d.ts +4 -3
- package/lib/browser/fingerprint.d.ts +2 -3
- package/lib/builderUtil.d.ts +1 -2
- package/lib/crypto/base64.d.ts +2 -0
- package/lib/crypto/browser.d.ts +1 -1
- package/lib/crypto/webauthn.d.ts +25 -0
- package/lib/features.d.ts +1 -1
- package/lib/http/headers.d.ts +2 -2
- package/lib/http/request.d.ts +4 -4
- package/lib/idx/authenticate.d.ts +2 -2
- package/lib/idx/authenticator/Authenticator.d.ts +4 -5
- package/lib/idx/authenticator/OktaPassword.d.ts +7 -9
- package/lib/idx/authenticator/SecurityQuestionEnrollment.d.ts +9 -8
- package/lib/idx/authenticator/SecurityQuestionVerification.d.ts +7 -7
- package/lib/idx/authenticator/VerificationCodeAuthenticator.d.ts +6 -2
- package/lib/idx/authenticator/WebauthnEnrollment.d.ts +16 -0
- package/lib/idx/authenticator/WebauthnVerification.d.ts +17 -0
- package/lib/idx/authenticator/getAuthenticator.d.ts +1 -1
- package/lib/idx/authenticator/index.d.ts +9 -0
- package/lib/idx/cancel.d.ts +2 -2
- package/lib/idx/emailVerify.d.ts +26 -0
- package/lib/{util/emailVerify.d.ts → idx/flow/AccountUnlockFlow.d.ts} +2 -6
- package/lib/idx/flow/FlowSpecification.d.ts +3 -2
- package/lib/idx/flow/index.d.ts +1 -0
- package/lib/idx/headers.d.ts +3 -2
- package/lib/idx/idx-js/client.d.ts +36 -0
- package/lib/idx/idx-js/index.d.ts +51 -0
- package/lib/idx/idx-js/interact.d.ts +25 -0
- package/lib/idx/idx-js/introspect.d.ts +20 -0
- package/lib/idx/idx-js/parsers.d.ts +15 -0
- package/lib/idx/idx-js/util.d.ts +12 -0
- package/lib/idx/idx-js/v1/actionParser.d.ts +16 -0
- package/lib/idx/idx-js/v1/generateIdxAction.d.ts +13 -0
- package/lib/idx/idx-js/v1/idxResponseParser.d.ts +20 -0
- package/lib/idx/idx-js/v1/makeIdxState.d.ts +13 -0
- package/lib/idx/idx-js/v1/parsers.d.ts +16 -0
- package/lib/idx/idx-js/v1/remediationParser.d.ts +12 -0
- package/lib/idx/index.d.ts +12 -10
- package/lib/idx/interact.d.ts +7 -13
- package/lib/idx/introspect.d.ts +4 -3
- package/lib/idx/poll.d.ts +2 -2
- package/lib/idx/proceed.d.ts +8 -5
- package/lib/idx/recoverPassword.d.ts +2 -2
- package/lib/idx/register.d.ts +2 -2
- package/lib/idx/remediate.d.ts +10 -4
- package/lib/idx/remediators/AuthenticatorEnrollmentData.d.ts +3 -3
- package/lib/idx/remediators/AuthenticatorVerificationData.d.ts +5 -5
- package/lib/idx/remediators/Base/AuthenticatorData.d.ts +10 -10
- package/lib/idx/remediators/Base/SelectAuthenticator.d.ts +10 -7
- package/lib/idx/remediators/Base/VerifyAuthenticator.d.ts +8 -12
- package/lib/idx/remediators/EnrollProfile.d.ts +1 -1
- package/lib/idx/remediators/EnrollmentChannelData.d.ts +54 -0
- package/lib/idx/remediators/Identify.d.ts +2 -2
- package/lib/idx/remediators/ReEnrollAuthenticator.d.ts +2 -2
- package/lib/idx/remediators/RedirectIdp.d.ts +3 -3
- package/lib/idx/remediators/SelectAuthenticatorUnlockAccount.d.ts +38 -0
- package/lib/idx/remediators/SelectEnrollmentChannel.d.ts +40 -0
- package/lib/idx/remediators/index.d.ts +3 -0
- package/lib/idx/remediators/util.d.ts +2 -2
- package/lib/idx/run.d.ts +5 -3
- package/lib/idx/startTransaction.d.ts +3 -2
- package/lib/idx/transactionMeta.d.ts +10 -31
- package/lib/idx/types/FlowIdentifier.d.ts +1 -1
- package/lib/idx/types/idx-js.d.ts +44 -1
- package/lib/idx/types/index.d.ts +36 -9
- package/lib/idx/unlockAccount.d.ts +15 -0
- package/lib/index.d.ts +1 -0
- package/lib/oidc/endpoints/well-known.d.ts +3 -3
- package/lib/oidc/exchangeCodeForTokens.d.ts +14 -2
- package/lib/oidc/getToken.d.ts +2 -2
- package/lib/oidc/getWithPopup.d.ts +2 -2
- package/lib/oidc/getWithRedirect.d.ts +2 -2
- package/lib/oidc/getWithoutPrompt.d.ts +2 -2
- package/lib/oidc/handleOAuthResponse.d.ts +2 -2
- package/lib/oidc/parseFromUrl.d.ts +1 -1
- package/lib/oidc/renewToken.d.ts +2 -2
- package/lib/oidc/renewTokens.d.ts +1 -1
- package/lib/oidc/renewTokensWithRefresh.d.ts +2 -2
- package/lib/oidc/revokeToken.d.ts +2 -2
- package/lib/oidc/util/browser.d.ts +3 -3
- package/lib/oidc/util/defaultTokenParams.d.ts +2 -2
- package/lib/oidc/util/errors.d.ts +2 -2
- package/lib/oidc/util/index.d.ts +1 -0
- package/lib/oidc/util/loginRedirect.d.ts +4 -4
- package/lib/oidc/util/oauth.d.ts +4 -11
- package/lib/oidc/util/oauthMeta.d.ts +2 -0
- package/lib/oidc/util/prepareTokenParams.d.ts +5 -2
- package/lib/oidc/util/validateClaims.d.ts +2 -2
- package/lib/oidc/verifyToken.d.ts +2 -2
- package/lib/options/browser.d.ts +16 -0
- package/lib/{options.d.ts → options/index.d.ts} +1 -1
- package/lib/options/node.d.ts +16 -0
- package/lib/server/serverStorage.d.ts +1 -1
- package/lib/services/AutoRenewService.d.ts +27 -0
- package/lib/services/{TokenService.d.ts → SyncStorageService.d.ts} +8 -5
- package/lib/services/index.d.ts +13 -0
- package/lib/tx/AuthTransaction.d.ts +2 -2
- package/lib/tx/TransactionState.d.ts +11 -1
- package/lib/tx/api.d.ts +6 -6
- package/lib/types/OktaAuthOptions.d.ts +11 -8
- package/lib/types/Service.d.ts +23 -0
- package/lib/types/Storage.d.ts +3 -3
- package/lib/types/Transaction.d.ts +10 -7
- package/lib/types/UserClaims.d.ts +3 -3
- package/lib/types/api.d.ts +49 -22
- package/lib/types/index.d.ts +1 -1
- package/lib/util/console.d.ts +1 -1
- package/lib/util/index.d.ts +0 -1
- package/lib/util/sharedStorage.d.ts +1 -1
- package/lib/util/types.d.ts +1 -1
- package/lib/util/url.d.ts +2 -2
- package/package.json +30 -13
- package/polyfill/index.js +1 -0
- package/cjs/options.js +0 -154
- package/cjs/options.js.map +0 -1
- package/cjs/services/TokenService.js +0 -108
- package/cjs/services/TokenService.js.map +0 -1
- package/cjs/util/emailVerify.js +0 -28
- package/cjs/util/emailVerify.js.map +0 -1
- package/esm/index.js.map +0 -1
|
@@ -0,0 +1,51 @@
|
|
|
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
|
+
declare const _default: {
|
|
13
|
+
start: ({ withCredentials, clientId, domain, issuer, stateHandle, interactionHandle, version, redirectUri, state, scopes, codeChallenge, codeChallengeMethod, activationToken, recoveryToken }: {
|
|
14
|
+
withCredentials: any;
|
|
15
|
+
clientId: any;
|
|
16
|
+
domain: any;
|
|
17
|
+
issuer: any;
|
|
18
|
+
stateHandle: any;
|
|
19
|
+
interactionHandle: any;
|
|
20
|
+
version: any;
|
|
21
|
+
redirectUri: any;
|
|
22
|
+
state: any;
|
|
23
|
+
scopes: any;
|
|
24
|
+
codeChallenge: any;
|
|
25
|
+
codeChallengeMethod: any;
|
|
26
|
+
activationToken: any;
|
|
27
|
+
recoveryToken: any;
|
|
28
|
+
}) => Promise<import("../types/idx-js").IdxResponse>;
|
|
29
|
+
introspect: ({ withCredentials, domain, interactionHandle, stateHandle, version, }: import("./introspect").IntrospectOptions) => Promise<any>;
|
|
30
|
+
interact: ({ withCredentials, clientId, baseUrl, scopes, redirectUri, codeChallenge, codeChallengeMethod, state, activationToken, recoveryToken, clientSecret, }: {
|
|
31
|
+
withCredentials: any;
|
|
32
|
+
clientId: any;
|
|
33
|
+
baseUrl: any;
|
|
34
|
+
scopes?: string[] | undefined;
|
|
35
|
+
redirectUri: any;
|
|
36
|
+
codeChallenge: any;
|
|
37
|
+
codeChallengeMethod: any;
|
|
38
|
+
state: any;
|
|
39
|
+
activationToken: any;
|
|
40
|
+
recoveryToken: any;
|
|
41
|
+
clientSecret: any;
|
|
42
|
+
}) => Promise<any>;
|
|
43
|
+
makeIdxState: typeof import("./v1/makeIdxState").makeIdxState;
|
|
44
|
+
client: {
|
|
45
|
+
interceptors: {
|
|
46
|
+
request: import("./client").Interceptor;
|
|
47
|
+
};
|
|
48
|
+
};
|
|
49
|
+
LATEST_SUPPORTED_IDX_API_VERSION: string;
|
|
50
|
+
};
|
|
51
|
+
export default _default;
|
|
@@ -0,0 +1,25 @@
|
|
|
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
|
+
declare const interact: ({ withCredentials, clientId, baseUrl, scopes, redirectUri, codeChallenge, codeChallengeMethod, state, activationToken, recoveryToken, clientSecret, }: {
|
|
13
|
+
withCredentials: any;
|
|
14
|
+
clientId: any;
|
|
15
|
+
baseUrl: any;
|
|
16
|
+
scopes?: string[] | undefined;
|
|
17
|
+
redirectUri: any;
|
|
18
|
+
codeChallenge: any;
|
|
19
|
+
codeChallengeMethod: any;
|
|
20
|
+
state: any;
|
|
21
|
+
activationToken: any;
|
|
22
|
+
recoveryToken: any;
|
|
23
|
+
clientSecret: any;
|
|
24
|
+
}) => Promise<any>;
|
|
25
|
+
export default interact;
|
|
@@ -0,0 +1,20 @@
|
|
|
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
|
+
export interface IntrospectOptions {
|
|
13
|
+
domain: string;
|
|
14
|
+
withCredentials?: boolean;
|
|
15
|
+
interactionHandle?: string;
|
|
16
|
+
stateHandle?: string;
|
|
17
|
+
version?: string;
|
|
18
|
+
}
|
|
19
|
+
declare const introspect: ({ withCredentials, domain, interactionHandle, stateHandle, version, }: IntrospectOptions) => Promise<any>;
|
|
20
|
+
export default introspect;
|
|
@@ -0,0 +1,15 @@
|
|
|
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
|
+
declare const parsersForVersion: (version: any) => {
|
|
13
|
+
makeIdxState: typeof import("./v1/makeIdxState").makeIdxState;
|
|
14
|
+
};
|
|
15
|
+
export default parsersForVersion;
|
|
@@ -0,0 +1,12 @@
|
|
|
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
|
+
export declare function validateVersionConfig(version: any): void;
|
|
@@ -0,0 +1,16 @@
|
|
|
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
|
+
export declare const divideActionParamsByMutability: (actionList: any) => {
|
|
13
|
+
defaultParams: {};
|
|
14
|
+
neededParams: never[];
|
|
15
|
+
immutableParams: {};
|
|
16
|
+
};
|
|
@@ -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
|
+
declare const generateIdxAction: (actionDefinition: any, toPersist: any) => (params: any) => Promise<import("../../types/idx-js").IdxResponse>;
|
|
13
|
+
export default generateIdxAction;
|
|
@@ -0,0 +1,20 @@
|
|
|
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
|
+
export declare const parseNonRemediations: (idxResponse: any, toPersist?: {}) => {
|
|
13
|
+
context: {};
|
|
14
|
+
actions: {};
|
|
15
|
+
};
|
|
16
|
+
export declare const parseIdxResponse: (idxResponse: any, toPersist?: {}) => {
|
|
17
|
+
remediations: IdxRemediation[];
|
|
18
|
+
context: any;
|
|
19
|
+
actions: any;
|
|
20
|
+
};
|
|
@@ -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 { IdxResponse } from '../../types/idx-js';
|
|
13
|
+
export declare function makeIdxState(idxResponse: any, toPersist: any): IdxResponse;
|
|
@@ -0,0 +1,16 @@
|
|
|
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 { makeIdxState } from './makeIdxState';
|
|
13
|
+
declare const _default: {
|
|
14
|
+
makeIdxState: typeof makeIdxState;
|
|
15
|
+
};
|
|
16
|
+
export default _default;
|
|
@@ -0,0 +1,12 @@
|
|
|
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
|
+
export declare const generateRemediationFunctions: (remediationValue: any, toPersist?: {}) => any;
|
package/lib/idx/index.d.ts
CHANGED
|
@@ -9,14 +9,16 @@
|
|
|
9
9
|
*
|
|
10
10
|
* See the License for the specific language governing permissions and limitations under the License.
|
|
11
11
|
*/
|
|
12
|
-
export
|
|
13
|
-
export
|
|
14
|
-
export
|
|
15
|
-
export
|
|
16
|
-
export
|
|
17
|
-
export
|
|
18
|
-
export
|
|
19
|
-
export
|
|
20
|
-
export
|
|
21
|
-
export
|
|
12
|
+
export { authenticate } from './authenticate';
|
|
13
|
+
export { cancel } from './cancel';
|
|
14
|
+
export { handleEmailVerifyCallback, isEmailVerifyCallback, parseEmailVerifyCallback, isEmailVerifyCallbackError, } from './emailVerify';
|
|
15
|
+
export { interact } from './interact';
|
|
16
|
+
export { introspect } from './introspect';
|
|
17
|
+
export { poll } from './poll';
|
|
18
|
+
export { proceed, canProceed } from './proceed';
|
|
19
|
+
export { register } from './register';
|
|
20
|
+
export { recoverPassword } from './recoverPassword';
|
|
21
|
+
export { handleInteractionCodeRedirect } from './handleInteractionCodeRedirect';
|
|
22
|
+
export { startTransaction } from './startTransaction';
|
|
23
|
+
export { unlockAccount } from './unlockAccount';
|
|
22
24
|
export * from './transactionMeta';
|
package/lib/idx/interact.d.ts
CHANGED
|
@@ -1,23 +1,17 @@
|
|
|
1
|
-
|
|
2
|
-
* Copyright (c) 2021, 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, IdxTransactionMeta } from '../types';
|
|
1
|
+
import { OktaAuthInterface, IdxTransactionMeta } from '../types';
|
|
13
2
|
export interface InteractOptions {
|
|
3
|
+
withCredentials?: boolean;
|
|
14
4
|
state?: string;
|
|
15
5
|
scopes?: string[];
|
|
6
|
+
codeChallenge?: string;
|
|
7
|
+
codeChallengeMethod?: string;
|
|
16
8
|
activationToken?: string;
|
|
9
|
+
recoveryToken?: string;
|
|
10
|
+
clientSecret?: string;
|
|
17
11
|
}
|
|
18
12
|
export interface InteractResponse {
|
|
19
13
|
state?: string;
|
|
20
14
|
interactionHandle: string;
|
|
21
15
|
meta: IdxTransactionMeta;
|
|
22
16
|
}
|
|
23
|
-
export declare function interact(authClient:
|
|
17
|
+
export declare function interact(authClient: OktaAuthInterface, options?: InteractOptions): Promise<InteractResponse>;
|
package/lib/idx/introspect.d.ts
CHANGED
|
@@ -9,11 +9,12 @@
|
|
|
9
9
|
*
|
|
10
10
|
* See the License for the specific language governing permissions and limitations under the License.
|
|
11
11
|
*/
|
|
12
|
-
import {
|
|
12
|
+
import { OktaAuthInterface } from '../types';
|
|
13
13
|
import { IdxResponse } from './types/idx-js';
|
|
14
14
|
export interface IntrospectOptions {
|
|
15
|
+
withCredentials?: boolean;
|
|
15
16
|
interactionHandle?: string;
|
|
16
17
|
stateHandle?: string;
|
|
17
|
-
|
|
18
|
+
version?: string;
|
|
18
19
|
}
|
|
19
|
-
export declare function introspect(authClient:
|
|
20
|
+
export declare function introspect(authClient: OktaAuthInterface, options?: IntrospectOptions): Promise<IdxResponse>;
|
package/lib/idx/poll.d.ts
CHANGED
|
@@ -9,5 +9,5 @@
|
|
|
9
9
|
*
|
|
10
10
|
* See the License for the specific language governing permissions and limitations under the License.
|
|
11
11
|
*/
|
|
12
|
-
import { IdxPollOptions, IdxTransaction,
|
|
13
|
-
export declare function poll(authClient:
|
|
12
|
+
import { IdxPollOptions, IdxTransaction, OktaAuthInterface } from '../types';
|
|
13
|
+
export declare function poll(authClient: OktaAuthInterface, options?: IdxPollOptions): Promise<IdxTransaction>;
|
package/lib/idx/proceed.d.ts
CHANGED
|
@@ -9,13 +9,16 @@
|
|
|
9
9
|
*
|
|
10
10
|
* See the License for the specific language governing permissions and limitations under the License.
|
|
11
11
|
*/
|
|
12
|
-
import {
|
|
12
|
+
import { OktaAuthInterface, IdxTransaction } from '../types';
|
|
13
13
|
import { AuthenticationOptions } from './authenticate';
|
|
14
|
-
import { EnrollPollValues as EnrollPollOptions } from './remediators';
|
|
14
|
+
import { EnrollPollValues as EnrollPollOptions, SelectEnrollmentChannelValues as SelectEnrollmentChannelOptions } from './remediators';
|
|
15
15
|
import { RegistrationOptions } from './register';
|
|
16
16
|
import { PasswordRecoveryOptions } from './recoverPassword';
|
|
17
|
-
|
|
18
|
-
export declare
|
|
17
|
+
import { AccountUnlockOptions } from './unlockAccount';
|
|
18
|
+
export declare type ProceedOptions = AuthenticationOptions & RegistrationOptions & PasswordRecoveryOptions & AccountUnlockOptions & EnrollPollOptions & SelectEnrollmentChannelOptions & {
|
|
19
|
+
step?: string;
|
|
20
|
+
};
|
|
21
|
+
export declare function canProceed(authClient: OktaAuthInterface, options?: {
|
|
19
22
|
state?: string;
|
|
20
23
|
}): boolean;
|
|
21
|
-
export declare function proceed(authClient:
|
|
24
|
+
export declare function proceed(authClient: OktaAuthInterface, options?: ProceedOptions): Promise<IdxTransaction>;
|
|
@@ -10,6 +10,6 @@
|
|
|
10
10
|
* See the License for the specific language governing permissions and limitations under the License.
|
|
11
11
|
*/
|
|
12
12
|
import { IdentifyValues, SelectAuthenticatorAuthenticateValues, ChallengeAuthenticatorValues, AuthenticatorVerificationDataValues, ResetAuthenticatorValues, ReEnrollAuthenticatorValues } from './remediators';
|
|
13
|
-
import {
|
|
13
|
+
import { OktaAuthInterface, IdxOptions, IdxTransaction } from '../types';
|
|
14
14
|
export declare type PasswordRecoveryOptions = IdxOptions & IdentifyValues & SelectAuthenticatorAuthenticateValues & ChallengeAuthenticatorValues & ResetAuthenticatorValues & AuthenticatorVerificationDataValues & ReEnrollAuthenticatorValues;
|
|
15
|
-
export declare function recoverPassword(authClient:
|
|
15
|
+
export declare function recoverPassword(authClient: OktaAuthInterface, options?: PasswordRecoveryOptions): Promise<IdxTransaction>;
|
package/lib/idx/register.d.ts
CHANGED
|
@@ -10,6 +10,6 @@
|
|
|
10
10
|
* See the License for the specific language governing permissions and limitations under the License.
|
|
11
11
|
*/
|
|
12
12
|
import { EnrollProfileValues, SelectAuthenticatorEnrollValues, EnrollAuthenticatorValues, AuthenticatorEnrollmentDataValues, SkipValues } from './remediators';
|
|
13
|
-
import { IdxOptions, IdxTransaction,
|
|
13
|
+
import { IdxOptions, IdxTransaction, OktaAuthInterface } from '../types';
|
|
14
14
|
export declare type RegistrationOptions = IdxOptions & EnrollProfileValues & SelectAuthenticatorEnrollValues & EnrollAuthenticatorValues & AuthenticatorEnrollmentDataValues & SkipValues;
|
|
15
|
-
export declare function register(authClient:
|
|
15
|
+
export declare function register(authClient: OktaAuthInterface, options?: RegistrationOptions): Promise<IdxTransaction>;
|
package/lib/idx/remediate.d.ts
CHANGED
|
@@ -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 './remediators';
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
13
|
+
import { NextStep, IdxMessage, FlowIdentifier } from './types';
|
|
14
|
+
import { RemediationFlow } from './flow';
|
|
15
15
|
import { IdxResponse, IdxRemediation } from './types/idx-js';
|
|
16
16
|
interface RemediationResponse {
|
|
17
17
|
idxResponse?: IdxResponse;
|
|
@@ -20,6 +20,12 @@ interface RemediationResponse {
|
|
|
20
20
|
terminal?: boolean;
|
|
21
21
|
canceled?: boolean;
|
|
22
22
|
}
|
|
23
|
-
export
|
|
24
|
-
|
|
23
|
+
export interface RemediateOptions {
|
|
24
|
+
remediators?: RemediationFlow;
|
|
25
|
+
actions?: string[];
|
|
26
|
+
flow?: FlowIdentifier;
|
|
27
|
+
step?: string;
|
|
28
|
+
}
|
|
29
|
+
export declare function getRemediator(idxRemediations: IdxRemediation[], values: RemediationValues, options: RemediateOptions): Remediator;
|
|
30
|
+
export declare function remediate(idxResponse: IdxResponse, values: RemediationValues, options: RemediateOptions): Promise<RemediationResponse>;
|
|
25
31
|
export {};
|
|
@@ -18,9 +18,9 @@ export declare class AuthenticatorEnrollmentData extends AuthenticatorData {
|
|
|
18
18
|
static remediationName: string;
|
|
19
19
|
values: AuthenticatorEnrollmentDataValues;
|
|
20
20
|
mapAuthenticator(): {
|
|
21
|
-
id: string;
|
|
22
|
-
methodType: string;
|
|
23
|
-
phoneNumber: string;
|
|
21
|
+
id: string | import("../types/idx-js").IdxRemediationValueForm | undefined;
|
|
22
|
+
methodType: string | undefined;
|
|
23
|
+
phoneNumber: string | undefined;
|
|
24
24
|
};
|
|
25
25
|
getInputAuthenticator(): ({
|
|
26
26
|
name: string;
|
|
@@ -10,15 +10,15 @@
|
|
|
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 { IdxRemediation } from '../types/idx-js';
|
|
13
14
|
export declare type AuthenticatorVerificationDataValues = AuthenticatorDataValues;
|
|
14
15
|
export declare class AuthenticatorVerificationData extends AuthenticatorData {
|
|
15
16
|
static remediationName: string;
|
|
16
17
|
values: AuthenticatorVerificationDataValues;
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
};
|
|
18
|
+
shouldProceedWithEmailAuthenticator: boolean;
|
|
19
|
+
constructor(remediation: IdxRemediation, values?: AuthenticatorDataValues);
|
|
20
|
+
canRemediate(): boolean;
|
|
21
|
+
mapAuthenticator(): {} | undefined;
|
|
22
22
|
getInputAuthenticator(): import("../types/idx-js").IdxRemediationValue[] | {
|
|
23
23
|
name: string;
|
|
24
24
|
type: string;
|
|
@@ -10,29 +10,29 @@
|
|
|
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 { IdxRemediationValue, IdxOption, IdxRemediation } from '../../types/idx-js';
|
|
14
|
-
import { Authenticator } from '../../types';
|
|
13
|
+
import { IdxRemediationValue, IdxOption, IdxRemediation, IdxAuthenticator } from '../../types/idx-js';
|
|
15
14
|
export declare type AuthenticatorDataValues = RemediationValues & {
|
|
16
15
|
methodType?: string;
|
|
17
16
|
};
|
|
18
17
|
export declare class AuthenticatorData extends Remediator {
|
|
19
18
|
map: {
|
|
20
|
-
authenticator:
|
|
19
|
+
authenticator: never[];
|
|
21
20
|
};
|
|
22
21
|
values: AuthenticatorDataValues;
|
|
23
|
-
authenticator:
|
|
22
|
+
authenticator: IdxAuthenticator;
|
|
24
23
|
constructor(remediation: IdxRemediation, values?: AuthenticatorDataValues);
|
|
25
24
|
protected formatAuthenticatorData(): void;
|
|
26
|
-
protected getAuthenticatorData(): Authenticator;
|
|
25
|
+
protected getAuthenticatorData(): import("../../types").Authenticator | undefined;
|
|
27
26
|
canRemediate(): boolean;
|
|
28
27
|
getNextStep(): {
|
|
29
28
|
options: IdxOption[];
|
|
30
29
|
name: string;
|
|
31
|
-
authenticator?:
|
|
32
|
-
canSkip?: boolean;
|
|
33
|
-
canResend?: boolean;
|
|
34
|
-
inputs?: import("../../types").Input[];
|
|
35
|
-
poll?: import("../../types").IdxPollOptions;
|
|
30
|
+
authenticator?: IdxAuthenticator | undefined;
|
|
31
|
+
canSkip?: boolean | undefined;
|
|
32
|
+
canResend?: boolean | undefined;
|
|
33
|
+
inputs?: import("../../types").Input[] | undefined;
|
|
34
|
+
poll?: import("../../types").IdxPollOptions | undefined;
|
|
35
|
+
authenticatorEnrollments?: IdxAuthenticator[] | undefined;
|
|
36
36
|
};
|
|
37
37
|
protected mapAuthenticatorDataFromValues(authenticatorData?: any): any;
|
|
38
38
|
protected getAuthenticatorFromRemediation(): IdxRemediationValue;
|
|
@@ -16,10 +16,12 @@ export declare type SelectAuthenticatorValues = RemediationValues & {
|
|
|
16
16
|
};
|
|
17
17
|
export declare class SelectAuthenticator extends Remediator {
|
|
18
18
|
values: SelectAuthenticatorValues;
|
|
19
|
-
selectedAuthenticator
|
|
19
|
+
selectedAuthenticator?: IdxAuthenticator;
|
|
20
|
+
selectedOption?: any;
|
|
20
21
|
map: {
|
|
21
|
-
authenticator:
|
|
22
|
+
authenticator: never[];
|
|
22
23
|
};
|
|
24
|
+
findMatchedOption(authenticators: any, options: any): any;
|
|
23
25
|
canRemediate(): boolean;
|
|
24
26
|
getNextStep(): {
|
|
25
27
|
options: {
|
|
@@ -27,11 +29,12 @@ export declare class SelectAuthenticator extends Remediator {
|
|
|
27
29
|
value: string;
|
|
28
30
|
}[];
|
|
29
31
|
name: string;
|
|
30
|
-
authenticator?: IdxAuthenticator;
|
|
31
|
-
canSkip?: boolean;
|
|
32
|
-
canResend?: boolean;
|
|
33
|
-
inputs?: import("../../types").Input[];
|
|
34
|
-
poll?: import("../../types").IdxPollOptions;
|
|
32
|
+
authenticator?: IdxAuthenticator | undefined;
|
|
33
|
+
canSkip?: boolean | undefined;
|
|
34
|
+
canResend?: boolean | undefined;
|
|
35
|
+
inputs?: import("../../types").Input[] | undefined;
|
|
36
|
+
poll?: import("../../types").IdxPollOptions | undefined;
|
|
37
|
+
authenticatorEnrollments?: IdxAuthenticator[] | undefined;
|
|
35
38
|
};
|
|
36
39
|
mapAuthenticator(remediationValue: IdxRemediationValue): {
|
|
37
40
|
id: any;
|
|
@@ -10,22 +10,18 @@
|
|
|
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';
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
password?: string;
|
|
18
|
-
questionKey?: string;
|
|
19
|
-
question?: string;
|
|
20
|
-
answer?: string;
|
|
21
|
-
}
|
|
13
|
+
import { Authenticator, AuthenticatorValues } from '../../authenticator';
|
|
14
|
+
import { IdxRemediation, IdxContext } from '../../types/idx-js';
|
|
15
|
+
import { NextStep } from '../../types';
|
|
16
|
+
export declare type VerifyAuthenticatorValues = AuthenticatorValues & RemediationValues;
|
|
22
17
|
export declare class VerifyAuthenticator extends Remediator {
|
|
23
|
-
authenticator: Authenticator
|
|
18
|
+
authenticator: Authenticator<VerifyAuthenticatorValues>;
|
|
24
19
|
values: VerifyAuthenticatorValues;
|
|
25
20
|
map: {
|
|
26
|
-
credentials:
|
|
21
|
+
credentials: never[];
|
|
27
22
|
};
|
|
28
|
-
constructor(remediation: IdxRemediation, values?:
|
|
23
|
+
constructor(remediation: IdxRemediation, values?: VerifyAuthenticatorValues);
|
|
24
|
+
getNextStep(context?: IdxContext): NextStep;
|
|
29
25
|
canRemediate(): boolean;
|
|
30
26
|
mapCredentials(): import("../../authenticator").Credentials;
|
|
31
27
|
getInputCredentials(input: any): any;
|
|
@@ -19,7 +19,7 @@ export declare class EnrollProfile extends Remediator {
|
|
|
19
19
|
static remediationName: string;
|
|
20
20
|
values: EnrollProfileValues;
|
|
21
21
|
map: {
|
|
22
|
-
userProfile:
|
|
22
|
+
userProfile: never[];
|
|
23
23
|
};
|
|
24
24
|
canRemediate(): boolean;
|
|
25
25
|
mapUserProfile({ form: { value: profileAttributes } }: {
|
|
@@ -0,0 +1,54 @@
|
|
|
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 { Remediator, RemediationValues } from './Base/Remediator';
|
|
13
|
+
import { IdxContext } from '../types/idx-js';
|
|
14
|
+
export declare type EnrollmentChannelDataValues = RemediationValues & {
|
|
15
|
+
email?: string;
|
|
16
|
+
phoneNumber?: string;
|
|
17
|
+
};
|
|
18
|
+
export declare class EnrollmentChannelData extends Remediator {
|
|
19
|
+
static remediationName: string;
|
|
20
|
+
values: EnrollmentChannelDataValues;
|
|
21
|
+
map: {
|
|
22
|
+
email: never[];
|
|
23
|
+
phoneNumber: never[];
|
|
24
|
+
};
|
|
25
|
+
getInputEmail(): {
|
|
26
|
+
name: string;
|
|
27
|
+
type: string;
|
|
28
|
+
required: boolean;
|
|
29
|
+
label: string;
|
|
30
|
+
}[];
|
|
31
|
+
getInputPhoneNumber(): {
|
|
32
|
+
name: string;
|
|
33
|
+
type: string;
|
|
34
|
+
required: boolean;
|
|
35
|
+
label: string;
|
|
36
|
+
}[];
|
|
37
|
+
canRemediate(): boolean;
|
|
38
|
+
getNextStep(context: IdxContext): {
|
|
39
|
+
authenticator: import("../types/idx-js").IdxAuthenticator;
|
|
40
|
+
name: string;
|
|
41
|
+
canSkip?: boolean | undefined;
|
|
42
|
+
canResend?: boolean | undefined;
|
|
43
|
+
inputs?: import("../types").Input[] | undefined;
|
|
44
|
+
options?: import("../types/idx-js").IdxOption[] | undefined;
|
|
45
|
+
poll?: import("../types").IdxPollOptions | undefined;
|
|
46
|
+
authenticatorEnrollments?: import("../types/idx-js").IdxAuthenticator[] | undefined;
|
|
47
|
+
};
|
|
48
|
+
getData(): {
|
|
49
|
+
stateHandle: string | undefined;
|
|
50
|
+
email: string | undefined;
|
|
51
|
+
phoneNumber: string | undefined;
|
|
52
|
+
};
|
|
53
|
+
getValuesAfterProceed(): {};
|
|
54
|
+
}
|
|
@@ -19,12 +19,12 @@ export declare class Identify extends Remediator {
|
|
|
19
19
|
values: IdentifyValues;
|
|
20
20
|
map: {
|
|
21
21
|
identifier: string[];
|
|
22
|
-
credentials:
|
|
22
|
+
credentials: never[];
|
|
23
23
|
rememberMe: string[];
|
|
24
24
|
};
|
|
25
25
|
canRemediate(): boolean;
|
|
26
26
|
mapCredentials(): {
|
|
27
|
-
passcode: string;
|
|
27
|
+
passcode: string | undefined;
|
|
28
28
|
};
|
|
29
29
|
getInputCredentials(input: any): any;
|
|
30
30
|
}
|
|
@@ -17,10 +17,10 @@ export declare class ReEnrollAuthenticator extends Remediator {
|
|
|
17
17
|
static remediationName: string;
|
|
18
18
|
values: ReEnrollAuthenticatorValues;
|
|
19
19
|
map: {
|
|
20
|
-
credentials:
|
|
20
|
+
credentials: never[];
|
|
21
21
|
};
|
|
22
22
|
mapCredentials(): {
|
|
23
|
-
passcode: string;
|
|
23
|
+
passcode: string | undefined;
|
|
24
24
|
};
|
|
25
25
|
getInputCredentials(input: any): any;
|
|
26
26
|
}
|
|
@@ -15,8 +15,8 @@ export declare class RedirectIdp extends Remediator {
|
|
|
15
15
|
canRemediate(): boolean;
|
|
16
16
|
getNextStep(): {
|
|
17
17
|
name: string;
|
|
18
|
-
type: string;
|
|
19
|
-
idp: import("../types/idx-js").IdpConfig;
|
|
20
|
-
href: string;
|
|
18
|
+
type: string | undefined;
|
|
19
|
+
idp: import("../types/idx-js").IdpConfig | undefined;
|
|
20
|
+
href: string | undefined;
|
|
21
21
|
};
|
|
22
22
|
}
|