@okta/okta-auth-js 6.0.0 → 6.1.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 +18 -0
- package/README.md +5 -4
- package/cjs/AuthStateManager.js +9 -2
- package/cjs/AuthStateManager.js.map +1 -1
- package/cjs/OktaAuth.js +67 -27
- package/cjs/OktaAuth.js.map +1 -1
- package/cjs/OktaUserAgent.js +2 -2
- package/cjs/PromiseQueue.js +5 -1
- package/cjs/PromiseQueue.js.map +1 -1
- package/cjs/SavedObject.js +4 -2
- package/cjs/SavedObject.js.map +1 -1
- package/cjs/StorageManager.js +13 -8
- package/cjs/StorageManager.js.map +1 -1
- package/cjs/TokenManager.js +29 -19
- package/cjs/TokenManager.js.map +1 -1
- package/cjs/TransactionManager.js +9 -3
- package/cjs/TransactionManager.js.map +1 -1
- package/cjs/browser/browserStorage.js +18 -9
- package/cjs/browser/browserStorage.js.map +1 -1
- package/cjs/browser/fingerprint.js +9 -3
- package/cjs/browser/fingerprint.js.map +1 -1
- package/cjs/builderUtil.js +4 -2
- 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/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/fetch/fetchRequest.js +18 -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 +9 -5
- package/cjs/http/request.js.map +1 -1
- 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 +1 -1
- package/cjs/idx/authenticator/SecurityQuestionVerification.js.map +1 -1
- package/cjs/idx/authenticator/VerificationCodeAuthenticator.js +1 -1
- 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 +13 -1
- 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 +1 -1
- package/cjs/idx/emailVerify.js.map +1 -1
- package/cjs/idx/flow/AccountUnlockFlow.js +30 -0
- package/cjs/idx/flow/AccountUnlockFlow.js.map +1 -0
- package/cjs/idx/flow/FlowSpecification.js +8 -0
- 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/index.js +20 -5
- package/cjs/idx/flow/index.js.map +1 -1
- package/cjs/idx/handleInteractionCodeRedirect.js +5 -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 +120 -121
- package/cjs/idx/index.js.map +1 -1
- package/cjs/idx/interact.js +9 -4
- package/cjs/idx/interact.js.map +1 -1
- package/cjs/idx/introspect.js +6 -6
- 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.map +1 -1
- package/cjs/idx/recoverPassword.js.map +1 -1
- package/cjs/idx/register.js +5 -1
- package/cjs/idx/register.js.map +1 -1
- package/cjs/idx/remediate.js +60 -29
- package/cjs/idx/remediate.js.map +1 -1
- package/cjs/idx/remediators/AuthenticatorEnrollmentData.js +10 -4
- package/cjs/idx/remediators/AuthenticatorEnrollmentData.js.map +1 -1
- package/cjs/idx/remediators/AuthenticatorVerificationData.js +10 -6
- package/cjs/idx/remediators/AuthenticatorVerificationData.js.map +1 -1
- package/cjs/idx/remediators/Base/AuthenticatorData.js +28 -12
- package/cjs/idx/remediators/Base/AuthenticatorData.js.map +1 -1
- package/cjs/idx/remediators/Base/Remediator.js +65 -31
- package/cjs/idx/remediators/Base/Remediator.js.map +1 -1
- package/cjs/idx/remediators/Base/SelectAuthenticator.js +42 -27
- 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/ChallengePoll.js +2 -2
- package/cjs/idx/remediators/EnrollAuthenticator.js +2 -2
- package/cjs/idx/remediators/EnrollPoll.js +16 -6
- package/cjs/idx/remediators/EnrollPoll.js.map +1 -1
- package/cjs/idx/remediators/EnrollProfile.js +20 -8
- package/cjs/idx/remediators/EnrollProfile.js.map +1 -1
- package/cjs/idx/remediators/EnrollmentChannelData.js +25 -9
- package/cjs/idx/remediators/EnrollmentChannelData.js.map +1 -1
- package/cjs/idx/remediators/Identify.js +5 -3
- package/cjs/idx/remediators/Identify.js.map +1 -1
- package/cjs/idx/remediators/ReEnrollAuthenticator.js +5 -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/SelectAuthenticatorAuthenticate.js +6 -4
- package/cjs/idx/remediators/SelectAuthenticatorAuthenticate.js.map +1 -1
- package/cjs/idx/remediators/SelectAuthenticatorEnroll.js +2 -2
- 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/SelectEnrollmentChannel.js +22 -10
- package/cjs/idx/remediators/SelectEnrollmentChannel.js.map +1 -1
- package/cjs/idx/remediators/Skip.js +5 -3
- package/cjs/idx/remediators/Skip.js.map +1 -1
- package/cjs/idx/remediators/index.js +33 -18
- package/cjs/idx/remediators/index.js.map +1 -1
- package/cjs/idx/remediators/util.js +13 -3
- package/cjs/idx/remediators/util.js.map +1 -1
- package/cjs/idx/run.js +30 -6
- package/cjs/idx/run.js.map +1 -1
- package/cjs/idx/startTransaction.js.map +1 -1
- package/cjs/idx/transactionMeta.js.map +1 -1
- package/cjs/idx/types/idx-js.js.map +1 -1
- package/cjs/idx/types/index.js +45 -9
- 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 +20 -14
- package/cjs/index.js.map +1 -1
- package/cjs/oidc/endpoints/authorize.js +8 -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 +15 -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 +10 -2
- package/cjs/oidc/exchangeCodeForTokens.js.map +1 -1
- package/cjs/oidc/getToken.js +9 -5
- 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 +5 -1
- 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 +9 -3
- 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 +5 -1
- 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 +7 -3
- 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 +14 -12
- package/cjs/oidc/util/index.js.map +1 -1
- package/cjs/oidc/util/loginRedirect.js +5 -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.map +1 -1
- package/cjs/oidc/util/pkce.js +11 -3
- package/cjs/oidc/util/pkce.js.map +1 -1
- package/cjs/oidc/util/prepareTokenParams.js +7 -5
- package/cjs/oidc/util/prepareTokenParams.js.map +1 -1
- package/cjs/oidc/util/validateClaims.js +1 -1
- package/cjs/oidc/util/validateClaims.js.map +1 -1
- package/cjs/oidc/verifyToken.js +11 -3
- package/cjs/oidc/verifyToken.js.map +1 -1
- package/cjs/options.js +6 -4
- package/cjs/options.js.map +1 -1
- package/cjs/server/serverStorage.js +1 -0
- package/cjs/server/serverStorage.js.map +1 -1
- package/cjs/tx/AuthTransaction.js +15 -9
- package/cjs/tx/AuthTransaction.js.map +1 -1
- package/cjs/tx/api.js +8 -4
- 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/Transaction.js +10 -2
- package/cjs/types/Transaction.js.map +1 -1
- package/cjs/types/index.js +16 -14
- package/cjs/types/index.js.map +1 -1
- package/cjs/util/index.js +7 -5
- 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/dist/okta-auth-js.min.js +1 -1
- package/dist/okta-auth-js.min.js.LICENSE.txt +0 -12
- 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 +0 -12
- package/dist/okta-auth-js.umd.js.map +1 -1
- package/esm/index.js +1601 -377
- package/esm/index.js.map +1 -1
- package/lib/OktaAuth.d.ts +6 -3
- package/lib/StorageManager.d.ts +1 -1
- package/lib/TokenManager.d.ts +2 -2
- package/lib/TransactionManager.d.ts +1 -1
- package/lib/browser/fingerprint.d.ts +2 -3
- package/lib/crypto/base64.d.ts +2 -0
- package/lib/crypto/webauthn.d.ts +25 -0
- 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 +2 -2
- package/lib/idx/flow/AccountUnlockFlow.d.ts +13 -0
- package/lib/idx/flow/FlowSpecification.d.ts +2 -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 -11
- package/lib/idx/interact.d.ts +3 -2
- package/lib/idx/introspect.d.ts +2 -2
- package/lib/idx/poll.d.ts +2 -2
- package/lib/idx/proceed.d.ts +5 -4
- package/lib/idx/recoverPassword.d.ts +2 -2
- package/lib/idx/register.d.ts +2 -2
- package/lib/idx/remediators/Base/AuthenticatorData.d.ts +2 -1
- package/lib/idx/remediators/Base/Remediator.d.ts +1 -1
- package/lib/idx/remediators/Base/SelectAuthenticator.d.ts +3 -0
- package/lib/idx/remediators/Base/VerifyAuthenticator.d.ts +7 -12
- package/lib/idx/remediators/EnrollmentChannelData.d.ts +1 -0
- package/lib/idx/remediators/SelectAuthenticatorUnlockAccount.d.ts +38 -0
- package/lib/idx/remediators/SelectEnrollmentChannel.d.ts +1 -0
- package/lib/idx/remediators/index.d.ts +1 -0
- package/lib/idx/run.d.ts +2 -2
- package/lib/idx/startTransaction.d.ts +2 -2
- package/lib/idx/transactionMeta.d.ts +7 -7
- package/lib/idx/types/FlowIdentifier.d.ts +1 -1
- package/lib/idx/types/idx-js.d.ts +36 -0
- package/lib/idx/types/index.d.ts +21 -5
- package/lib/idx/unlockAccount.d.ts +15 -0
- package/lib/oidc/endpoints/well-known.d.ts +3 -3
- package/lib/oidc/exchangeCodeForTokens.d.ts +2 -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/renewToken.d.ts +2 -2
- package/lib/oidc/renewTokensWithRefresh.d.ts +2 -2
- package/lib/oidc/revokeToken.d.ts +2 -2
- package/lib/oidc/util/browser.d.ts +2 -2
- package/lib/oidc/util/defaultTokenParams.d.ts +2 -2
- package/lib/oidc/util/errors.d.ts +2 -2
- package/lib/oidc/util/loginRedirect.d.ts +4 -4
- package/lib/oidc/util/oauth.d.ts +4 -4
- package/lib/oidc/util/oauthMeta.d.ts +2 -2
- package/lib/oidc/util/prepareTokenParams.d.ts +5 -5
- package/lib/oidc/util/validateClaims.d.ts +2 -2
- package/lib/oidc/verifyToken.d.ts +2 -2
- package/lib/types/OktaAuthOptions.d.ts +1 -2
- package/lib/types/Transaction.d.ts +2 -10
- package/lib/types/api.d.ts +17 -5
- package/lib/types/index.d.ts +0 -1
- package/lib/util/sharedStorage.d.ts +1 -1
- package/package.json +10 -7
- package/polyfill/index.js +1 -0
|
@@ -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,15 +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
|
|
22
|
-
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';
|
|
23
24
|
export * from './transactionMeta';
|
package/lib/idx/interact.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { OktaAuthInterface, IdxTransactionMeta } from '../types';
|
|
2
2
|
export interface InteractOptions {
|
|
3
3
|
withCredentials?: boolean;
|
|
4
4
|
state?: string;
|
|
@@ -7,10 +7,11 @@ export interface InteractOptions {
|
|
|
7
7
|
codeChallengeMethod?: string;
|
|
8
8
|
activationToken?: string;
|
|
9
9
|
recoveryToken?: string;
|
|
10
|
+
clientSecret?: string;
|
|
10
11
|
}
|
|
11
12
|
export interface InteractResponse {
|
|
12
13
|
state?: string;
|
|
13
14
|
interactionHandle: string;
|
|
14
15
|
meta: IdxTransactionMeta;
|
|
15
16
|
}
|
|
16
|
-
export declare function interact(authClient:
|
|
17
|
+
export declare function interact(authClient: OktaAuthInterface, options?: InteractOptions): Promise<InteractResponse>;
|
package/lib/idx/introspect.d.ts
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
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
15
|
withCredentials?: boolean;
|
|
@@ -17,4 +17,4 @@ export interface IntrospectOptions {
|
|
|
17
17
|
stateHandle?: string;
|
|
18
18
|
version?: string;
|
|
19
19
|
}
|
|
20
|
-
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,15 +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
14
|
import { EnrollPollValues as EnrollPollOptions, SelectEnrollmentChannelValues as SelectEnrollmentChannelOptions } from './remediators';
|
|
15
15
|
import { RegistrationOptions } from './register';
|
|
16
16
|
import { PasswordRecoveryOptions } from './recoverPassword';
|
|
17
|
-
|
|
17
|
+
import { AccountUnlockOptions } from './unlockAccount';
|
|
18
|
+
export declare type ProceedOptions = AuthenticationOptions & RegistrationOptions & PasswordRecoveryOptions & AccountUnlockOptions & EnrollPollOptions & SelectEnrollmentChannelOptions & {
|
|
18
19
|
step?: string;
|
|
19
20
|
};
|
|
20
|
-
export declare function canProceed(authClient:
|
|
21
|
+
export declare function canProceed(authClient: OktaAuthInterface, options?: {
|
|
21
22
|
state?: string;
|
|
22
23
|
}): boolean;
|
|
23
|
-
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>;
|
|
@@ -28,11 +28,12 @@ export declare class AuthenticatorData extends Remediator {
|
|
|
28
28
|
getNextStep(): {
|
|
29
29
|
options: IdxOption[];
|
|
30
30
|
name: string;
|
|
31
|
-
authenticator?: import("../../types
|
|
31
|
+
authenticator?: import("../../types").IdxAuthenticator | undefined;
|
|
32
32
|
canSkip?: boolean | undefined;
|
|
33
33
|
canResend?: boolean | undefined;
|
|
34
34
|
inputs?: import("../../types").Input[] | undefined;
|
|
35
35
|
poll?: import("../../types").IdxPollOptions | undefined;
|
|
36
|
+
authenticatorEnrollments?: import("../../types").IdxAuthenticator[] | undefined;
|
|
36
37
|
};
|
|
37
38
|
protected mapAuthenticatorDataFromValues(authenticatorData?: any): any;
|
|
38
39
|
protected getAuthenticatorFromRemediation(): IdxRemediationValue;
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* See the License for the specific language governing permissions and limitations under the License.
|
|
11
11
|
*/
|
|
12
12
|
import { NextStep, IdxMessage, Authenticator, IdxOptions } from '../../types';
|
|
13
|
-
import { IdxAuthenticator,
|
|
13
|
+
import { IdxAuthenticator, IdxRemediation, IdxContext } from '../../types/idx-js';
|
|
14
14
|
export declare type IdxToRemediationValueMap = Record<string, string[]>;
|
|
15
15
|
export interface RemediationValues extends IdxOptions {
|
|
16
16
|
stateHandle?: string;
|
|
@@ -17,9 +17,11 @@ export declare type SelectAuthenticatorValues = RemediationValues & {
|
|
|
17
17
|
export declare class SelectAuthenticator extends Remediator {
|
|
18
18
|
values: SelectAuthenticatorValues;
|
|
19
19
|
selectedAuthenticator?: IdxAuthenticator;
|
|
20
|
+
selectedOption?: any;
|
|
20
21
|
map: {
|
|
21
22
|
authenticator: never[];
|
|
22
23
|
};
|
|
24
|
+
findMatchedOption(authenticators: any, options: any): any;
|
|
23
25
|
canRemediate(): boolean;
|
|
24
26
|
getNextStep(): {
|
|
25
27
|
options: {
|
|
@@ -32,6 +34,7 @@ export declare class SelectAuthenticator extends Remediator {
|
|
|
32
34
|
canResend?: boolean | undefined;
|
|
33
35
|
inputs?: import("../../types").Input[] | undefined;
|
|
34
36
|
poll?: import("../../types").IdxPollOptions | undefined;
|
|
37
|
+
authenticatorEnrollments?: IdxAuthenticator[] | undefined;
|
|
35
38
|
};
|
|
36
39
|
mapAuthenticator(remediationValue: IdxRemediationValue): {
|
|
37
40
|
id: any;
|
|
@@ -10,23 +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
|
-
otp?: string;
|
|
22
|
-
}
|
|
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;
|
|
23
17
|
export declare class VerifyAuthenticator extends Remediator {
|
|
24
|
-
authenticator: Authenticator
|
|
18
|
+
authenticator: Authenticator<VerifyAuthenticatorValues>;
|
|
25
19
|
values: VerifyAuthenticatorValues;
|
|
26
20
|
map: {
|
|
27
21
|
credentials: never[];
|
|
28
22
|
};
|
|
29
|
-
constructor(remediation: IdxRemediation, values?:
|
|
23
|
+
constructor(remediation: IdxRemediation, values?: VerifyAuthenticatorValues);
|
|
24
|
+
getNextStep(context?: IdxContext): NextStep;
|
|
30
25
|
canRemediate(): boolean;
|
|
31
26
|
mapCredentials(): import("../../authenticator").Credentials;
|
|
32
27
|
getInputCredentials(input: any): any;
|
|
@@ -43,6 +43,7 @@ export declare class EnrollmentChannelData extends Remediator {
|
|
|
43
43
|
inputs?: import("../types").Input[] | undefined;
|
|
44
44
|
options?: import("../types/idx-js").IdxOption[] | undefined;
|
|
45
45
|
poll?: import("../types").IdxPollOptions | undefined;
|
|
46
|
+
authenticatorEnrollments?: import("../types/idx-js").IdxAuthenticator[] | undefined;
|
|
46
47
|
};
|
|
47
48
|
getData(): {
|
|
48
49
|
stateHandle: string | undefined;
|
|
@@ -0,0 +1,38 @@
|
|
|
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 { SelectAuthenticator, SelectAuthenticatorValues } from './Base/SelectAuthenticator';
|
|
13
|
+
import { Authenticator } from '../../types';
|
|
14
|
+
import { IdxRemediationValue } from '../types/idx-js';
|
|
15
|
+
export declare type SelectAuthenticatorUnlockAccountValues = SelectAuthenticatorValues & {
|
|
16
|
+
identifier?: string;
|
|
17
|
+
methodType?: string;
|
|
18
|
+
};
|
|
19
|
+
export declare class SelectAuthenticatorUnlockAccount extends SelectAuthenticator {
|
|
20
|
+
static remediationName: string;
|
|
21
|
+
values: SelectAuthenticatorUnlockAccountValues;
|
|
22
|
+
authenticator?: Authenticator;
|
|
23
|
+
map: {
|
|
24
|
+
authenticator: never[];
|
|
25
|
+
identifier: string[];
|
|
26
|
+
};
|
|
27
|
+
canRemediate(): boolean;
|
|
28
|
+
mapAuthenticator(remediationValue: IdxRemediationValue): {
|
|
29
|
+
id: any;
|
|
30
|
+
} | {
|
|
31
|
+
methodType: string;
|
|
32
|
+
id: any;
|
|
33
|
+
};
|
|
34
|
+
getInputUsername(): {
|
|
35
|
+
name: string;
|
|
36
|
+
key: string;
|
|
37
|
+
};
|
|
38
|
+
}
|
|
@@ -26,6 +26,7 @@ export declare class SelectEnrollmentChannel extends Remediator {
|
|
|
26
26
|
canResend?: boolean | undefined;
|
|
27
27
|
inputs?: import("../types").Input[] | undefined;
|
|
28
28
|
poll?: import("../types").IdxPollOptions | undefined;
|
|
29
|
+
authenticatorEnrollments?: import("../types/idx-js").IdxAuthenticator[] | undefined;
|
|
29
30
|
};
|
|
30
31
|
private getChannels;
|
|
31
32
|
getData(): {
|
|
@@ -23,6 +23,7 @@ export * from './ReEnrollAuthenticator';
|
|
|
23
23
|
export * from './RedirectIdp';
|
|
24
24
|
export * from './SelectAuthenticatorAuthenticate';
|
|
25
25
|
export * from './SelectAuthenticatorEnroll';
|
|
26
|
+
export * from './SelectAuthenticatorUnlockAccount';
|
|
26
27
|
export * from './SelectEnrollProfile';
|
|
27
28
|
export * from './AuthenticatorVerificationData';
|
|
28
29
|
export * from './AuthenticatorEnrollmentData';
|
package/lib/idx/run.d.ts
CHANGED
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
*/
|
|
12
12
|
import { RemediateOptions } from './remediate';
|
|
13
13
|
import { RemediationFlow } from './flow';
|
|
14
|
-
import {
|
|
14
|
+
import { OktaAuthInterface, IdxTransaction, FlowIdentifier } from '../types';
|
|
15
15
|
import { ProceedOptions } from './proceed';
|
|
16
16
|
export declare type RunOptions = ProceedOptions & RemediateOptions & {
|
|
17
17
|
flow?: FlowIdentifier;
|
|
@@ -19,4 +19,4 @@ export declare type RunOptions = ProceedOptions & RemediateOptions & {
|
|
|
19
19
|
actions?: string[];
|
|
20
20
|
withCredentials?: boolean;
|
|
21
21
|
};
|
|
22
|
-
export declare function run(authClient:
|
|
22
|
+
export declare function run(authClient: OktaAuthInterface, options?: RunOptions): Promise<IdxTransaction>;
|
|
@@ -10,5 +10,5 @@
|
|
|
10
10
|
* See the License for the specific language governing permissions and limitations under the License.
|
|
11
11
|
*/
|
|
12
12
|
import { RunOptions } from './run';
|
|
13
|
-
import {
|
|
14
|
-
export declare function startTransaction(authClient:
|
|
13
|
+
import { OktaAuthInterface, IdxTransaction } from '../types';
|
|
14
|
+
export declare function startTransaction(authClient: OktaAuthInterface, options?: RunOptions): Promise<IdxTransaction>;
|
|
@@ -9,13 +9,13 @@
|
|
|
9
9
|
*
|
|
10
10
|
* See the License for the specific language governing permissions and limitations under the License.
|
|
11
11
|
*/
|
|
12
|
-
import {
|
|
13
|
-
export declare function createTransactionMeta(authClient:
|
|
14
|
-
export declare function hasSavedInteractionHandle(authClient:
|
|
15
|
-
export declare function getSavedTransactionMeta(authClient:
|
|
16
|
-
export declare function getTransactionMeta(authClient:
|
|
17
|
-
export declare function saveTransactionMeta(authClient:
|
|
18
|
-
export declare function clearTransactionMeta(authClient:
|
|
12
|
+
import { OktaAuthInterface, IdxTransactionMeta, TransactionMetaOptions } from '../types';
|
|
13
|
+
export declare function createTransactionMeta(authClient: OktaAuthInterface, options?: TransactionMetaOptions): Promise<IdxTransactionMeta>;
|
|
14
|
+
export declare function hasSavedInteractionHandle(authClient: OktaAuthInterface, options?: TransactionMetaOptions): boolean;
|
|
15
|
+
export declare function getSavedTransactionMeta(authClient: OktaAuthInterface, options?: TransactionMetaOptions): IdxTransactionMeta | undefined;
|
|
16
|
+
export declare function getTransactionMeta(authClient: OktaAuthInterface, options?: TransactionMetaOptions): Promise<IdxTransactionMeta>;
|
|
17
|
+
export declare function saveTransactionMeta(authClient: OktaAuthInterface, meta: any): void;
|
|
18
|
+
export declare function clearTransactionMeta(authClient: OktaAuthInterface): void;
|
|
19
19
|
export declare function isTransactionMetaValid(meta: any, options?: TransactionMetaOptions): boolean;
|
|
20
20
|
export declare function isTransactionMetaValidForFlow(meta: any, flow: any): boolean;
|
|
21
21
|
export declare function isTransactionMetaValidForOptions(meta: any, options: any, keys: any): boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare type FlowIdentifier = 'default' | 'proceed' | 'authenticate' | 'login' | 'signin' | 'register' | 'signup' | 'enrollProfile' | 'recoverPassword' | 'resetPassword';
|
|
1
|
+
export declare type FlowIdentifier = 'default' | 'proceed' | 'authenticate' | 'login' | 'signin' | 'register' | 'signup' | 'enrollProfile' | 'recoverPassword' | 'resetPassword' | 'unlockAccount';
|
|
@@ -9,6 +9,39 @@
|
|
|
9
9
|
*
|
|
10
10
|
* See the License for the specific language governing permissions and limitations under the License.
|
|
11
11
|
*/
|
|
12
|
+
export interface ChallengeData {
|
|
13
|
+
challenge: string;
|
|
14
|
+
userVerification: string;
|
|
15
|
+
extensions?: {
|
|
16
|
+
appid: string;
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
export interface ActivationData {
|
|
20
|
+
challenge: string;
|
|
21
|
+
rp: {
|
|
22
|
+
name: string;
|
|
23
|
+
};
|
|
24
|
+
user: {
|
|
25
|
+
id: string;
|
|
26
|
+
name: string;
|
|
27
|
+
displayName: string;
|
|
28
|
+
};
|
|
29
|
+
pubKeyCredParams: {
|
|
30
|
+
type: string;
|
|
31
|
+
alg: number;
|
|
32
|
+
}[];
|
|
33
|
+
attestation?: string;
|
|
34
|
+
authenticatorSelection?: {
|
|
35
|
+
userVerification?: string;
|
|
36
|
+
authenticatorAttachment?: string;
|
|
37
|
+
requireResidentKey?: boolean;
|
|
38
|
+
residentKey?: string;
|
|
39
|
+
};
|
|
40
|
+
excludeCredentials?: {
|
|
41
|
+
id: string;
|
|
42
|
+
type: string;
|
|
43
|
+
}[];
|
|
44
|
+
}
|
|
12
45
|
export interface IdxAuthenticatorMethod {
|
|
13
46
|
type: string;
|
|
14
47
|
}
|
|
@@ -39,7 +72,10 @@ export interface IdxAuthenticator {
|
|
|
39
72
|
}[];
|
|
40
73
|
questionKeys?: string[];
|
|
41
74
|
selectedChannel?: string;
|
|
75
|
+
activationData?: ActivationData;
|
|
76
|
+
challengeData?: ChallengeData;
|
|
42
77
|
};
|
|
78
|
+
credentialId?: string;
|
|
43
79
|
}
|
|
44
80
|
export interface IdxForm {
|
|
45
81
|
value: IdxRemediationValue[];
|
package/lib/idx/types/index.d.ts
CHANGED
|
@@ -12,18 +12,21 @@
|
|
|
12
12
|
import { InteractOptions } from '../interact';
|
|
13
13
|
import { IntrospectOptions } from '../introspect';
|
|
14
14
|
import { APIError, Tokens } from '../../types';
|
|
15
|
-
import {
|
|
15
|
+
import { PKCETransactionMeta } from '../../types/Transaction';
|
|
16
16
|
import { IdxActions, IdxAuthenticator, IdxContext, IdxForm, IdxMessage, IdxOption, IdxRemediation, IdxResponse, RawIdxResponse } from './idx-js';
|
|
17
17
|
import { FlowIdentifier } from './FlowIdentifier';
|
|
18
|
-
export { IdxMessage } from './idx-js';
|
|
18
|
+
export { IdxMessage, ChallengeData, ActivationData } from './idx-js';
|
|
19
19
|
export { AuthenticationOptions } from '../authenticate';
|
|
20
20
|
export { RegistrationOptions } from '../register';
|
|
21
21
|
export { PasswordRecoveryOptions } from '../recoverPassword';
|
|
22
|
+
export { AccountUnlockOptions } from '../unlockAccount';
|
|
22
23
|
export { ProceedOptions } from '../proceed';
|
|
23
24
|
export { CancelOptions } from '../cancel';
|
|
24
25
|
export { FlowIdentifier };
|
|
25
|
-
export {
|
|
26
|
+
export { IdxAuthenticator };
|
|
26
27
|
export { EmailVerifyCallbackResponse } from '../emailVerify';
|
|
28
|
+
export { WebauthnEnrollValues } from '../authenticator/WebauthnEnrollment';
|
|
29
|
+
export { WebauthnVerificationValues } from '../authenticator/WebauthnVerification';
|
|
27
30
|
export declare enum IdxStatus {
|
|
28
31
|
SUCCESS = "SUCCESS",
|
|
29
32
|
PENDING = "PENDING",
|
|
@@ -37,7 +40,8 @@ export declare enum AuthenticatorKey {
|
|
|
37
40
|
PHONE_NUMBER = "phone_number",
|
|
38
41
|
GOOGLE_AUTHENTICATOR = "google_otp",
|
|
39
42
|
SECURITY_QUESTION = "security_question",
|
|
40
|
-
OKTA_VERIFY = "okta_verify"
|
|
43
|
+
OKTA_VERIFY = "okta_verify",
|
|
44
|
+
WEBAUTHN = "webauthn"
|
|
41
45
|
}
|
|
42
46
|
export declare type Input = {
|
|
43
47
|
name: string;
|
|
@@ -46,6 +50,8 @@ export declare type Input = {
|
|
|
46
50
|
value?: string | {
|
|
47
51
|
form: IdxForm;
|
|
48
52
|
};
|
|
53
|
+
minLength?: number;
|
|
54
|
+
maxLength?: number;
|
|
49
55
|
secret?: boolean;
|
|
50
56
|
required?: boolean;
|
|
51
57
|
};
|
|
@@ -57,11 +63,21 @@ export declare type NextStep = {
|
|
|
57
63
|
inputs?: Input[];
|
|
58
64
|
options?: IdxOption[];
|
|
59
65
|
poll?: IdxPollOptions;
|
|
66
|
+
authenticatorEnrollments?: IdxAuthenticator[];
|
|
60
67
|
};
|
|
61
68
|
export declare enum IdxFeature {
|
|
62
69
|
PASSWORD_RECOVERY = "recover-password",
|
|
63
70
|
REGISTRATION = "enroll-profile",
|
|
64
|
-
SOCIAL_IDP = "redirect-idp"
|
|
71
|
+
SOCIAL_IDP = "redirect-idp",
|
|
72
|
+
ACCOUNT_UNLOCK = "unlock-account"
|
|
73
|
+
}
|
|
74
|
+
export interface IdxTransactionMeta extends PKCETransactionMeta {
|
|
75
|
+
interactionHandle?: string;
|
|
76
|
+
remediations?: string[];
|
|
77
|
+
flow?: FlowIdentifier;
|
|
78
|
+
withCredentials?: boolean;
|
|
79
|
+
activationToken?: string;
|
|
80
|
+
recoveryToken?: string;
|
|
65
81
|
}
|
|
66
82
|
export interface IdxTransaction {
|
|
67
83
|
status: IdxStatus;
|
|
@@ -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 { IdentifyValues, SelectAuthenticatorUnlockAccountValues, SelectAuthenticatorAuthenticateValues, ChallengeAuthenticatorValues, AuthenticatorVerificationDataValues } from './remediators';
|
|
13
|
+
import { OktaAuthInterface, IdxOptions, IdxTransaction } from '../types';
|
|
14
|
+
export declare type AccountUnlockOptions = IdxOptions & IdentifyValues & SelectAuthenticatorUnlockAccountValues & SelectAuthenticatorAuthenticateValues & ChallengeAuthenticatorValues & AuthenticatorVerificationDataValues;
|
|
15
|
+
export declare function unlockAccount(authClient: OktaAuthInterface, options?: AccountUnlockOptions): Promise<IdxTransaction>;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare function getWellKnown(sdk:
|
|
3
|
-
export declare function getKey(sdk:
|
|
1
|
+
import { OktaAuthInterface, WellKnownResponse } from '../../types';
|
|
2
|
+
export declare function getWellKnown(sdk: OktaAuthInterface, issuer?: string): Promise<WellKnownResponse>;
|
|
3
|
+
export declare function getKey(sdk: OktaAuthInterface, issuer: string, kid: string): Promise<string>;
|
|
@@ -10,5 +10,5 @@
|
|
|
10
10
|
* See the License for the specific language governing permissions and limitations under the License.
|
|
11
11
|
*
|
|
12
12
|
*/
|
|
13
|
-
import { CustomUrls,
|
|
14
|
-
export declare function exchangeCodeForTokens(sdk:
|
|
13
|
+
import { CustomUrls, OktaAuthInterface, TokenParams, TokenResponse } from '../types';
|
|
14
|
+
export declare function exchangeCodeForTokens(sdk: OktaAuthInterface, tokenParams: TokenParams, urls?: CustomUrls): Promise<TokenResponse>;
|
package/lib/oidc/getToken.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare function getToken(sdk:
|
|
1
|
+
import { OktaAuthInterface, TokenParams, PopupParams } from '../types';
|
|
2
|
+
export declare function getToken(sdk: OktaAuthInterface, options: TokenParams & PopupParams): Promise<import("../types").TokenResponse>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare function getWithPopup(sdk:
|
|
1
|
+
import { OktaAuthInterface, TokenParams, TokenResponse } from '../types';
|
|
2
|
+
export declare function getWithPopup(sdk: OktaAuthInterface, options: TokenParams): Promise<TokenResponse>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare function getWithRedirect(sdk:
|
|
1
|
+
import { OktaAuthInterface, TokenParams } from '../types';
|
|
2
|
+
export declare function getWithRedirect(sdk: OktaAuthInterface, options?: TokenParams): Promise<void>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare function getWithoutPrompt(sdk:
|
|
1
|
+
import { OktaAuthInterface, TokenParams, TokenResponse } from '../types';
|
|
2
|
+
export declare function getWithoutPrompt(sdk: OktaAuthInterface, options: TokenParams): Promise<TokenResponse>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare function handleOAuthResponse(sdk:
|
|
1
|
+
import { OktaAuthInterface, OAuthResponse, TokenParams, TokenResponse, CustomUrls } from '../types';
|
|
2
|
+
export declare function handleOAuthResponse(sdk: OktaAuthInterface, tokenParams: TokenParams, res: OAuthResponse, urls?: CustomUrls): Promise<TokenResponse>;
|
package/lib/oidc/renewToken.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare function renewToken(sdk:
|
|
1
|
+
import { OktaAuthInterface, Token } from '../types';
|
|
2
|
+
export declare function renewToken(sdk: OktaAuthInterface, token: Token): Promise<Token | undefined>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare function renewTokensWithRefresh(sdk:
|
|
1
|
+
import { OktaAuthInterface, TokenParams, RefreshToken, Tokens } from '../types';
|
|
2
|
+
export declare function renewTokensWithRefresh(sdk: OktaAuthInterface, tokenParams: TokenParams, refreshTokenObject: RefreshToken): Promise<Tokens>;
|
|
@@ -10,5 +10,5 @@
|
|
|
10
10
|
* See the License for the specific language governing permissions and limitations under the License.
|
|
11
11
|
*
|
|
12
12
|
*/
|
|
13
|
-
import {
|
|
14
|
-
export declare function revokeToken(sdk:
|
|
13
|
+
import { OktaAuthInterface, RevocableToken } from '../types';
|
|
14
|
+
export declare function revokeToken(sdk: OktaAuthInterface, token: RevocableToken): Promise<any>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { OktaAuthInterface } from '../../types';
|
|
2
2
|
export declare function addListener(eventTarget: any, name: any, fn: any): void;
|
|
3
3
|
export declare function removeListener(eventTarget: any, name: any, fn: any): void;
|
|
4
4
|
export declare function loadFrame(src: any): HTMLIFrameElement;
|
|
5
5
|
export declare function loadPopup(src: any, options: any): Window | null;
|
|
6
|
-
export declare function addPostMessageListener(sdk:
|
|
6
|
+
export declare function addPostMessageListener(sdk: OktaAuthInterface, timeout: any, state: any): Promise<unknown>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare function getDefaultTokenParams(sdk:
|
|
1
|
+
import { OktaAuthInterface, TokenParams } from '../../types';
|
|
2
|
+
export declare function getDefaultTokenParams(sdk: OktaAuthInterface): TokenParams;
|
|
@@ -9,6 +9,6 @@
|
|
|
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
|
export declare function isInteractionRequiredError(error: Error): boolean;
|
|
14
|
-
export declare function isAuthorizationCodeError(sdk:
|
|
14
|
+
export declare function isAuthorizationCodeError(sdk: OktaAuthInterface, error: Error): boolean | undefined;
|
|
@@ -10,21 +10,21 @@
|
|
|
10
10
|
* See the License for the specific language governing permissions and limitations under the License.
|
|
11
11
|
*
|
|
12
12
|
*/
|
|
13
|
-
import {
|
|
13
|
+
import { OktaAuthInterface, OktaAuthOptions } from '../../types';
|
|
14
14
|
export declare function hasTokensInHash(hash: string): boolean;
|
|
15
15
|
export declare function hasAuthorizationCode(hashOrSearch: string): boolean;
|
|
16
16
|
export declare function hasInteractionCode(hashOrSearch: string): boolean;
|
|
17
17
|
export declare function hasErrorInUrl(hashOrSearch: string): boolean;
|
|
18
|
-
export declare function isRedirectUri(uri: string, sdk:
|
|
18
|
+
export declare function isRedirectUri(uri: string, sdk: OktaAuthInterface): boolean;
|
|
19
19
|
export declare function isCodeFlow(options: OktaAuthOptions): boolean;
|
|
20
20
|
export declare function getHashOrSearch(options: OktaAuthOptions): string;
|
|
21
21
|
/**
|
|
22
22
|
* Check if tokens or a code have been passed back into the url, which happens in
|
|
23
23
|
* the OIDC (including social auth IDP) redirect flow.
|
|
24
24
|
*/
|
|
25
|
-
export declare function isLoginRedirect(sdk:
|
|
25
|
+
export declare function isLoginRedirect(sdk: OktaAuthInterface): boolean;
|
|
26
26
|
/**
|
|
27
27
|
* Check if error=interaction_required has been passed back in the url, which happens in
|
|
28
28
|
* the social auth IDP redirect flow.
|
|
29
29
|
*/
|
|
30
|
-
export declare function isInteractionRequired(sdk:
|
|
30
|
+
export declare function isInteractionRequired(sdk: OktaAuthInterface, hashOrSearch?: string): boolean;
|
package/lib/oidc/util/oauth.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { OktaAuthInterface, CustomUrls } from '../../types';
|
|
2
2
|
export declare function generateState(): string;
|
|
3
3
|
export declare function generateNonce(): string;
|
|
4
|
-
export declare function getOAuthBaseUrl(sdk:
|
|
5
|
-
export declare function getOAuthDomain(sdk:
|
|
6
|
-
export declare function getOAuthUrls(sdk:
|
|
4
|
+
export declare function getOAuthBaseUrl(sdk: OktaAuthInterface, options?: CustomUrls): any;
|
|
5
|
+
export declare function getOAuthDomain(sdk: OktaAuthInterface, options?: CustomUrls): any;
|
|
6
|
+
export declare function getOAuthUrls(sdk: OktaAuthInterface, options?: CustomUrls): CustomUrls;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { OAuthTransactionMeta,
|
|
2
|
-
export declare function createOAuthMeta(sdk:
|
|
1
|
+
import { OAuthTransactionMeta, OktaAuthInterface, PKCETransactionMeta, TokenParams } from '../../types';
|
|
2
|
+
export declare function createOAuthMeta(sdk: OktaAuthInterface, tokenParams: TokenParams): OAuthTransactionMeta | PKCETransactionMeta;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare function assertPKCESupport(sdk:
|
|
3
|
-
export declare function validateCodeChallengeMethod(sdk:
|
|
4
|
-
export declare function preparePKCE(sdk:
|
|
5
|
-
export declare function prepareTokenParams(sdk:
|
|
1
|
+
import { OktaAuthInterface, TokenParams } from '../../types';
|
|
2
|
+
export declare function assertPKCESupport(sdk: OktaAuthInterface): void;
|
|
3
|
+
export declare function validateCodeChallengeMethod(sdk: OktaAuthInterface, codeChallengeMethod?: string): Promise<string>;
|
|
4
|
+
export declare function preparePKCE(sdk: OktaAuthInterface, tokenParams: TokenParams): Promise<TokenParams>;
|
|
5
|
+
export declare function prepareTokenParams(sdk: OktaAuthInterface, tokenParams?: TokenParams): Promise<TokenParams>;
|