@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
package/lib/OktaAuth.d.ts
CHANGED
|
@@ -9,16 +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, OktaAuthOptions, AccessToken, RefreshToken, TokenAPI, FeaturesAPI, CryptoAPI, WebauthnAPI, SignoutAPI, FingerprintAPI, UserClaims, SigninWithRedirectOptions, SigninWithCredentialsOptions, SignoutOptions, Tokens, ForgotPasswordOptions, VerifyRecoveryTokenOptions, TransactionAPI, SessionAPI, SigninAPI, PkceAPI, SigninOptions, IdxAPI, SignoutRedirectUrlOptions, HttpAPI, RequestOptions } from './types';
|
|
13
13
|
import { AuthTransaction } from './tx';
|
|
14
14
|
import { TokenManager } from './TokenManager';
|
|
15
15
|
import PromiseQueue from './PromiseQueue';
|
|
16
16
|
import { AuthStateManager } from './AuthStateManager';
|
|
17
|
-
import StorageManager from './StorageManager';
|
|
17
|
+
import { StorageManager } from './StorageManager';
|
|
18
18
|
import TransactionManager from './TransactionManager';
|
|
19
19
|
import { OktaUserAgent } from './OktaUserAgent';
|
|
20
20
|
declare const Emitter: any;
|
|
21
|
-
declare class OktaAuth implements
|
|
21
|
+
declare class OktaAuth implements OktaAuthInterface, SigninAPI, SignoutAPI {
|
|
22
22
|
options: OktaAuthOptions;
|
|
23
23
|
storageManager: StorageManager;
|
|
24
24
|
transactionManager: TransactionManager;
|
|
@@ -27,6 +27,8 @@ declare class OktaAuth implements SDKInterface, SigninAPI, SignoutAPI {
|
|
|
27
27
|
session: SessionAPI;
|
|
28
28
|
pkce: PkceAPI;
|
|
29
29
|
static features: FeaturesAPI;
|
|
30
|
+
static crypto: CryptoAPI;
|
|
31
|
+
static webauthn: WebauthnAPI;
|
|
30
32
|
features: FeaturesAPI;
|
|
31
33
|
token: TokenAPI;
|
|
32
34
|
_tokenQueue: PromiseQueue;
|
|
@@ -73,5 +75,6 @@ declare class OktaAuth implements SDKInterface, SigninAPI, SignoutAPI {
|
|
|
73
75
|
forgotPassword(opts: any): Promise<AuthTransaction>;
|
|
74
76
|
unlockAccount(opts: ForgotPasswordOptions): Promise<AuthTransaction>;
|
|
75
77
|
verifyRecoveryToken(opts: VerifyRecoveryTokenOptions): Promise<AuthTransaction>;
|
|
78
|
+
invokeApiMethod(options: RequestOptions): Promise<unknown>;
|
|
76
79
|
}
|
|
77
80
|
export default OktaAuth;
|
package/lib/StorageManager.d.ts
CHANGED
|
@@ -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 { StorageUtil, StorageProvider, StorageOptions, PKCEStorage, CookieOptions, TransactionStorage, IdxResponseStorage, StorageManagerOptions, SimpleStorage } from './types';
|
|
13
|
-
export
|
|
13
|
+
export declare class StorageManager {
|
|
14
14
|
storageManagerOptions: StorageManagerOptions;
|
|
15
15
|
cookieOptions: CookieOptions;
|
|
16
16
|
storageUtil: StorageUtil;
|
package/lib/TokenManager.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Token, Tokens, TokenType, TokenManagerOptions,
|
|
1
|
+
import { Token, Tokens, TokenType, TokenManagerOptions, OktaAuthInterface, TokenManagerErrorEventHandler, TokenManagerEventHandler, TokenManagerInterface, RefreshToken } from './types';
|
|
2
2
|
export declare const EVENT_EXPIRED = "expired";
|
|
3
3
|
export declare const EVENT_RENEWED = "renewed";
|
|
4
4
|
export declare const EVENT_ADDED = "added";
|
|
@@ -14,7 +14,7 @@ export declare class TokenManager implements TokenManagerInterface {
|
|
|
14
14
|
private service;
|
|
15
15
|
on: (event: string, handler: TokenManagerErrorEventHandler | TokenManagerEventHandler, context?: object) => void;
|
|
16
16
|
off: (event: string, handler?: TokenManagerErrorEventHandler | TokenManagerEventHandler) => void;
|
|
17
|
-
constructor(sdk:
|
|
17
|
+
constructor(sdk: OktaAuthInterface, options?: TokenManagerOptions);
|
|
18
18
|
start(): void;
|
|
19
19
|
stop(): void;
|
|
20
20
|
getOptions(): TokenManagerOptions;
|
|
@@ -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 StorageManager from './StorageManager';
|
|
12
|
+
import { StorageManager } from './StorageManager';
|
|
13
13
|
import { TransactionMeta, PKCETransactionMeta, OAuthTransactionMeta, TransactionMetaOptions, TransactionManagerOptions } from './types';
|
|
14
14
|
import { RawIdxResponse } from './idx/types/idx-js';
|
|
15
15
|
export interface ClearTransactionMetaOptions extends TransactionMetaOptions {
|
|
@@ -9,6 +9,5 @@
|
|
|
9
9
|
*
|
|
10
10
|
* See the License for the specific language governing permissions and limitations under the License.
|
|
11
11
|
*/
|
|
12
|
-
import {
|
|
13
|
-
|
|
14
|
-
export default function fingerprint(sdk: OktaAuth, options?: FingerprintOptions): Promise<string>;
|
|
12
|
+
import { FingerprintOptions, OktaAuthInterface } from '../types';
|
|
13
|
+
export default function fingerprint(sdk: OktaAuthInterface, options?: FingerprintOptions): Promise<string>;
|
package/lib/crypto/base64.d.ts
CHANGED
|
@@ -15,3 +15,5 @@ export declare function base64UrlToBase64(b64u: any): any;
|
|
|
15
15
|
export declare function base64UrlToString(b64u: any): any;
|
|
16
16
|
export declare function stringToBuffer(str: any): Uint8Array;
|
|
17
17
|
export declare function base64UrlDecode(str: any): any;
|
|
18
|
+
export declare function base64UrlToBuffer(b64u: any): Uint8Array;
|
|
19
|
+
export declare function bufferToBase64Url(bin: any): any;
|
|
@@ -0,0 +1,25 @@
|
|
|
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 { ActivationData, ChallengeData, IdxAuthenticator } from '../idx/types';
|
|
13
|
+
export declare const buildCredentialCreationOptions: (activationData: ActivationData, authenticatorEnrollments: IdxAuthenticator[]) => CredentialCreationOptions;
|
|
14
|
+
export declare const buildCredentialRequestOptions: (challengeData: ChallengeData, authenticatorEnrollments: IdxAuthenticator[]) => CredentialRequestOptions;
|
|
15
|
+
export declare const getAttestation: (credential: PublicKeyCredential) => {
|
|
16
|
+
id: string;
|
|
17
|
+
clientData: any;
|
|
18
|
+
attestation: any;
|
|
19
|
+
};
|
|
20
|
+
export declare const getAssertion: (credential: PublicKeyCredential) => {
|
|
21
|
+
id: string;
|
|
22
|
+
clientData: any;
|
|
23
|
+
authenticatorData: any;
|
|
24
|
+
signatureData: any;
|
|
25
|
+
};
|
package/lib/http/headers.d.ts
CHANGED
|
@@ -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 setRequestHeader(authClient:
|
|
13
|
+
import { OktaAuthInterface } from '../types';
|
|
14
|
+
export declare function setRequestHeader(authClient: OktaAuthInterface, headerName: any, headerValue: any): void;
|
package/lib/http/request.d.ts
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
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 httpRequest(sdk:
|
|
15
|
-
export declare function get(sdk:
|
|
16
|
-
export declare function post(sdk:
|
|
13
|
+
import { OktaAuthInterface, RequestOptions, RequestData } from '../types';
|
|
14
|
+
export declare function httpRequest(sdk: OktaAuthInterface, options: RequestOptions): Promise<any>;
|
|
15
|
+
export declare function get(sdk: OktaAuthInterface, url: string, options?: RequestOptions): Promise<any>;
|
|
16
|
+
export declare function post(sdk: OktaAuthInterface, url: string, args?: RequestData, options?: RequestOptions): Promise<any>;
|
|
@@ -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, IdxOptions, IdxTransaction } from '../types';
|
|
13
13
|
import { IdentifyValues, SelectAuthenticatorAuthenticateValues, ChallengeAuthenticatorValues, ReEnrollAuthenticatorValues, AuthenticatorEnrollmentDataValues, SelectAuthenticatorEnrollValues, EnrollAuthenticatorValues } from './remediators';
|
|
14
14
|
export declare type AuthenticationOptions = IdxOptions & IdentifyValues & SelectAuthenticatorAuthenticateValues & SelectAuthenticatorEnrollValues & ChallengeAuthenticatorValues & ReEnrollAuthenticatorValues & AuthenticatorEnrollmentDataValues & EnrollAuthenticatorValues;
|
|
15
|
-
export declare function authenticate(authClient:
|
|
15
|
+
export declare function authenticate(authClient: OktaAuthInterface, options?: AuthenticationOptions): Promise<IdxTransaction>;
|
|
@@ -1,12 +1,11 @@
|
|
|
1
|
-
import { RemediationValues } from '../remediators';
|
|
2
1
|
import { IdxAuthenticator, IdxRemediationValue } from '../types/idx-js';
|
|
3
2
|
export interface Credentials {
|
|
4
|
-
[key: string]: string;
|
|
3
|
+
[key: string]: string | undefined;
|
|
5
4
|
}
|
|
6
|
-
export declare abstract class Authenticator {
|
|
5
|
+
export declare abstract class Authenticator<Values> {
|
|
7
6
|
meta: IdxAuthenticator;
|
|
8
7
|
constructor(authenticator: IdxAuthenticator);
|
|
9
|
-
abstract canVerify(values:
|
|
10
|
-
abstract mapCredentials(values:
|
|
8
|
+
abstract canVerify(values: Values): boolean;
|
|
9
|
+
abstract mapCredentials(values: Values): Credentials;
|
|
11
10
|
abstract getInputs(idxRemediationValue: IdxRemediationValue): any;
|
|
12
11
|
}
|
|
@@ -1,11 +1,9 @@
|
|
|
1
|
-
import { Authenticator } from './Authenticator';
|
|
2
|
-
export
|
|
3
|
-
password
|
|
4
|
-
}
|
|
5
|
-
export declare class OktaPassword extends Authenticator {
|
|
6
|
-
canVerify(values:
|
|
7
|
-
mapCredentials(values:
|
|
8
|
-
passcode: any;
|
|
9
|
-
};
|
|
1
|
+
import { Authenticator, Credentials } from './Authenticator';
|
|
2
|
+
export interface OktaPasswordInputValues {
|
|
3
|
+
password?: string;
|
|
4
|
+
}
|
|
5
|
+
export declare class OktaPassword extends Authenticator<OktaPasswordInputValues> {
|
|
6
|
+
canVerify(values: OktaPasswordInputValues): boolean;
|
|
7
|
+
mapCredentials(values: OktaPasswordInputValues): Credentials;
|
|
10
8
|
getInputs(idxRemediationValue: any): any;
|
|
11
9
|
}
|
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
import { Authenticator } from './Authenticator';
|
|
2
|
-
export
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
1
|
+
import { Authenticator, Credentials } from './Authenticator';
|
|
2
|
+
export interface SecurityQuestionEnrollValues {
|
|
3
|
+
questionKey?: string;
|
|
4
|
+
question?: string;
|
|
5
|
+
answer?: string;
|
|
6
|
+
}
|
|
7
|
+
export declare class SecurityQuestionEnrollment extends Authenticator<SecurityQuestionEnrollValues> {
|
|
8
|
+
canVerify(values: SecurityQuestionEnrollValues): boolean;
|
|
9
|
+
mapCredentials(values: SecurityQuestionEnrollValues): Credentials;
|
|
9
10
|
getInputs(): ({
|
|
10
11
|
name: string;
|
|
11
12
|
type: string;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { Authenticator } from './Authenticator';
|
|
2
|
-
export
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
1
|
+
import { Authenticator, Credentials } from './Authenticator';
|
|
2
|
+
export interface SecurityQuestionVerificationValues {
|
|
3
|
+
answer?: string;
|
|
4
|
+
}
|
|
5
|
+
export declare class SecurityQuestionVerification extends Authenticator<SecurityQuestionVerificationValues> {
|
|
6
|
+
canVerify(values: SecurityQuestionVerificationValues): boolean;
|
|
7
|
+
mapCredentials(values: SecurityQuestionVerificationValues): Credentials;
|
|
8
8
|
getInputs(): {
|
|
9
9
|
name: string;
|
|
10
10
|
type: string;
|
|
@@ -1,9 +1,13 @@
|
|
|
1
1
|
import { Authenticator, Credentials } from './Authenticator';
|
|
2
|
+
export interface VerificationCodeValues {
|
|
3
|
+
verificationCode?: string;
|
|
4
|
+
otp?: string;
|
|
5
|
+
}
|
|
2
6
|
interface VerificationCodeCredentials extends Credentials {
|
|
3
7
|
passcode: string;
|
|
4
8
|
}
|
|
5
|
-
export declare class VerificationCodeAuthenticator extends Authenticator {
|
|
6
|
-
canVerify(values:
|
|
9
|
+
export declare class VerificationCodeAuthenticator extends Authenticator<VerificationCodeValues> {
|
|
10
|
+
canVerify(values: VerificationCodeValues): boolean;
|
|
7
11
|
mapCredentials(values: any): VerificationCodeCredentials | Credentials;
|
|
8
12
|
getInputs(idxRemediationValue: any): any;
|
|
9
13
|
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { Authenticator, Credentials } from './Authenticator';
|
|
2
|
+
export interface WebauthnEnrollValues {
|
|
3
|
+
clientData?: string;
|
|
4
|
+
attestation?: string;
|
|
5
|
+
}
|
|
6
|
+
export declare class WebauthnEnrollment extends Authenticator<WebauthnEnrollValues> {
|
|
7
|
+
canVerify(values: WebauthnEnrollValues): boolean;
|
|
8
|
+
mapCredentials(values: WebauthnEnrollValues): Credentials;
|
|
9
|
+
getInputs(): {
|
|
10
|
+
name: string;
|
|
11
|
+
type: string;
|
|
12
|
+
required: boolean;
|
|
13
|
+
visible: boolean;
|
|
14
|
+
label: string;
|
|
15
|
+
}[];
|
|
16
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { Authenticator, Credentials } from './Authenticator';
|
|
2
|
+
export interface WebauthnVerificationValues {
|
|
3
|
+
clientData?: string;
|
|
4
|
+
authenticatorData?: string;
|
|
5
|
+
signatureData?: string;
|
|
6
|
+
}
|
|
7
|
+
export declare class WebauthnVerification extends Authenticator<WebauthnVerificationValues> {
|
|
8
|
+
canVerify(values: WebauthnVerificationValues): boolean;
|
|
9
|
+
mapCredentials(values: WebauthnVerificationValues): Credentials;
|
|
10
|
+
getInputs(): {
|
|
11
|
+
name: string;
|
|
12
|
+
type: string;
|
|
13
|
+
label: string;
|
|
14
|
+
required: boolean;
|
|
15
|
+
visible: boolean;
|
|
16
|
+
}[];
|
|
17
|
+
}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { Authenticator } from './Authenticator';
|
|
2
2
|
import { IdxRemediation } from '../types/idx-js';
|
|
3
|
-
export declare function getAuthenticator(remediation: IdxRemediation): Authenticator
|
|
3
|
+
export declare function getAuthenticator(remediation: IdxRemediation): Authenticator<any>;
|
|
@@ -4,3 +4,12 @@ export * from './VerificationCodeAuthenticator';
|
|
|
4
4
|
export * from './OktaPassword';
|
|
5
5
|
export * from './SecurityQuestionEnrollment';
|
|
6
6
|
export * from './SecurityQuestionVerification';
|
|
7
|
+
export * from './WebauthnEnrollment';
|
|
8
|
+
export * from './WebauthnVerification';
|
|
9
|
+
import { OktaPasswordInputValues } from './OktaPassword';
|
|
10
|
+
import { SecurityQuestionEnrollValues } from './SecurityQuestionEnrollment';
|
|
11
|
+
import { SecurityQuestionVerificationValues } from './SecurityQuestionVerification';
|
|
12
|
+
import { VerificationCodeValues } from './VerificationCodeAuthenticator';
|
|
13
|
+
import { WebauthnEnrollValues } from './WebauthnEnrollment';
|
|
14
|
+
import { WebauthnVerificationValues } from './WebauthnVerification';
|
|
15
|
+
export declare type AuthenticatorValues = OktaPasswordInputValues & SecurityQuestionEnrollValues & SecurityQuestionVerificationValues & VerificationCodeValues & WebauthnEnrollValues & WebauthnVerificationValues;
|
package/lib/idx/cancel.d.ts
CHANGED
|
@@ -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, IdxOptions } from '../types';
|
|
13
13
|
export declare type CancelOptions = IdxOptions;
|
|
14
|
-
export declare function cancel(authClient:
|
|
14
|
+
export declare function cancel(authClient: OktaAuthInterface, options?: CancelOptions): Promise<import("./types").IdxTransaction>;
|
package/lib/idx/emailVerify.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 CustomError from '../errors/CustomError';
|
|
14
14
|
export interface EmailVerifyCallbackResponse {
|
|
15
15
|
state: string;
|
|
@@ -23,4 +23,4 @@ export declare class EmailVerifyCallbackError extends CustomError {
|
|
|
23
23
|
export declare function isEmailVerifyCallbackError(error: Error): boolean;
|
|
24
24
|
export declare function isEmailVerifyCallback(urlPath: string): boolean;
|
|
25
25
|
export declare function parseEmailVerifyCallback(urlPath: string): EmailVerifyCallbackResponse;
|
|
26
|
-
export declare function handleEmailVerifyCallback(authClient:
|
|
26
|
+
export declare function handleEmailVerifyCallback(authClient: OktaAuthInterface, search: string): Promise<import("./types").IdxTransaction | undefined>;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Copyright (c) 2015-present, Okta, Inc. and/or its affiliates. All rights reserved.
|
|
3
|
+
* The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.")
|
|
4
|
+
*
|
|
5
|
+
* You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.
|
|
6
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
7
|
+
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
|
8
|
+
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
9
|
+
*
|
|
10
|
+
* See the License for the specific language governing permissions and limitations under the License.
|
|
11
|
+
*/
|
|
12
|
+
import { RemediationFlow } from './RemediationFlow';
|
|
13
|
+
export declare const AccountUnlockFlow: RemediationFlow;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { OktaAuthInterface, FlowIdentifier } from '../../types';
|
|
2
2
|
import { RemediationFlow } from './RemediationFlow';
|
|
3
3
|
export interface FlowSpecification {
|
|
4
4
|
flow: FlowIdentifier;
|
|
@@ -6,4 +6,4 @@ export interface FlowSpecification {
|
|
|
6
6
|
actions?: string[];
|
|
7
7
|
withCredentials?: boolean;
|
|
8
8
|
}
|
|
9
|
-
export declare function getFlowSpecification(oktaAuth:
|
|
9
|
+
export declare function getFlowSpecification(oktaAuth: OktaAuthInterface, flow?: FlowIdentifier): FlowSpecification;
|
package/lib/idx/flow/index.d.ts
CHANGED
package/lib/idx/headers.d.ts
CHANGED
|
@@ -10,6 +10,7 @@
|
|
|
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 } from '../types';
|
|
14
14
|
export declare function setGlobalRequestInterceptor(fn: any): void;
|
|
15
|
-
export declare function
|
|
15
|
+
export declare function clearGlobalRequestInterceptor(): void;
|
|
16
|
+
export declare function createGlobalRequestInterceptor(sdk: OktaAuthInterface): (requestConfig: any) => void;
|
|
@@ -0,0 +1,36 @@
|
|
|
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
|
+
/**
|
|
13
|
+
* Reusable interceptor interface
|
|
14
|
+
*/
|
|
15
|
+
export declare class Interceptor {
|
|
16
|
+
handlers: never[];
|
|
17
|
+
use(before: any): void;
|
|
18
|
+
clear(): void;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* Singleton instance of the IdX HTTP Client
|
|
22
|
+
*
|
|
23
|
+
* Invoke the `use` method to add a new interceptor:
|
|
24
|
+
* - client.interceptors.request.use((requestConfig) => { some logic });
|
|
25
|
+
*/
|
|
26
|
+
export declare const HttpClient: {
|
|
27
|
+
interceptors: {
|
|
28
|
+
request: Interceptor;
|
|
29
|
+
};
|
|
30
|
+
};
|
|
31
|
+
export declare const request: (target: any, { method, headers, credentials, body }: {
|
|
32
|
+
method?: string | undefined;
|
|
33
|
+
headers?: {} | undefined;
|
|
34
|
+
credentials?: string | undefined;
|
|
35
|
+
body: any;
|
|
36
|
+
}) => Promise<Response>;
|
|
@@ -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;
|