@okta/okta-auth-js 6.4.3 → 6.5.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 +11 -0
- package/README.md +1 -1
- package/cjs/OktaUserAgent.js +2 -2
- package/cjs/idx/flow/AuthenticationFlow.js.map +1 -1
- package/cjs/idx/idxState/v1/idxResponseParser.js +10 -5
- package/cjs/idx/idxState/v1/idxResponseParser.js.map +1 -1
- package/cjs/idx/idxState/v1/makeIdxState.js +6 -0
- package/cjs/idx/idxState/v1/makeIdxState.js.map +1 -1
- package/cjs/idx/interact.js +16 -16
- package/cjs/idx/interact.js.map +1 -1
- package/cjs/idx/remediate.js +9 -9
- package/cjs/idx/remediate.js.map +1 -1
- package/cjs/idx/remediators/AuthenticatorEnrollmentData.js +17 -8
- package/cjs/idx/remediators/AuthenticatorEnrollmentData.js.map +1 -1
- package/cjs/idx/remediators/AuthenticatorVerificationData.js +2 -1
- package/cjs/idx/remediators/AuthenticatorVerificationData.js.map +1 -1
- package/cjs/idx/remediators/Base/AuthenticatorData.js +4 -3
- package/cjs/idx/remediators/Base/AuthenticatorData.js.map +1 -1
- package/cjs/idx/remediators/Base/Remediator.js +1 -1
- package/cjs/idx/remediators/Base/Remediator.js.map +1 -1
- package/cjs/idx/remediators/Base/SelectAuthenticator.js +20 -7
- package/cjs/idx/remediators/Base/SelectAuthenticator.js.map +1 -1
- package/cjs/idx/remediators/Base/VerifyAuthenticator.js +2 -2
- package/cjs/idx/remediators/Base/VerifyAuthenticator.js.map +1 -1
- package/cjs/idx/remediators/EnrollPoll.js +2 -2
- package/cjs/idx/remediators/EnrollPoll.js.map +1 -1
- package/cjs/idx/remediators/EnrollmentChannelData.js +2 -2
- package/cjs/idx/remediators/EnrollmentChannelData.js.map +1 -1
- package/cjs/idx/remediators/GenericRemediator/GenericRemediator.js +103 -0
- package/cjs/idx/remediators/GenericRemediator/GenericRemediator.js.map +1 -0
- package/cjs/idx/remediators/GenericRemediator/index.js +17 -0
- package/cjs/idx/remediators/GenericRemediator/index.js.map +1 -0
- package/cjs/idx/remediators/GenericRemediator/util.js +81 -0
- package/cjs/idx/remediators/GenericRemediator/util.js.map +1 -0
- package/cjs/idx/remediators/Identify.js.map +1 -1
- package/cjs/idx/remediators/SelectAuthenticatorAuthenticate.js.map +1 -1
- package/cjs/idx/remediators/SelectAuthenticatorUnlockAccount.js +1 -1
- package/cjs/idx/remediators/SelectAuthenticatorUnlockAccount.js.map +1 -1
- package/cjs/idx/remediators/SelectEnrollmentChannel.js +3 -2
- package/cjs/idx/remediators/SelectEnrollmentChannel.js.map +1 -1
- package/cjs/idx/remediators/index.js +13 -0
- package/cjs/idx/remediators/index.js.map +1 -1
- package/cjs/idx/run.js +21 -12
- package/cjs/idx/run.js.map +1 -1
- package/cjs/idx/transactionMeta.js +4 -2
- package/cjs/idx/transactionMeta.js.map +1 -1
- package/cjs/idx/types/api.js.map +1 -1
- package/cjs/idx/types/idx-js.js.map +1 -1
- package/cjs/idx/types/index.js.map +1 -1
- package/cjs/idx/util.js +58 -10
- package/cjs/idx/util.js.map +1 -1
- package/cjs/options/index.js +6 -0
- package/cjs/options/index.js.map +1 -1
- package/dist/okta-auth-js.min.js +1 -1
- package/dist/okta-auth-js.min.js.map +1 -1
- package/dist/okta-auth-js.umd.js +1 -1
- package/dist/okta-auth-js.umd.js.map +1 -1
- package/esm/esm.browser.js +477 -239
- package/esm/esm.browser.js.map +1 -1
- package/esm/esm.node.mjs +477 -239
- package/esm/esm.node.mjs.map +1 -1
- package/lib/idx/interact.d.ts +1 -0
- package/lib/idx/remediate.d.ts +2 -1
- package/lib/idx/remediators/AuthenticatorEnrollmentData.d.ts +1 -11
- package/lib/idx/remediators/AuthenticatorVerificationData.d.ts +1 -0
- package/lib/idx/remediators/Base/AuthenticatorData.d.ts +5 -1
- package/lib/idx/remediators/Base/Remediator.d.ts +4 -3
- package/lib/idx/remediators/Base/SelectAuthenticator.d.ts +8 -3
- package/lib/idx/remediators/Base/VerifyAuthenticator.d.ts +2 -1
- package/lib/idx/remediators/EnrollPoll.d.ts +2 -2
- package/lib/idx/remediators/EnrollmentChannelData.d.ts +7 -3
- package/lib/idx/remediators/GenericRemediator/GenericRemediator.d.ts +9 -0
- package/lib/idx/remediators/GenericRemediator/index.d.ts +1 -0
- package/lib/idx/remediators/GenericRemediator/util.d.ts +3 -0
- package/lib/idx/remediators/SelectAuthenticatorUnlockAccount.d.ts +1 -1
- package/lib/idx/remediators/SelectEnrollmentChannel.d.ts +7 -3
- package/lib/idx/remediators/index.d.ts +1 -0
- package/lib/idx/types/api.d.ts +8 -2
- package/lib/idx/types/idx-js.d.ts +6 -2
- package/lib/idx/types/index.d.ts +1 -1
- package/lib/idx/types/options.d.ts +2 -0
- package/lib/idx/util.d.ts +4 -3
- package/lib/types/OktaAuthOptions.d.ts +1 -0
- package/package.json +6 -5
package/esm/esm.browser.js
CHANGED
|
@@ -58,11 +58,11 @@ import _Number$isInteger from '@babel/runtime-corejs3/core-js-stable/number/is-i
|
|
|
58
58
|
import _URL2 from '@babel/runtime-corejs3/core-js-stable/url';
|
|
59
59
|
import Emitter from 'tiny-emitter';
|
|
60
60
|
|
|
61
|
-
function _createSuper$
|
|
62
|
-
function _isNativeReflectConstruct$
|
|
61
|
+
function _createSuper$y(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$y(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = _Reflect$construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
62
|
+
function _isNativeReflectConstruct$y() { if (typeof Reflect === "undefined" || !_Reflect$construct) return false; if (_Reflect$construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(_Reflect$construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
63
63
|
var CustomError = function (_Error) {
|
|
64
64
|
_inherits(CustomError, _Error);
|
|
65
|
-
var _super = _createSuper$
|
|
65
|
+
var _super = _createSuper$y(CustomError);
|
|
66
66
|
function CustomError(message) {
|
|
67
67
|
var _this;
|
|
68
68
|
_classCallCheck(this, CustomError);
|
|
@@ -73,11 +73,11 @@ var CustomError = function (_Error) {
|
|
|
73
73
|
return CustomError;
|
|
74
74
|
}( _wrapNativeSuper(Error));
|
|
75
75
|
|
|
76
|
-
function _createSuper$
|
|
77
|
-
function _isNativeReflectConstruct$
|
|
76
|
+
function _createSuper$x(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$x(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = _Reflect$construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
77
|
+
function _isNativeReflectConstruct$x() { if (typeof Reflect === "undefined" || !_Reflect$construct) return false; if (_Reflect$construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(_Reflect$construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
78
78
|
var AuthApiError = function (_CustomError) {
|
|
79
79
|
_inherits(AuthApiError, _CustomError);
|
|
80
|
-
var _super = _createSuper$
|
|
80
|
+
var _super = _createSuper$x(AuthApiError);
|
|
81
81
|
function AuthApiError(err, xhr) {
|
|
82
82
|
var _this;
|
|
83
83
|
_classCallCheck(this, AuthApiError);
|
|
@@ -97,11 +97,11 @@ var AuthApiError = function (_CustomError) {
|
|
|
97
97
|
return AuthApiError;
|
|
98
98
|
}(CustomError);
|
|
99
99
|
|
|
100
|
-
function _createSuper$
|
|
101
|
-
function _isNativeReflectConstruct$
|
|
100
|
+
function _createSuper$w(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$w(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = _Reflect$construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
101
|
+
function _isNativeReflectConstruct$w() { if (typeof Reflect === "undefined" || !_Reflect$construct) return false; if (_Reflect$construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(_Reflect$construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
102
102
|
var AuthPollStopError = function (_CustomError) {
|
|
103
103
|
_inherits(AuthPollStopError, _CustomError);
|
|
104
|
-
var _super = _createSuper$
|
|
104
|
+
var _super = _createSuper$w(AuthPollStopError);
|
|
105
105
|
function AuthPollStopError() {
|
|
106
106
|
_classCallCheck(this, AuthPollStopError);
|
|
107
107
|
var message = 'The poll was stopped by the sdk';
|
|
@@ -110,11 +110,11 @@ var AuthPollStopError = function (_CustomError) {
|
|
|
110
110
|
return AuthPollStopError;
|
|
111
111
|
}(CustomError);
|
|
112
112
|
|
|
113
|
-
function _createSuper$
|
|
114
|
-
function _isNativeReflectConstruct$
|
|
113
|
+
function _createSuper$v(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$v(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = _Reflect$construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
114
|
+
function _isNativeReflectConstruct$v() { if (typeof Reflect === "undefined" || !_Reflect$construct) return false; if (_Reflect$construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(_Reflect$construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
115
115
|
var AuthSdkError = function (_CustomError) {
|
|
116
116
|
_inherits(AuthSdkError, _CustomError);
|
|
117
|
-
var _super = _createSuper$
|
|
117
|
+
var _super = _createSuper$v(AuthSdkError);
|
|
118
118
|
function AuthSdkError(msg, xhr) {
|
|
119
119
|
var _this;
|
|
120
120
|
_classCallCheck(this, AuthSdkError);
|
|
@@ -133,11 +133,11 @@ var AuthSdkError = function (_CustomError) {
|
|
|
133
133
|
return AuthSdkError;
|
|
134
134
|
}(CustomError);
|
|
135
135
|
|
|
136
|
-
function _createSuper$
|
|
137
|
-
function _isNativeReflectConstruct$
|
|
136
|
+
function _createSuper$u(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$u(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = _Reflect$construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
137
|
+
function _isNativeReflectConstruct$u() { if (typeof Reflect === "undefined" || !_Reflect$construct) return false; if (_Reflect$construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(_Reflect$construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
138
138
|
var OAuthError = function (_CustomError) {
|
|
139
139
|
_inherits(OAuthError, _CustomError);
|
|
140
|
-
var _super = _createSuper$
|
|
140
|
+
var _super = _createSuper$u(OAuthError);
|
|
141
141
|
function OAuthError(errorCode, summary) {
|
|
142
142
|
var _this;
|
|
143
143
|
_classCallCheck(this, OAuthError);
|
|
@@ -4658,6 +4658,7 @@ function mergeOptions(options, args) {
|
|
|
4658
4658
|
}
|
|
4659
4659
|
function buildOptions() {
|
|
4660
4660
|
var args = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
4661
|
+
var _a;
|
|
4661
4662
|
assertValidConfig(args);
|
|
4662
4663
|
args = mergeOptions(getDefaultOptions(), args);
|
|
4663
4664
|
return removeNils({
|
|
@@ -4691,6 +4692,9 @@ function buildOptions() {
|
|
|
4691
4692
|
codeChallengeMethod: args.codeChallengeMethod,
|
|
4692
4693
|
recoveryToken: args.recoveryToken,
|
|
4693
4694
|
activationToken: args.activationToken,
|
|
4695
|
+
idx: {
|
|
4696
|
+
useGenericRemediator: !!((_a = args.idx) === null || _a === void 0 ? void 0 : _a.useGenericRemediator)
|
|
4697
|
+
},
|
|
4694
4698
|
ignoreSignature: !!args.ignoreSignature,
|
|
4695
4699
|
clientSecret: args.clientSecret
|
|
4696
4700
|
});
|
|
@@ -4713,6 +4717,8 @@ function _createTransactionMeta() {
|
|
|
4713
4717
|
activationToken,
|
|
4714
4718
|
_Object$assign2$recov,
|
|
4715
4719
|
recoveryToken,
|
|
4720
|
+
_Object$assign2$maxAg,
|
|
4721
|
+
maxAge,
|
|
4716
4722
|
meta,
|
|
4717
4723
|
_args = arguments;
|
|
4718
4724
|
return _regeneratorRuntime.wrap(function _callee$(_context) {
|
|
@@ -4725,12 +4731,13 @@ function _createTransactionMeta() {
|
|
|
4725
4731
|
case 3:
|
|
4726
4732
|
tokenParams = _context.sent;
|
|
4727
4733
|
pkceMeta = createOAuthMeta(authClient, tokenParams);
|
|
4728
|
-
_Object$assign2 = _Object$assign(_Object$assign({}, authClient.options), options), _Object$assign2$flow = _Object$assign2.flow, flow = _Object$assign2$flow === void 0 ? 'default' : _Object$assign2$flow, _Object$assign2$withC = _Object$assign2.withCredentials, withCredentials = _Object$assign2$withC === void 0 ? true : _Object$assign2$withC, _Object$assign2$activ = _Object$assign2.activationToken, activationToken = _Object$assign2$activ === void 0 ? undefined : _Object$assign2$activ, _Object$assign2$recov = _Object$assign2.recoveryToken, recoveryToken = _Object$assign2$recov === void 0 ? undefined : _Object$assign2$recov;
|
|
4734
|
+
_Object$assign2 = _Object$assign(_Object$assign({}, authClient.options), options), _Object$assign2$flow = _Object$assign2.flow, flow = _Object$assign2$flow === void 0 ? 'default' : _Object$assign2$flow, _Object$assign2$withC = _Object$assign2.withCredentials, withCredentials = _Object$assign2$withC === void 0 ? true : _Object$assign2$withC, _Object$assign2$activ = _Object$assign2.activationToken, activationToken = _Object$assign2$activ === void 0 ? undefined : _Object$assign2$activ, _Object$assign2$recov = _Object$assign2.recoveryToken, recoveryToken = _Object$assign2$recov === void 0 ? undefined : _Object$assign2$recov, _Object$assign2$maxAg = _Object$assign2.maxAge, maxAge = _Object$assign2$maxAg === void 0 ? undefined : _Object$assign2$maxAg;
|
|
4729
4735
|
meta = _Object$assign(_Object$assign({}, pkceMeta), {
|
|
4730
4736
|
flow: flow,
|
|
4731
4737
|
withCredentials: withCredentials,
|
|
4732
4738
|
activationToken: activationToken,
|
|
4733
|
-
recoveryToken: recoveryToken
|
|
4739
|
+
recoveryToken: recoveryToken,
|
|
4740
|
+
maxAge: maxAge
|
|
4734
4741
|
});
|
|
4735
4742
|
return _context.abrupt("return", meta);
|
|
4736
4743
|
case 8:
|
|
@@ -4858,6 +4865,7 @@ function _interact() {
|
|
|
4858
4865
|
codeChallengeMethod,
|
|
4859
4866
|
activationToken,
|
|
4860
4867
|
recoveryToken,
|
|
4868
|
+
maxAge,
|
|
4861
4869
|
clientSecret,
|
|
4862
4870
|
url,
|
|
4863
4871
|
params,
|
|
@@ -4884,31 +4892,30 @@ function _interact() {
|
|
|
4884
4892
|
case 7:
|
|
4885
4893
|
meta = _context.sent;
|
|
4886
4894
|
baseUrl = getOAuthBaseUrl(authClient);
|
|
4887
|
-
_meta = meta, clientId = _meta.clientId, redirectUri = _meta.redirectUri, state = _meta.state, scopes = _meta.scopes, withCredentials = _meta.withCredentials, codeChallenge = _meta.codeChallenge, codeChallengeMethod = _meta.codeChallengeMethod, activationToken = _meta.activationToken, recoveryToken = _meta.recoveryToken;
|
|
4895
|
+
_meta = meta, clientId = _meta.clientId, redirectUri = _meta.redirectUri, state = _meta.state, scopes = _meta.scopes, withCredentials = _meta.withCredentials, codeChallenge = _meta.codeChallenge, codeChallengeMethod = _meta.codeChallengeMethod, activationToken = _meta.activationToken, recoveryToken = _meta.recoveryToken, maxAge = _meta.maxAge;
|
|
4888
4896
|
clientSecret = options.clientSecret || authClient.options.clientSecret;
|
|
4889
4897
|
withCredentials = withCredentials !== null && withCredentials !== void 0 ? withCredentials : true;
|
|
4890
4898
|
url = "".concat(baseUrl, "/v1/interact");
|
|
4891
|
-
params = {
|
|
4899
|
+
params = _Object$assign(_Object$assign(_Object$assign(_Object$assign({
|
|
4892
4900
|
client_id: clientId,
|
|
4893
4901
|
scope: scopes.join(' '),
|
|
4894
4902
|
redirect_uri: redirectUri,
|
|
4895
4903
|
code_challenge: codeChallenge,
|
|
4896
4904
|
code_challenge_method: codeChallengeMethod,
|
|
4897
4905
|
state: state
|
|
4898
|
-
}
|
|
4899
|
-
|
|
4900
|
-
|
|
4901
|
-
|
|
4902
|
-
|
|
4903
|
-
|
|
4904
|
-
}
|
|
4905
|
-
|
|
4906
|
-
|
|
4907
|
-
}
|
|
4906
|
+
}, activationToken && {
|
|
4907
|
+
activation_token: activationToken
|
|
4908
|
+
}), recoveryToken && {
|
|
4909
|
+
recovery_token: recoveryToken
|
|
4910
|
+
}), clientSecret && {
|
|
4911
|
+
client_secret: clientSecret
|
|
4912
|
+
}), maxAge && {
|
|
4913
|
+
max_age: maxAge
|
|
4914
|
+
});
|
|
4908
4915
|
headers = {
|
|
4909
4916
|
'Content-Type': 'application/x-www-form-urlencoded'
|
|
4910
4917
|
};
|
|
4911
|
-
_context.next =
|
|
4918
|
+
_context.next = 17;
|
|
4912
4919
|
return httpRequest(authClient, {
|
|
4913
4920
|
method: 'POST',
|
|
4914
4921
|
url: url,
|
|
@@ -4916,7 +4923,7 @@ function _interact() {
|
|
|
4916
4923
|
withCredentials: withCredentials,
|
|
4917
4924
|
args: params
|
|
4918
4925
|
});
|
|
4919
|
-
case
|
|
4926
|
+
case 17:
|
|
4920
4927
|
resp = _context.sent;
|
|
4921
4928
|
interactionHandle = resp.interaction_handle;
|
|
4922
4929
|
newMeta = _Object$assign(_Object$assign({}, meta), {
|
|
@@ -4929,7 +4936,7 @@ function _interact() {
|
|
|
4929
4936
|
});
|
|
4930
4937
|
saveTransactionMeta(authClient, newMeta);
|
|
4931
4938
|
return _context.abrupt("return", getResponse(newMeta));
|
|
4932
|
-
case
|
|
4939
|
+
case 22:
|
|
4933
4940
|
case "end":
|
|
4934
4941
|
return _context.stop();
|
|
4935
4942
|
}
|
|
@@ -5177,11 +5184,14 @@ var expandRelatesTo = function expandRelatesTo(idxResponse, value) {
|
|
|
5177
5184
|
});
|
|
5178
5185
|
};
|
|
5179
5186
|
var convertRemediationAction = function convertRemediationAction(authClient, remediation, toPersist) {
|
|
5180
|
-
|
|
5181
|
-
|
|
5182
|
-
|
|
5183
|
-
|
|
5184
|
-
|
|
5187
|
+
if (remediation.rel) {
|
|
5188
|
+
var remediationActions = generateRemediationFunctions(authClient, [remediation], toPersist);
|
|
5189
|
+
var actionFn = remediationActions[remediation.name];
|
|
5190
|
+
return _Object$assign(_Object$assign({}, remediation), {
|
|
5191
|
+
action: actionFn
|
|
5192
|
+
});
|
|
5193
|
+
}
|
|
5194
|
+
return remediation;
|
|
5185
5195
|
};
|
|
5186
5196
|
var parseIdxResponse = function parseIdxResponse(authClient, idxResponse) {
|
|
5187
5197
|
var toPersist = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
|
|
@@ -5215,6 +5225,7 @@ function makeIdxState$1(authClient, idxResponse, toPersist, requestDidSucceed) {
|
|
|
5215
5225
|
var _ref = _asyncToGenerator( _regeneratorRuntime.mark(function _callee(remediationChoice) {
|
|
5216
5226
|
var paramsFromUser,
|
|
5217
5227
|
remediationChoiceObject,
|
|
5228
|
+
actionFn,
|
|
5218
5229
|
_args = arguments;
|
|
5219
5230
|
return _regeneratorRuntime.wrap(function _callee$(_context) {
|
|
5220
5231
|
while (1) {
|
|
@@ -5230,8 +5241,15 @@ function makeIdxState$1(authClient, idxResponse, toPersist, requestDidSucceed) {
|
|
|
5230
5241
|
}
|
|
5231
5242
|
return _context.abrupt("return", _Promise.reject("Unknown remediation choice: [".concat(remediationChoice, "]")));
|
|
5232
5243
|
case 4:
|
|
5244
|
+
actionFn = remediationChoiceObject.action;
|
|
5245
|
+
if (!(typeof actionFn !== 'function')) {
|
|
5246
|
+
_context.next = 7;
|
|
5247
|
+
break;
|
|
5248
|
+
}
|
|
5249
|
+
return _context.abrupt("return", _Promise.reject("Current remediation cannot make form submit action: [".concat(remediationChoice, "]")));
|
|
5250
|
+
case 7:
|
|
5233
5251
|
return _context.abrupt("return", remediationChoiceObject.action(paramsFromUser));
|
|
5234
|
-
case
|
|
5252
|
+
case 8:
|
|
5235
5253
|
case "end":
|
|
5236
5254
|
return _context.stop();
|
|
5237
5255
|
}
|
|
@@ -5562,7 +5580,7 @@ var Remediator = function () {
|
|
|
5562
5580
|
}
|
|
5563
5581
|
}, {
|
|
5564
5582
|
key: "getNextStep",
|
|
5565
|
-
value: function getNextStep(_context) {
|
|
5583
|
+
value: function getNextStep(_authClient, _context) {
|
|
5566
5584
|
var name = this.getName();
|
|
5567
5585
|
var inputs = this.getInputs();
|
|
5568
5586
|
var authenticator = this.getAuthenticator();
|
|
@@ -5699,11 +5717,11 @@ var Authenticator = function Authenticator(authenticator) {
|
|
|
5699
5717
|
this.meta = authenticator;
|
|
5700
5718
|
};
|
|
5701
5719
|
|
|
5702
|
-
function _createSuper$
|
|
5703
|
-
function _isNativeReflectConstruct$
|
|
5720
|
+
function _createSuper$t(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$t(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = _Reflect$construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
5721
|
+
function _isNativeReflectConstruct$t() { if (typeof Reflect === "undefined" || !_Reflect$construct) return false; if (_Reflect$construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(_Reflect$construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
5704
5722
|
var VerificationCodeAuthenticator = function (_Authenticator) {
|
|
5705
5723
|
_inherits(VerificationCodeAuthenticator, _Authenticator);
|
|
5706
|
-
var _super = _createSuper$
|
|
5724
|
+
var _super = _createSuper$t(VerificationCodeAuthenticator);
|
|
5707
5725
|
function VerificationCodeAuthenticator() {
|
|
5708
5726
|
_classCallCheck(this, VerificationCodeAuthenticator);
|
|
5709
5727
|
return _super.apply(this, arguments);
|
|
@@ -5740,11 +5758,11 @@ var VerificationCodeAuthenticator = function (_Authenticator) {
|
|
|
5740
5758
|
return VerificationCodeAuthenticator;
|
|
5741
5759
|
}(Authenticator);
|
|
5742
5760
|
|
|
5743
|
-
function _createSuper$
|
|
5744
|
-
function _isNativeReflectConstruct$
|
|
5761
|
+
function _createSuper$s(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$s(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = _Reflect$construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
5762
|
+
function _isNativeReflectConstruct$s() { if (typeof Reflect === "undefined" || !_Reflect$construct) return false; if (_Reflect$construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(_Reflect$construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
5745
5763
|
var OktaVerifyTotp = function (_VerificationCodeAuth) {
|
|
5746
5764
|
_inherits(OktaVerifyTotp, _VerificationCodeAuth);
|
|
5747
|
-
var _super = _createSuper$
|
|
5765
|
+
var _super = _createSuper$s(OktaVerifyTotp);
|
|
5748
5766
|
function OktaVerifyTotp() {
|
|
5749
5767
|
_classCallCheck(this, OktaVerifyTotp);
|
|
5750
5768
|
return _super.apply(this, arguments);
|
|
@@ -5764,11 +5782,11 @@ var OktaVerifyTotp = function (_VerificationCodeAuth) {
|
|
|
5764
5782
|
return OktaVerifyTotp;
|
|
5765
5783
|
}(VerificationCodeAuthenticator);
|
|
5766
5784
|
|
|
5767
|
-
function _createSuper$
|
|
5768
|
-
function _isNativeReflectConstruct$
|
|
5785
|
+
function _createSuper$r(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$r(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = _Reflect$construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
5786
|
+
function _isNativeReflectConstruct$r() { if (typeof Reflect === "undefined" || !_Reflect$construct) return false; if (_Reflect$construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(_Reflect$construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
5769
5787
|
var OktaPassword = function (_Authenticator) {
|
|
5770
5788
|
_inherits(OktaPassword, _Authenticator);
|
|
5771
|
-
var _super = _createSuper$
|
|
5789
|
+
var _super = _createSuper$r(OktaPassword);
|
|
5772
5790
|
function OktaPassword() {
|
|
5773
5791
|
_classCallCheck(this, OktaPassword);
|
|
5774
5792
|
return _super.apply(this, arguments);
|
|
@@ -5804,11 +5822,11 @@ var OktaPassword = function (_Authenticator) {
|
|
|
5804
5822
|
return OktaPassword;
|
|
5805
5823
|
}(Authenticator);
|
|
5806
5824
|
|
|
5807
|
-
function _createSuper$
|
|
5808
|
-
function _isNativeReflectConstruct$
|
|
5825
|
+
function _createSuper$q(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$q(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = _Reflect$construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
5826
|
+
function _isNativeReflectConstruct$q() { if (typeof Reflect === "undefined" || !_Reflect$construct) return false; if (_Reflect$construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(_Reflect$construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
5809
5827
|
var SecurityQuestionEnrollment = function (_Authenticator) {
|
|
5810
5828
|
_inherits(SecurityQuestionEnrollment, _Authenticator);
|
|
5811
|
-
var _super = _createSuper$
|
|
5829
|
+
var _super = _createSuper$q(SecurityQuestionEnrollment);
|
|
5812
5830
|
function SecurityQuestionEnrollment() {
|
|
5813
5831
|
_classCallCheck(this, SecurityQuestionEnrollment);
|
|
5814
5832
|
return _super.apply(this, arguments);
|
|
@@ -5862,11 +5880,11 @@ var SecurityQuestionEnrollment = function (_Authenticator) {
|
|
|
5862
5880
|
return SecurityQuestionEnrollment;
|
|
5863
5881
|
}(Authenticator);
|
|
5864
5882
|
|
|
5865
|
-
function _createSuper$
|
|
5866
|
-
function _isNativeReflectConstruct$
|
|
5883
|
+
function _createSuper$p(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$p(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = _Reflect$construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
5884
|
+
function _isNativeReflectConstruct$p() { if (typeof Reflect === "undefined" || !_Reflect$construct) return false; if (_Reflect$construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(_Reflect$construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
5867
5885
|
var SecurityQuestionVerification = function (_Authenticator) {
|
|
5868
5886
|
_inherits(SecurityQuestionVerification, _Authenticator);
|
|
5869
|
-
var _super = _createSuper$
|
|
5887
|
+
var _super = _createSuper$p(SecurityQuestionVerification);
|
|
5870
5888
|
function SecurityQuestionVerification() {
|
|
5871
5889
|
_classCallCheck(this, SecurityQuestionVerification);
|
|
5872
5890
|
return _super.apply(this, arguments);
|
|
@@ -5907,11 +5925,11 @@ var SecurityQuestionVerification = function (_Authenticator) {
|
|
|
5907
5925
|
return SecurityQuestionVerification;
|
|
5908
5926
|
}(Authenticator);
|
|
5909
5927
|
|
|
5910
|
-
function _createSuper$
|
|
5911
|
-
function _isNativeReflectConstruct$
|
|
5928
|
+
function _createSuper$o(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$o(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = _Reflect$construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
5929
|
+
function _isNativeReflectConstruct$o() { if (typeof Reflect === "undefined" || !_Reflect$construct) return false; if (_Reflect$construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(_Reflect$construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
5912
5930
|
var WebauthnEnrollment = function (_Authenticator) {
|
|
5913
5931
|
_inherits(WebauthnEnrollment, _Authenticator);
|
|
5914
|
-
var _super = _createSuper$
|
|
5932
|
+
var _super = _createSuper$o(WebauthnEnrollment);
|
|
5915
5933
|
function WebauthnEnrollment() {
|
|
5916
5934
|
_classCallCheck(this, WebauthnEnrollment);
|
|
5917
5935
|
return _super.apply(this, arguments);
|
|
@@ -5957,11 +5975,11 @@ var WebauthnEnrollment = function (_Authenticator) {
|
|
|
5957
5975
|
return WebauthnEnrollment;
|
|
5958
5976
|
}(Authenticator);
|
|
5959
5977
|
|
|
5960
|
-
function _createSuper$
|
|
5961
|
-
function _isNativeReflectConstruct$
|
|
5978
|
+
function _createSuper$n(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$n(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = _Reflect$construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
5979
|
+
function _isNativeReflectConstruct$n() { if (typeof Reflect === "undefined" || !_Reflect$construct) return false; if (_Reflect$construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(_Reflect$construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
5962
5980
|
var WebauthnVerification = function (_Authenticator) {
|
|
5963
5981
|
_inherits(WebauthnVerification, _Authenticator);
|
|
5964
|
-
var _super = _createSuper$
|
|
5982
|
+
var _super = _createSuper$n(WebauthnVerification);
|
|
5965
5983
|
function WebauthnVerification() {
|
|
5966
5984
|
_classCallCheck(this, WebauthnVerification);
|
|
5967
5985
|
return _super.apply(this, arguments);
|
|
@@ -6042,11 +6060,11 @@ function getAuthenticator(remediation) {
|
|
|
6042
6060
|
}
|
|
6043
6061
|
}
|
|
6044
6062
|
|
|
6045
|
-
function _createSuper$
|
|
6046
|
-
function _isNativeReflectConstruct$
|
|
6063
|
+
function _createSuper$m(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$m(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = _Reflect$construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
6064
|
+
function _isNativeReflectConstruct$m() { if (typeof Reflect === "undefined" || !_Reflect$construct) return false; if (_Reflect$construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(_Reflect$construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
6047
6065
|
var VerifyAuthenticator = function (_Remediator) {
|
|
6048
6066
|
_inherits(VerifyAuthenticator, _Remediator);
|
|
6049
|
-
var _super = _createSuper$
|
|
6067
|
+
var _super = _createSuper$m(VerifyAuthenticator);
|
|
6050
6068
|
function VerifyAuthenticator(remediation) {
|
|
6051
6069
|
var _this;
|
|
6052
6070
|
var values = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
@@ -6057,9 +6075,9 @@ var VerifyAuthenticator = function (_Remediator) {
|
|
|
6057
6075
|
}
|
|
6058
6076
|
_createClass(VerifyAuthenticator, [{
|
|
6059
6077
|
key: "getNextStep",
|
|
6060
|
-
value: function getNextStep(context) {
|
|
6078
|
+
value: function getNextStep(authClient, context) {
|
|
6061
6079
|
var _a;
|
|
6062
|
-
var nextStep = _get(_getPrototypeOf(VerifyAuthenticator.prototype), "getNextStep", this).call(this, context);
|
|
6080
|
+
var nextStep = _get(_getPrototypeOf(VerifyAuthenticator.prototype), "getNextStep", this).call(this, authClient, context);
|
|
6063
6081
|
var authenticatorEnrollments = (_a = context === null || context === void 0 ? void 0 : context.authenticatorEnrollments) === null || _a === void 0 ? void 0 : _a.value;
|
|
6064
6082
|
return _Object$assign(_Object$assign({}, nextStep), {
|
|
6065
6083
|
authenticatorEnrollments: authenticatorEnrollments
|
|
@@ -6097,11 +6115,11 @@ var VerifyAuthenticator = function (_Remediator) {
|
|
|
6097
6115
|
return VerifyAuthenticator;
|
|
6098
6116
|
}(Remediator);
|
|
6099
6117
|
|
|
6100
|
-
function _createSuper$
|
|
6101
|
-
function _isNativeReflectConstruct$
|
|
6118
|
+
function _createSuper$l(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$l(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = _Reflect$construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
6119
|
+
function _isNativeReflectConstruct$l() { if (typeof Reflect === "undefined" || !_Reflect$construct) return false; if (_Reflect$construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(_Reflect$construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
6102
6120
|
var EnrollAuthenticator = function (_VerifyAuthenticator) {
|
|
6103
6121
|
_inherits(EnrollAuthenticator, _VerifyAuthenticator);
|
|
6104
|
-
var _super = _createSuper$
|
|
6122
|
+
var _super = _createSuper$l(EnrollAuthenticator);
|
|
6105
6123
|
function EnrollAuthenticator() {
|
|
6106
6124
|
_classCallCheck(this, EnrollAuthenticator);
|
|
6107
6125
|
return _super.apply(this, arguments);
|
|
@@ -6110,11 +6128,11 @@ var EnrollAuthenticator = function (_VerifyAuthenticator) {
|
|
|
6110
6128
|
}(VerifyAuthenticator);
|
|
6111
6129
|
EnrollAuthenticator.remediationName = 'enroll-authenticator';
|
|
6112
6130
|
|
|
6113
|
-
function _createSuper$
|
|
6114
|
-
function _isNativeReflectConstruct$
|
|
6131
|
+
function _createSuper$k(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$k(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = _Reflect$construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
6132
|
+
function _isNativeReflectConstruct$k() { if (typeof Reflect === "undefined" || !_Reflect$construct) return false; if (_Reflect$construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(_Reflect$construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
6115
6133
|
var EnrollPoll = function (_Remediator) {
|
|
6116
6134
|
_inherits(EnrollPoll, _Remediator);
|
|
6117
|
-
var _super = _createSuper$
|
|
6135
|
+
var _super = _createSuper$k(EnrollPoll);
|
|
6118
6136
|
function EnrollPoll() {
|
|
6119
6137
|
_classCallCheck(this, EnrollPoll);
|
|
6120
6138
|
return _super.apply(this, arguments);
|
|
@@ -6126,8 +6144,8 @@ var EnrollPoll = function (_Remediator) {
|
|
|
6126
6144
|
}
|
|
6127
6145
|
}, {
|
|
6128
6146
|
key: "getNextStep",
|
|
6129
|
-
value: function getNextStep(context) {
|
|
6130
|
-
var common = _get(_getPrototypeOf(EnrollPoll.prototype), "getNextStep", this).call(this, context);
|
|
6147
|
+
value: function getNextStep(authClient, context) {
|
|
6148
|
+
var common = _get(_getPrototypeOf(EnrollPoll.prototype), "getNextStep", this).call(this, authClient, context);
|
|
6131
6149
|
var authenticator = this.getAuthenticator();
|
|
6132
6150
|
if (!authenticator && (context === null || context === void 0 ? void 0 : context.currentAuthenticator)) {
|
|
6133
6151
|
authenticator = context.currentAuthenticator.value;
|
|
@@ -6157,11 +6175,11 @@ var EnrollPoll = function (_Remediator) {
|
|
|
6157
6175
|
}(Remediator);
|
|
6158
6176
|
EnrollPoll.remediationName = 'enroll-poll';
|
|
6159
6177
|
|
|
6160
|
-
function _createSuper$
|
|
6161
|
-
function _isNativeReflectConstruct$
|
|
6178
|
+
function _createSuper$j(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$j(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = _Reflect$construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
6179
|
+
function _isNativeReflectConstruct$j() { if (typeof Reflect === "undefined" || !_Reflect$construct) return false; if (_Reflect$construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(_Reflect$construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
6162
6180
|
var SelectEnrollmentChannel = function (_Remediator) {
|
|
6163
6181
|
_inherits(SelectEnrollmentChannel, _Remediator);
|
|
6164
|
-
var _super = _createSuper$
|
|
6182
|
+
var _super = _createSuper$j(SelectEnrollmentChannel);
|
|
6165
6183
|
function SelectEnrollmentChannel() {
|
|
6166
6184
|
_classCallCheck(this, SelectEnrollmentChannel);
|
|
6167
6185
|
return _super.apply(this, arguments);
|
|
@@ -6173,8 +6191,8 @@ var SelectEnrollmentChannel = function (_Remediator) {
|
|
|
6173
6191
|
}
|
|
6174
6192
|
}, {
|
|
6175
6193
|
key: "getNextStep",
|
|
6176
|
-
value: function getNextStep(context) {
|
|
6177
|
-
var common = _get(_getPrototypeOf(SelectEnrollmentChannel.prototype), "getNextStep", this).call(this);
|
|
6194
|
+
value: function getNextStep(authClient, context) {
|
|
6195
|
+
var common = _get(_getPrototypeOf(SelectEnrollmentChannel.prototype), "getNextStep", this).call(this, authClient, context);
|
|
6178
6196
|
var options = this.getChannels();
|
|
6179
6197
|
var authenticator = context.currentAuthenticator.value;
|
|
6180
6198
|
return _Object$assign(_Object$assign(_Object$assign({}, common), options && {
|
|
@@ -6224,11 +6242,11 @@ var SelectEnrollmentChannel = function (_Remediator) {
|
|
|
6224
6242
|
}(Remediator);
|
|
6225
6243
|
SelectEnrollmentChannel.remediationName = 'select-enrollment-channel';
|
|
6226
6244
|
|
|
6227
|
-
function _createSuper$
|
|
6228
|
-
function _isNativeReflectConstruct$
|
|
6245
|
+
function _createSuper$i(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$i(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = _Reflect$construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
6246
|
+
function _isNativeReflectConstruct$i() { if (typeof Reflect === "undefined" || !_Reflect$construct) return false; if (_Reflect$construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(_Reflect$construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
6229
6247
|
var EnrollmentChannelData = function (_Remediator) {
|
|
6230
6248
|
_inherits(EnrollmentChannelData, _Remediator);
|
|
6231
|
-
var _super = _createSuper$
|
|
6249
|
+
var _super = _createSuper$i(EnrollmentChannelData);
|
|
6232
6250
|
function EnrollmentChannelData() {
|
|
6233
6251
|
_classCallCheck(this, EnrollmentChannelData);
|
|
6234
6252
|
return _super.apply(this, arguments);
|
|
@@ -6260,8 +6278,8 @@ var EnrollmentChannelData = function (_Remediator) {
|
|
|
6260
6278
|
}
|
|
6261
6279
|
}, {
|
|
6262
6280
|
key: "getNextStep",
|
|
6263
|
-
value: function getNextStep(context) {
|
|
6264
|
-
var common = _get(_getPrototypeOf(EnrollmentChannelData.prototype), "getNextStep", this).call(this);
|
|
6281
|
+
value: function getNextStep(authClient, context) {
|
|
6282
|
+
var common = _get(_getPrototypeOf(EnrollmentChannelData.prototype), "getNextStep", this).call(this, authClient, context);
|
|
6265
6283
|
var authenticator = context.currentAuthenticator.value;
|
|
6266
6284
|
return _Object$assign(_Object$assign({}, common), {
|
|
6267
6285
|
authenticator: authenticator
|
|
@@ -6294,11 +6312,11 @@ var EnrollmentChannelData = function (_Remediator) {
|
|
|
6294
6312
|
}(Remediator);
|
|
6295
6313
|
EnrollmentChannelData.remediationName = 'enrollment-channel-data';
|
|
6296
6314
|
|
|
6297
|
-
function _createSuper$
|
|
6298
|
-
function _isNativeReflectConstruct$
|
|
6315
|
+
function _createSuper$h(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$h(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = _Reflect$construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
6316
|
+
function _isNativeReflectConstruct$h() { if (typeof Reflect === "undefined" || !_Reflect$construct) return false; if (_Reflect$construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(_Reflect$construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
6299
6317
|
var ChallengeAuthenticator = function (_VerifyAuthenticator) {
|
|
6300
6318
|
_inherits(ChallengeAuthenticator, _VerifyAuthenticator);
|
|
6301
|
-
var _super = _createSuper$
|
|
6319
|
+
var _super = _createSuper$h(ChallengeAuthenticator);
|
|
6302
6320
|
function ChallengeAuthenticator() {
|
|
6303
6321
|
_classCallCheck(this, ChallengeAuthenticator);
|
|
6304
6322
|
return _super.apply(this, arguments);
|
|
@@ -6307,11 +6325,11 @@ var ChallengeAuthenticator = function (_VerifyAuthenticator) {
|
|
|
6307
6325
|
}(VerifyAuthenticator);
|
|
6308
6326
|
ChallengeAuthenticator.remediationName = 'challenge-authenticator';
|
|
6309
6327
|
|
|
6310
|
-
function _createSuper$
|
|
6311
|
-
function _isNativeReflectConstruct$
|
|
6328
|
+
function _createSuper$g(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$g(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = _Reflect$construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
6329
|
+
function _isNativeReflectConstruct$g() { if (typeof Reflect === "undefined" || !_Reflect$construct) return false; if (_Reflect$construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(_Reflect$construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
6312
6330
|
var ChallengePoll = function (_EnrollPoll) {
|
|
6313
6331
|
_inherits(ChallengePoll, _EnrollPoll);
|
|
6314
|
-
var _super = _createSuper$
|
|
6332
|
+
var _super = _createSuper$g(ChallengePoll);
|
|
6315
6333
|
function ChallengePoll() {
|
|
6316
6334
|
_classCallCheck(this, ChallengePoll);
|
|
6317
6335
|
return _super.apply(this, arguments);
|
|
@@ -6326,11 +6344,11 @@ var ChallengePoll = function (_EnrollPoll) {
|
|
|
6326
6344
|
}(EnrollPoll);
|
|
6327
6345
|
ChallengePoll.remediationName = 'challenge-poll';
|
|
6328
6346
|
|
|
6329
|
-
function _createSuper$
|
|
6330
|
-
function _isNativeReflectConstruct$
|
|
6347
|
+
function _createSuper$f(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$f(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = _Reflect$construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
6348
|
+
function _isNativeReflectConstruct$f() { if (typeof Reflect === "undefined" || !_Reflect$construct) return false; if (_Reflect$construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(_Reflect$construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
6331
6349
|
var ResetAuthenticator = function (_VerifyAuthenticator) {
|
|
6332
6350
|
_inherits(ResetAuthenticator, _VerifyAuthenticator);
|
|
6333
|
-
var _super = _createSuper$
|
|
6351
|
+
var _super = _createSuper$f(ResetAuthenticator);
|
|
6334
6352
|
function ResetAuthenticator() {
|
|
6335
6353
|
_classCallCheck(this, ResetAuthenticator);
|
|
6336
6354
|
return _super.apply(this, arguments);
|
|
@@ -6339,11 +6357,11 @@ var ResetAuthenticator = function (_VerifyAuthenticator) {
|
|
|
6339
6357
|
}(VerifyAuthenticator);
|
|
6340
6358
|
ResetAuthenticator.remediationName = 'reset-authenticator';
|
|
6341
6359
|
|
|
6342
|
-
function _createSuper$
|
|
6343
|
-
function _isNativeReflectConstruct$
|
|
6360
|
+
function _createSuper$e(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$e(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = _Reflect$construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
6361
|
+
function _isNativeReflectConstruct$e() { if (typeof Reflect === "undefined" || !_Reflect$construct) return false; if (_Reflect$construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(_Reflect$construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
6344
6362
|
var EnrollProfile = function (_Remediator) {
|
|
6345
6363
|
_inherits(EnrollProfile, _Remediator);
|
|
6346
|
-
var _super = _createSuper$
|
|
6364
|
+
var _super = _createSuper$e(EnrollProfile);
|
|
6347
6365
|
function EnrollProfile() {
|
|
6348
6366
|
_classCallCheck(this, EnrollProfile);
|
|
6349
6367
|
return _super.apply(this, arguments);
|
|
@@ -6405,11 +6423,11 @@ var EnrollProfile = function (_Remediator) {
|
|
|
6405
6423
|
}(Remediator);
|
|
6406
6424
|
EnrollProfile.remediationName = 'enroll-profile';
|
|
6407
6425
|
|
|
6408
|
-
function _createSuper$
|
|
6409
|
-
function _isNativeReflectConstruct$
|
|
6426
|
+
function _createSuper$d(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$d(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = _Reflect$construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
6427
|
+
function _isNativeReflectConstruct$d() { if (typeof Reflect === "undefined" || !_Reflect$construct) return false; if (_Reflect$construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(_Reflect$construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
6410
6428
|
var Identify = function (_Remediator) {
|
|
6411
6429
|
_inherits(Identify, _Remediator);
|
|
6412
|
-
var _super = _createSuper$
|
|
6430
|
+
var _super = _createSuper$d(Identify);
|
|
6413
6431
|
function Identify() {
|
|
6414
6432
|
var _this;
|
|
6415
6433
|
_classCallCheck(this, Identify);
|
|
@@ -6452,11 +6470,11 @@ var Identify = function (_Remediator) {
|
|
|
6452
6470
|
}(Remediator);
|
|
6453
6471
|
Identify.remediationName = 'identify';
|
|
6454
6472
|
|
|
6455
|
-
function _createSuper$
|
|
6456
|
-
function _isNativeReflectConstruct$
|
|
6473
|
+
function _createSuper$c(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$c(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = _Reflect$construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
6474
|
+
function _isNativeReflectConstruct$c() { if (typeof Reflect === "undefined" || !_Reflect$construct) return false; if (_Reflect$construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(_Reflect$construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
6457
6475
|
var ReEnrollAuthenticator = function (_Remediator) {
|
|
6458
6476
|
_inherits(ReEnrollAuthenticator, _Remediator);
|
|
6459
|
-
var _super = _createSuper$
|
|
6477
|
+
var _super = _createSuper$c(ReEnrollAuthenticator);
|
|
6460
6478
|
function ReEnrollAuthenticator() {
|
|
6461
6479
|
_classCallCheck(this, ReEnrollAuthenticator);
|
|
6462
6480
|
return _super.apply(this, arguments);
|
|
@@ -6486,11 +6504,11 @@ var ReEnrollAuthenticator = function (_Remediator) {
|
|
|
6486
6504
|
}(Remediator);
|
|
6487
6505
|
ReEnrollAuthenticator.remediationName = 'reenroll-authenticator';
|
|
6488
6506
|
|
|
6489
|
-
function _createSuper$
|
|
6490
|
-
function _isNativeReflectConstruct$
|
|
6507
|
+
function _createSuper$b(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$b(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = _Reflect$construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
6508
|
+
function _isNativeReflectConstruct$b() { if (typeof Reflect === "undefined" || !_Reflect$construct) return false; if (_Reflect$construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(_Reflect$construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
6491
6509
|
var RedirectIdp = function (_Remediator) {
|
|
6492
6510
|
_inherits(RedirectIdp, _Remediator);
|
|
6493
|
-
var _super = _createSuper$
|
|
6511
|
+
var _super = _createSuper$b(RedirectIdp);
|
|
6494
6512
|
function RedirectIdp() {
|
|
6495
6513
|
_classCallCheck(this, RedirectIdp);
|
|
6496
6514
|
return _super.apply(this, arguments);
|
|
@@ -6521,13 +6539,13 @@ var RedirectIdp = function (_Remediator) {
|
|
|
6521
6539
|
RedirectIdp.remediationName = 'redirect-idp';
|
|
6522
6540
|
|
|
6523
6541
|
function _createForOfIteratorHelper$2(o, allowArrayLike) { var it = typeof _Symbol !== "undefined" && _getIteratorMethod(o) || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray$2(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it.return != null) it.return(); } finally { if (didErr) throw err; } } }; }
|
|
6524
|
-
function _unsupportedIterableToArray$2(o, minLen) { var
|
|
6542
|
+
function _unsupportedIterableToArray$2(o, minLen) { var _context5; if (!o) return; if (typeof o === "string") return _arrayLikeToArray$2(o, minLen); var n = _sliceInstanceProperty(_context5 = Object.prototype.toString.call(o)).call(_context5, 8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return _Array$from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray$2(o, minLen); }
|
|
6525
6543
|
function _arrayLikeToArray$2(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
|
|
6526
|
-
function _createSuper$
|
|
6527
|
-
function _isNativeReflectConstruct$
|
|
6544
|
+
function _createSuper$a(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$a(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = _Reflect$construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
6545
|
+
function _isNativeReflectConstruct$a() { if (typeof Reflect === "undefined" || !_Reflect$construct) return false; if (_Reflect$construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(_Reflect$construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
6528
6546
|
var SelectAuthenticator = function (_Remediator) {
|
|
6529
6547
|
_inherits(SelectAuthenticator, _Remediator);
|
|
6530
|
-
var _super = _createSuper$
|
|
6548
|
+
var _super = _createSuper$a(SelectAuthenticator);
|
|
6531
6549
|
function SelectAuthenticator() {
|
|
6532
6550
|
_classCallCheck(this, SelectAuthenticator);
|
|
6533
6551
|
return _super.apply(this, arguments);
|
|
@@ -6583,9 +6601,9 @@ var SelectAuthenticator = function (_Remediator) {
|
|
|
6583
6601
|
}
|
|
6584
6602
|
}, {
|
|
6585
6603
|
key: "getNextStep",
|
|
6586
|
-
value: function getNextStep() {
|
|
6604
|
+
value: function getNextStep(authClient) {
|
|
6587
6605
|
var _context;
|
|
6588
|
-
var common = _get(_getPrototypeOf(SelectAuthenticator.prototype), "getNextStep", this).call(this);
|
|
6606
|
+
var common = _get(_getPrototypeOf(SelectAuthenticator.prototype), "getNextStep", this).call(this, authClient);
|
|
6589
6607
|
var authenticatorFromRemediation = getAuthenticatorFromRemediation(this.remediation);
|
|
6590
6608
|
var options = _mapInstanceProperty(_context = authenticatorFromRemediation.options).call(_context, function (option) {
|
|
6591
6609
|
var label = option.label,
|
|
@@ -6624,19 +6642,29 @@ var SelectAuthenticator = function (_Remediator) {
|
|
|
6624
6642
|
}
|
|
6625
6643
|
}, {
|
|
6626
6644
|
key: "getInputAuthenticator",
|
|
6627
|
-
value: function getInputAuthenticator() {
|
|
6645
|
+
value: function getInputAuthenticator(remediation) {
|
|
6646
|
+
var _context3;
|
|
6647
|
+
var options = _mapInstanceProperty(_context3 = remediation.options).call(_context3, function (_ref3) {
|
|
6648
|
+
var label = _ref3.label,
|
|
6649
|
+
relatesTo = _ref3.relatesTo;
|
|
6650
|
+
return {
|
|
6651
|
+
label: label,
|
|
6652
|
+
value: relatesTo.key
|
|
6653
|
+
};
|
|
6654
|
+
});
|
|
6628
6655
|
return {
|
|
6629
6656
|
name: 'authenticator',
|
|
6630
|
-
|
|
6657
|
+
type: 'string',
|
|
6658
|
+
options: options
|
|
6631
6659
|
};
|
|
6632
6660
|
}
|
|
6633
6661
|
}, {
|
|
6634
6662
|
key: "getValuesAfterProceed",
|
|
6635
6663
|
value: function getValuesAfterProceed() {
|
|
6636
|
-
var
|
|
6664
|
+
var _context4,
|
|
6637
6665
|
_this = this;
|
|
6638
6666
|
this.values = _get(_getPrototypeOf(SelectAuthenticator.prototype), "getValuesAfterProceed", this).call(this);
|
|
6639
|
-
var authenticators = _filterInstanceProperty(
|
|
6667
|
+
var authenticators = _filterInstanceProperty(_context4 = _valuesInstanceProperty(this).authenticators).call(_context4, function (authenticator) {
|
|
6640
6668
|
return compareAuthenticators(authenticator, _this.selectedAuthenticator) !== true;
|
|
6641
6669
|
});
|
|
6642
6670
|
return _Object$assign(_Object$assign({}, _valuesInstanceProperty(this)), {
|
|
@@ -6647,11 +6675,11 @@ var SelectAuthenticator = function (_Remediator) {
|
|
|
6647
6675
|
return SelectAuthenticator;
|
|
6648
6676
|
}(Remediator);
|
|
6649
6677
|
|
|
6650
|
-
function _createSuper$
|
|
6651
|
-
function _isNativeReflectConstruct$
|
|
6678
|
+
function _createSuper$9(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$9(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = _Reflect$construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
6679
|
+
function _isNativeReflectConstruct$9() { if (typeof Reflect === "undefined" || !_Reflect$construct) return false; if (_Reflect$construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(_Reflect$construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
6652
6680
|
var SelectAuthenticatorAuthenticate = function (_SelectAuthenticator) {
|
|
6653
6681
|
_inherits(SelectAuthenticatorAuthenticate, _SelectAuthenticator);
|
|
6654
|
-
var _super = _createSuper$
|
|
6682
|
+
var _super = _createSuper$9(SelectAuthenticatorAuthenticate);
|
|
6655
6683
|
function SelectAuthenticatorAuthenticate(remediation) {
|
|
6656
6684
|
var _this;
|
|
6657
6685
|
var values = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
@@ -6676,11 +6704,11 @@ var SelectAuthenticatorAuthenticate = function (_SelectAuthenticator) {
|
|
|
6676
6704
|
}(SelectAuthenticator);
|
|
6677
6705
|
SelectAuthenticatorAuthenticate.remediationName = 'select-authenticator-authenticate';
|
|
6678
6706
|
|
|
6679
|
-
function _createSuper$
|
|
6680
|
-
function _isNativeReflectConstruct$
|
|
6707
|
+
function _createSuper$8(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$8(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = _Reflect$construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
6708
|
+
function _isNativeReflectConstruct$8() { if (typeof Reflect === "undefined" || !_Reflect$construct) return false; if (_Reflect$construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(_Reflect$construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
6681
6709
|
var SelectAuthenticatorEnroll = function (_SelectAuthenticator) {
|
|
6682
6710
|
_inherits(SelectAuthenticatorEnroll, _SelectAuthenticator);
|
|
6683
|
-
var _super = _createSuper$
|
|
6711
|
+
var _super = _createSuper$8(SelectAuthenticatorEnroll);
|
|
6684
6712
|
function SelectAuthenticatorEnroll() {
|
|
6685
6713
|
_classCallCheck(this, SelectAuthenticatorEnroll);
|
|
6686
6714
|
return _super.apply(this, arguments);
|
|
@@ -6689,11 +6717,11 @@ var SelectAuthenticatorEnroll = function (_SelectAuthenticator) {
|
|
|
6689
6717
|
}(SelectAuthenticator);
|
|
6690
6718
|
SelectAuthenticatorEnroll.remediationName = 'select-authenticator-enroll';
|
|
6691
6719
|
|
|
6692
|
-
function _createSuper$
|
|
6693
|
-
function _isNativeReflectConstruct$
|
|
6720
|
+
function _createSuper$7(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$7(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = _Reflect$construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
6721
|
+
function _isNativeReflectConstruct$7() { if (typeof Reflect === "undefined" || !_Reflect$construct) return false; if (_Reflect$construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(_Reflect$construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
6694
6722
|
var SelectAuthenticatorUnlockAccount = function (_SelectAuthenticator) {
|
|
6695
6723
|
_inherits(SelectAuthenticatorUnlockAccount, _SelectAuthenticator);
|
|
6696
|
-
var _super = _createSuper$
|
|
6724
|
+
var _super = _createSuper$7(SelectAuthenticatorUnlockAccount);
|
|
6697
6725
|
function SelectAuthenticatorUnlockAccount() {
|
|
6698
6726
|
var _this;
|
|
6699
6727
|
_classCallCheck(this, SelectAuthenticatorUnlockAccount);
|
|
@@ -6732,7 +6760,7 @@ var SelectAuthenticatorUnlockAccount = function (_SelectAuthenticator) {
|
|
|
6732
6760
|
value: function getInputUsername() {
|
|
6733
6761
|
return {
|
|
6734
6762
|
name: 'username',
|
|
6735
|
-
|
|
6763
|
+
type: 'string'
|
|
6736
6764
|
};
|
|
6737
6765
|
}
|
|
6738
6766
|
}]);
|
|
@@ -6740,11 +6768,11 @@ var SelectAuthenticatorUnlockAccount = function (_SelectAuthenticator) {
|
|
|
6740
6768
|
}(SelectAuthenticator);
|
|
6741
6769
|
SelectAuthenticatorUnlockAccount.remediationName = 'select-authenticator-unlock-account';
|
|
6742
6770
|
|
|
6743
|
-
function _createSuper$
|
|
6744
|
-
function _isNativeReflectConstruct$
|
|
6771
|
+
function _createSuper$6(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$6(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = _Reflect$construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
6772
|
+
function _isNativeReflectConstruct$6() { if (typeof Reflect === "undefined" || !_Reflect$construct) return false; if (_Reflect$construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(_Reflect$construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
6745
6773
|
var SelectEnrollProfile = function (_Remediator) {
|
|
6746
6774
|
_inherits(SelectEnrollProfile, _Remediator);
|
|
6747
|
-
var _super = _createSuper$
|
|
6775
|
+
var _super = _createSuper$6(SelectEnrollProfile);
|
|
6748
6776
|
function SelectEnrollProfile() {
|
|
6749
6777
|
_classCallCheck(this, SelectEnrollProfile);
|
|
6750
6778
|
return _super.apply(this, arguments);
|
|
@@ -6759,11 +6787,11 @@ var SelectEnrollProfile = function (_Remediator) {
|
|
|
6759
6787
|
}(Remediator);
|
|
6760
6788
|
SelectEnrollProfile.remediationName = 'select-enroll-profile';
|
|
6761
6789
|
|
|
6762
|
-
function _createSuper$
|
|
6763
|
-
function _isNativeReflectConstruct$
|
|
6790
|
+
function _createSuper$5(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$5(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = _Reflect$construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
6791
|
+
function _isNativeReflectConstruct$5() { if (typeof Reflect === "undefined" || !_Reflect$construct) return false; if (_Reflect$construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(_Reflect$construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
6764
6792
|
var AuthenticatorData = function (_Remediator) {
|
|
6765
6793
|
_inherits(AuthenticatorData, _Remediator);
|
|
6766
|
-
var _super = _createSuper$
|
|
6794
|
+
var _super = _createSuper$5(AuthenticatorData);
|
|
6767
6795
|
function AuthenticatorData(remediation) {
|
|
6768
6796
|
var _this;
|
|
6769
6797
|
var values = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
@@ -6812,8 +6840,8 @@ var AuthenticatorData = function (_Remediator) {
|
|
|
6812
6840
|
}
|
|
6813
6841
|
}, {
|
|
6814
6842
|
key: "getNextStep",
|
|
6815
|
-
value: function getNextStep() {
|
|
6816
|
-
var common = _get(_getPrototypeOf(AuthenticatorData.prototype), "getNextStep", this).call(this);
|
|
6843
|
+
value: function getNextStep(authClient) {
|
|
6844
|
+
var common = _get(_getPrototypeOf(AuthenticatorData.prototype), "getNextStep", this).call(this, authClient);
|
|
6817
6845
|
var options = this.getMethodTypes();
|
|
6818
6846
|
return _Object$assign(_Object$assign({}, common), options && {
|
|
6819
6847
|
options: options
|
|
@@ -6877,11 +6905,11 @@ var AuthenticatorData = function (_Remediator) {
|
|
|
6877
6905
|
return AuthenticatorData;
|
|
6878
6906
|
}(Remediator);
|
|
6879
6907
|
|
|
6880
|
-
function _createSuper$
|
|
6881
|
-
function _isNativeReflectConstruct$
|
|
6908
|
+
function _createSuper$4(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$4(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = _Reflect$construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
6909
|
+
function _isNativeReflectConstruct$4() { if (typeof Reflect === "undefined" || !_Reflect$construct) return false; if (_Reflect$construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(_Reflect$construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
6882
6910
|
var AuthenticatorVerificationData = function (_AuthenticatorData) {
|
|
6883
6911
|
_inherits(AuthenticatorVerificationData, _AuthenticatorData);
|
|
6884
|
-
var _super = _createSuper$
|
|
6912
|
+
var _super = _createSuper$4(AuthenticatorVerificationData);
|
|
6885
6913
|
function AuthenticatorVerificationData(remediation) {
|
|
6886
6914
|
var _this;
|
|
6887
6915
|
var values = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
@@ -6932,7 +6960,8 @@ var AuthenticatorVerificationData = function (_AuthenticatorData) {
|
|
|
6932
6960
|
return {
|
|
6933
6961
|
name: 'methodType',
|
|
6934
6962
|
type: 'string',
|
|
6935
|
-
required: true
|
|
6963
|
+
required: true,
|
|
6964
|
+
options: methodType.options
|
|
6936
6965
|
};
|
|
6937
6966
|
}
|
|
6938
6967
|
var inputs = _toConsumableArray(authenticator.form.value);
|
|
@@ -6956,11 +6985,11 @@ var AuthenticatorVerificationData = function (_AuthenticatorData) {
|
|
|
6956
6985
|
}(AuthenticatorData);
|
|
6957
6986
|
AuthenticatorVerificationData.remediationName = 'authenticator-verification-data';
|
|
6958
6987
|
|
|
6959
|
-
function _createSuper$
|
|
6960
|
-
function _isNativeReflectConstruct$
|
|
6988
|
+
function _createSuper$3(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$3(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = _Reflect$construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
6989
|
+
function _isNativeReflectConstruct$3() { if (typeof Reflect === "undefined" || !_Reflect$construct) return false; if (_Reflect$construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(_Reflect$construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
6961
6990
|
var AuthenticatorEnrollmentData = function (_AuthenticatorData) {
|
|
6962
6991
|
_inherits(AuthenticatorEnrollmentData, _AuthenticatorData);
|
|
6963
|
-
var _super = _createSuper$
|
|
6992
|
+
var _super = _createSuper$3(AuthenticatorEnrollmentData);
|
|
6964
6993
|
function AuthenticatorEnrollmentData() {
|
|
6965
6994
|
_classCallCheck(this, AuthenticatorEnrollmentData);
|
|
6966
6995
|
return _super.apply(this, arguments);
|
|
@@ -6982,17 +7011,22 @@ var AuthenticatorEnrollmentData = function (_AuthenticatorData) {
|
|
|
6982
7011
|
}
|
|
6983
7012
|
}, {
|
|
6984
7013
|
key: "getInputAuthenticator",
|
|
6985
|
-
value: function getInputAuthenticator() {
|
|
6986
|
-
|
|
7014
|
+
value: function getInputAuthenticator(remediation) {
|
|
7015
|
+
var _context2;
|
|
7016
|
+
return _mapInstanceProperty(_context2 = [{
|
|
6987
7017
|
name: 'methodType',
|
|
6988
|
-
type: 'string'
|
|
6989
|
-
required: true
|
|
7018
|
+
type: 'string'
|
|
6990
7019
|
}, {
|
|
6991
7020
|
name: 'phoneNumber',
|
|
6992
|
-
|
|
6993
|
-
|
|
6994
|
-
|
|
6995
|
-
|
|
7021
|
+
label: 'Phone Number',
|
|
7022
|
+
type: 'string'
|
|
7023
|
+
}]).call(_context2, function (item) {
|
|
7024
|
+
var _context3;
|
|
7025
|
+
var value = _findInstanceProperty(_context3 = remediation.form.value).call(_context3, function (val) {
|
|
7026
|
+
return val.name === item.name;
|
|
7027
|
+
});
|
|
7028
|
+
return _Object$assign(_Object$assign({}, value), item);
|
|
7029
|
+
});
|
|
6996
7030
|
}
|
|
6997
7031
|
}, {
|
|
6998
7032
|
key: "mapAuthenticatorDataFromValues",
|
|
@@ -7011,11 +7045,11 @@ var AuthenticatorEnrollmentData = function (_AuthenticatorData) {
|
|
|
7011
7045
|
}(AuthenticatorData);
|
|
7012
7046
|
AuthenticatorEnrollmentData.remediationName = 'authenticator-enrollment-data';
|
|
7013
7047
|
|
|
7014
|
-
function _createSuper$
|
|
7015
|
-
function _isNativeReflectConstruct$
|
|
7048
|
+
function _createSuper$2(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$2(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = _Reflect$construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
7049
|
+
function _isNativeReflectConstruct$2() { if (typeof Reflect === "undefined" || !_Reflect$construct) return false; if (_Reflect$construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(_Reflect$construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
7016
7050
|
var Skip = function (_Remediator) {
|
|
7017
7051
|
_inherits(Skip, _Remediator);
|
|
7018
|
-
var _super = _createSuper$
|
|
7052
|
+
var _super = _createSuper$2(Skip);
|
|
7019
7053
|
function Skip() {
|
|
7020
7054
|
_classCallCheck(this, Skip);
|
|
7021
7055
|
return _super.apply(this, arguments);
|
|
@@ -7030,6 +7064,197 @@ var Skip = function (_Remediator) {
|
|
|
7030
7064
|
}(Remediator);
|
|
7031
7065
|
Skip.remediationName = 'skip';
|
|
7032
7066
|
|
|
7067
|
+
function unwrapFormValue(remediation) {
|
|
7068
|
+
var res = {};
|
|
7069
|
+
for (var _i = 0, _Object$entries$1 = _Object$entries(remediation); _i < _Object$entries$1.length; _i++) {
|
|
7070
|
+
var _Object$entries$_i = _slicedToArray(_Object$entries$1[_i], 2),
|
|
7071
|
+
key = _Object$entries$_i[0],
|
|
7072
|
+
value = _Object$entries$_i[1];
|
|
7073
|
+
if (value === null || typeof value === 'undefined') {
|
|
7074
|
+
continue;
|
|
7075
|
+
}
|
|
7076
|
+
if (Array.isArray(value)) {
|
|
7077
|
+
res[key] = _mapInstanceProperty(value).call(value, unwrapFormValue);
|
|
7078
|
+
} else if (_typeof(value) === 'object') {
|
|
7079
|
+
var _context, _context2;
|
|
7080
|
+
var formKeys = _Object$keys(value);
|
|
7081
|
+
if (_includesInstanceProperty(_context = ['value', 'form']).call(_context, key) && formKeys.length === 1 && _includesInstanceProperty(_context2 = ['value', 'form']).call(_context2, formKeys[0])) {
|
|
7082
|
+
var unwrappedForm = unwrapFormValue(value);
|
|
7083
|
+
_Object$entries(unwrappedForm).forEach(function (_ref) {
|
|
7084
|
+
var _ref2 = _slicedToArray(_ref, 2),
|
|
7085
|
+
key = _ref2[0],
|
|
7086
|
+
value = _ref2[1];
|
|
7087
|
+
res[key] = value;
|
|
7088
|
+
});
|
|
7089
|
+
} else {
|
|
7090
|
+
res[key] = unwrapFormValue(value);
|
|
7091
|
+
}
|
|
7092
|
+
} else {
|
|
7093
|
+
res[key] = value;
|
|
7094
|
+
}
|
|
7095
|
+
}
|
|
7096
|
+
return res;
|
|
7097
|
+
}
|
|
7098
|
+
function hasValidInputValue(input, values) {
|
|
7099
|
+
var fn = function fn(input, values, requiredTracker) {
|
|
7100
|
+
var name = input.name,
|
|
7101
|
+
value = input.value,
|
|
7102
|
+
required = input.required;
|
|
7103
|
+
var isRequired = required || requiredTracker
|
|
7104
|
+
|| name === 'authenticator';
|
|
7105
|
+
if (!isRequired) {
|
|
7106
|
+
return true;
|
|
7107
|
+
}
|
|
7108
|
+
if (Array.isArray(value)) {
|
|
7109
|
+
return _reduceInstanceProperty(value).call(value, function (acc, item) {
|
|
7110
|
+
return acc && fn(item, values[name], isRequired);
|
|
7111
|
+
}, true);
|
|
7112
|
+
} else {
|
|
7113
|
+
return !!(values && values[name]);
|
|
7114
|
+
}
|
|
7115
|
+
};
|
|
7116
|
+
return fn(input, values, false);
|
|
7117
|
+
}
|
|
7118
|
+
|
|
7119
|
+
function canProceed(authClient) {
|
|
7120
|
+
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
7121
|
+
var meta = getSavedTransactionMeta(authClient, options);
|
|
7122
|
+
return !!(meta || options.stateHandle);
|
|
7123
|
+
}
|
|
7124
|
+
function proceed(_x) {
|
|
7125
|
+
return _proceed.apply(this, arguments);
|
|
7126
|
+
}
|
|
7127
|
+
function _proceed() {
|
|
7128
|
+
_proceed = _asyncToGenerator( _regeneratorRuntime.mark(function _callee(authClient) {
|
|
7129
|
+
var options,
|
|
7130
|
+
flow,
|
|
7131
|
+
state,
|
|
7132
|
+
meta,
|
|
7133
|
+
_args = arguments;
|
|
7134
|
+
return _regeneratorRuntime.wrap(function _callee$(_context) {
|
|
7135
|
+
while (1) {
|
|
7136
|
+
switch (_context.prev = _context.next) {
|
|
7137
|
+
case 0:
|
|
7138
|
+
options = _args.length > 1 && _args[1] !== undefined ? _args[1] : {};
|
|
7139
|
+
if (canProceed(authClient, options)) {
|
|
7140
|
+
_context.next = 3;
|
|
7141
|
+
break;
|
|
7142
|
+
}
|
|
7143
|
+
throw new AuthSdkError('Unable to proceed: saved transaction could not be loaded');
|
|
7144
|
+
case 3:
|
|
7145
|
+
flow = options.flow, state = options.state;
|
|
7146
|
+
if (!flow) {
|
|
7147
|
+
meta = getSavedTransactionMeta(authClient, {
|
|
7148
|
+
state: state
|
|
7149
|
+
});
|
|
7150
|
+
flow = meta === null || meta === void 0 ? void 0 : meta.flow;
|
|
7151
|
+
}
|
|
7152
|
+
return _context.abrupt("return", run(authClient, _Object$assign(_Object$assign({}, options), {
|
|
7153
|
+
flow: flow
|
|
7154
|
+
})));
|
|
7155
|
+
case 6:
|
|
7156
|
+
case "end":
|
|
7157
|
+
return _context.stop();
|
|
7158
|
+
}
|
|
7159
|
+
}
|
|
7160
|
+
}, _callee);
|
|
7161
|
+
}));
|
|
7162
|
+
return _proceed.apply(this, arguments);
|
|
7163
|
+
}
|
|
7164
|
+
|
|
7165
|
+
function _createSuper$1(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$1(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = _Reflect$construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
7166
|
+
function _isNativeReflectConstruct$1() { if (typeof Reflect === "undefined" || !_Reflect$construct) return false; if (_Reflect$construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(_Reflect$construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
7167
|
+
var GenericRemediator = function (_Remediator) {
|
|
7168
|
+
_inherits(GenericRemediator, _Remediator);
|
|
7169
|
+
var _super = _createSuper$1(GenericRemediator);
|
|
7170
|
+
function GenericRemediator() {
|
|
7171
|
+
_classCallCheck(this, GenericRemediator);
|
|
7172
|
+
return _super.apply(this, arguments);
|
|
7173
|
+
}
|
|
7174
|
+
_createClass(GenericRemediator, [{
|
|
7175
|
+
key: "canRemediate",
|
|
7176
|
+
value: function canRemediate() {
|
|
7177
|
+
var _this = this;
|
|
7178
|
+
if (typeof this.remediation.action !== 'function') {
|
|
7179
|
+
return false;
|
|
7180
|
+
}
|
|
7181
|
+
var inputs = this.getInputs();
|
|
7182
|
+
var res = _reduceInstanceProperty(inputs).call(inputs, function (acc, input) {
|
|
7183
|
+
return acc && hasValidInputValue(input, _valuesInstanceProperty(_this));
|
|
7184
|
+
}, true);
|
|
7185
|
+
return res;
|
|
7186
|
+
}
|
|
7187
|
+
}, {
|
|
7188
|
+
key: "getData",
|
|
7189
|
+
value: function getData() {
|
|
7190
|
+
var _context2,
|
|
7191
|
+
_this2 = this;
|
|
7192
|
+
var data = _reduceInstanceProperty(_context2 = this.getInputs()).call(_context2, function (acc, _ref) {
|
|
7193
|
+
var name = _ref.name;
|
|
7194
|
+
acc[name] = _valuesInstanceProperty(_this2)[name];
|
|
7195
|
+
return acc;
|
|
7196
|
+
}, {});
|
|
7197
|
+
return data;
|
|
7198
|
+
}
|
|
7199
|
+
}, {
|
|
7200
|
+
key: "getNextStep",
|
|
7201
|
+
value: function getNextStep(authClient, _context) {
|
|
7202
|
+
var name = this.getName();
|
|
7203
|
+
var inputs = this.getInputs();
|
|
7204
|
+
var _a = this.remediation;
|
|
7205
|
+
_a.href;
|
|
7206
|
+
_a.method;
|
|
7207
|
+
_a.rel;
|
|
7208
|
+
_a.accepts;
|
|
7209
|
+
_a.produces;
|
|
7210
|
+
_a.value;
|
|
7211
|
+
var action = _a.action,
|
|
7212
|
+
rest = __rest(_a, ["href", "method", "rel", "accepts", "produces", "value", "action"]);
|
|
7213
|
+
if (action) {
|
|
7214
|
+
return _Object$assign(_Object$assign(_Object$assign({}, rest), !!inputs.length && {
|
|
7215
|
+
inputs: inputs
|
|
7216
|
+
}), {
|
|
7217
|
+
action: function () {
|
|
7218
|
+
var _action = _asyncToGenerator( _regeneratorRuntime.mark(function _callee(params) {
|
|
7219
|
+
return _regeneratorRuntime.wrap(function _callee$(_context3) {
|
|
7220
|
+
while (1) {
|
|
7221
|
+
switch (_context3.prev = _context3.next) {
|
|
7222
|
+
case 0:
|
|
7223
|
+
return _context3.abrupt("return", proceed(authClient, _Object$assign({
|
|
7224
|
+
step: name
|
|
7225
|
+
}, params)));
|
|
7226
|
+
case 1:
|
|
7227
|
+
case "end":
|
|
7228
|
+
return _context3.stop();
|
|
7229
|
+
}
|
|
7230
|
+
}
|
|
7231
|
+
}, _callee);
|
|
7232
|
+
}));
|
|
7233
|
+
function action(_x) {
|
|
7234
|
+
return _action.apply(this, arguments);
|
|
7235
|
+
}
|
|
7236
|
+
return action;
|
|
7237
|
+
}()
|
|
7238
|
+
});
|
|
7239
|
+
}
|
|
7240
|
+
return _Object$assign({}, this.remediation);
|
|
7241
|
+
}
|
|
7242
|
+
}, {
|
|
7243
|
+
key: "getInputs",
|
|
7244
|
+
value: function getInputs() {
|
|
7245
|
+
var _context4, _context5, _context6;
|
|
7246
|
+
return _mapInstanceProperty(_context4 = _mapInstanceProperty(_context5 = _filterInstanceProperty(_context6 = this.remediation.value || []).call(_context6, function (_ref2) {
|
|
7247
|
+
var name = _ref2.name;
|
|
7248
|
+
return name !== 'stateHandle';
|
|
7249
|
+
})).call(_context5, unwrapFormValue)).call(_context4, function (input) {
|
|
7250
|
+
input.type = input.type || 'string';
|
|
7251
|
+
return input;
|
|
7252
|
+
});
|
|
7253
|
+
}
|
|
7254
|
+
}]);
|
|
7255
|
+
return GenericRemediator;
|
|
7256
|
+
}(Remediator);
|
|
7257
|
+
|
|
7033
7258
|
var remediators = /*#__PURE__*/Object.freeze({
|
|
7034
7259
|
__proto__: null,
|
|
7035
7260
|
Remediator: Remediator,
|
|
@@ -7050,11 +7275,12 @@ var remediators = /*#__PURE__*/Object.freeze({
|
|
|
7050
7275
|
SelectEnrollProfile: SelectEnrollProfile,
|
|
7051
7276
|
AuthenticatorVerificationData: AuthenticatorVerificationData,
|
|
7052
7277
|
AuthenticatorEnrollmentData: AuthenticatorEnrollmentData,
|
|
7053
|
-
Skip: Skip
|
|
7278
|
+
Skip: Skip,
|
|
7279
|
+
GenericRemediator: GenericRemediator
|
|
7054
7280
|
});
|
|
7055
7281
|
|
|
7056
7282
|
function _createForOfIteratorHelper$1(o, allowArrayLike) { var it = typeof _Symbol !== "undefined" && _getIteratorMethod(o) || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray$1(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it.return != null) it.return(); } finally { if (didErr) throw err; } } }; }
|
|
7057
|
-
function _unsupportedIterableToArray$1(o, minLen) { var
|
|
7283
|
+
function _unsupportedIterableToArray$1(o, minLen) { var _context13; if (!o) return; if (typeof o === "string") return _arrayLikeToArray$1(o, minLen); var n = _sliceInstanceProperty(_context13 = Object.prototype.toString.call(o)).call(_context13, 8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return _Array$from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray$1(o, minLen); }
|
|
7058
7284
|
function _arrayLikeToArray$1(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
|
|
7059
7285
|
function isTerminalResponse(idxResponse) {
|
|
7060
7286
|
var neededToProceed = idxResponse.neededToProceed,
|
|
@@ -7172,7 +7398,7 @@ function getEnabledFeatures(idxResponse) {
|
|
|
7172
7398
|
}
|
|
7173
7399
|
return res;
|
|
7174
7400
|
}
|
|
7175
|
-
function getAvailableSteps(idxResponse) {
|
|
7401
|
+
function getAvailableSteps(authClient, idxResponse, useGenericRemediator) {
|
|
7176
7402
|
var _context9;
|
|
7177
7403
|
var res = [];
|
|
7178
7404
|
var remediatorMap = _reduceInstanceProperty(_context9 = _Object$values(remediators)).call(_context9, function (map, remediatorClass) {
|
|
@@ -7186,10 +7412,13 @@ function getAvailableSteps(idxResponse) {
|
|
|
7186
7412
|
try {
|
|
7187
7413
|
for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
|
|
7188
7414
|
var remediation = _step2.value;
|
|
7189
|
-
var T =
|
|
7415
|
+
var T = getRemediatorClass(remediation, {
|
|
7416
|
+
useGenericRemediator: useGenericRemediator,
|
|
7417
|
+
remediators: remediatorMap
|
|
7418
|
+
});
|
|
7190
7419
|
if (T) {
|
|
7191
7420
|
var remediator = new T(remediation);
|
|
7192
|
-
res.push(remediator.getNextStep(idxResponse.context));
|
|
7421
|
+
res.push(remediator.getNextStep(authClient, idxResponse.context));
|
|
7193
7422
|
}
|
|
7194
7423
|
}
|
|
7195
7424
|
} catch (err) {
|
|
@@ -7197,10 +7426,44 @@ function getAvailableSteps(idxResponse) {
|
|
|
7197
7426
|
} finally {
|
|
7198
7427
|
_iterator2.f();
|
|
7199
7428
|
}
|
|
7429
|
+
var _loop = function _loop() {
|
|
7430
|
+
var _Object$entries$_i = _slicedToArray(_Object$entries$1[_i], 1),
|
|
7431
|
+
name = _Object$entries$_i[0];
|
|
7432
|
+
res.push({
|
|
7433
|
+
name: name,
|
|
7434
|
+
action: function () {
|
|
7435
|
+
var _action = _asyncToGenerator( _regeneratorRuntime.mark(function _callee(params) {
|
|
7436
|
+
return _regeneratorRuntime.wrap(function _callee$(_context10) {
|
|
7437
|
+
while (1) {
|
|
7438
|
+
switch (_context10.prev = _context10.next) {
|
|
7439
|
+
case 0:
|
|
7440
|
+
return _context10.abrupt("return", proceed(authClient, {
|
|
7441
|
+
actions: [{
|
|
7442
|
+
name: name,
|
|
7443
|
+
params: params
|
|
7444
|
+
}]
|
|
7445
|
+
}));
|
|
7446
|
+
case 1:
|
|
7447
|
+
case "end":
|
|
7448
|
+
return _context10.stop();
|
|
7449
|
+
}
|
|
7450
|
+
}
|
|
7451
|
+
}, _callee);
|
|
7452
|
+
}));
|
|
7453
|
+
function action(_x) {
|
|
7454
|
+
return _action.apply(this, arguments);
|
|
7455
|
+
}
|
|
7456
|
+
return action;
|
|
7457
|
+
}()
|
|
7458
|
+
});
|
|
7459
|
+
};
|
|
7460
|
+
for (var _i = 0, _Object$entries$1 = _Object$entries(idxResponse.actions || {}); _i < _Object$entries$1.length; _i++) {
|
|
7461
|
+
_loop();
|
|
7462
|
+
}
|
|
7200
7463
|
return res;
|
|
7201
7464
|
}
|
|
7202
7465
|
function filterValuesForRemediation(idxResponse, remediationName, values) {
|
|
7203
|
-
var
|
|
7466
|
+
var _context11;
|
|
7204
7467
|
var remediations = idxResponse.neededToProceed || [];
|
|
7205
7468
|
var remediation = _findInstanceProperty(remediations).call(remediations, function (r) {
|
|
7206
7469
|
return r.name === remediationName;
|
|
@@ -7209,7 +7472,7 @@ function filterValuesForRemediation(idxResponse, remediationName, values) {
|
|
|
7209
7472
|
warn("filterValuesForRemediation: \"".concat(remediationName, "\" did not match any remediations"));
|
|
7210
7473
|
return values;
|
|
7211
7474
|
}
|
|
7212
|
-
var valuesForRemediation = _reduceInstanceProperty(
|
|
7475
|
+
var valuesForRemediation = _reduceInstanceProperty(_context11 = remediation.value).call(_context11, function (res, entry) {
|
|
7213
7476
|
var name = entry.name,
|
|
7214
7477
|
value = entry.value;
|
|
7215
7478
|
if (name === 'stateHandle') {
|
|
@@ -7221,8 +7484,20 @@ function filterValuesForRemediation(idxResponse, remediationName, values) {
|
|
|
7221
7484
|
}, {});
|
|
7222
7485
|
return valuesForRemediation;
|
|
7223
7486
|
}
|
|
7487
|
+
function getRemediatorClass(remediation, options) {
|
|
7488
|
+
var useGenericRemediator = options.useGenericRemediator,
|
|
7489
|
+
remediators = options.remediators;
|
|
7490
|
+
if (!remediation) {
|
|
7491
|
+
return undefined;
|
|
7492
|
+
}
|
|
7493
|
+
if (useGenericRemediator) {
|
|
7494
|
+
return GenericRemediator;
|
|
7495
|
+
}
|
|
7496
|
+
return remediators[remediation.name];
|
|
7497
|
+
}
|
|
7224
7498
|
function getRemediator(idxRemediations, values, options) {
|
|
7225
7499
|
var remediators = options.remediators;
|
|
7500
|
+
var useGenericRemediator = options.useGenericRemediator;
|
|
7226
7501
|
var remediator;
|
|
7227
7502
|
if (options.step) {
|
|
7228
7503
|
var remediation = _findInstanceProperty(idxRemediations).call(idxRemediations, function (_ref5) {
|
|
@@ -7230,7 +7505,7 @@ function getRemediator(idxRemediations, values, options) {
|
|
|
7230
7505
|
return name === options.step;
|
|
7231
7506
|
});
|
|
7232
7507
|
if (remediation) {
|
|
7233
|
-
var T = remediation
|
|
7508
|
+
var T = getRemediatorClass(remediation, options);
|
|
7234
7509
|
return T ? new T(remediation, values, options) : undefined;
|
|
7235
7510
|
} else {
|
|
7236
7511
|
warn("step \"".concat(options.step, "\" did not match any remediations"));
|
|
@@ -7242,13 +7517,13 @@ function getRemediator(idxRemediations, values, options) {
|
|
|
7242
7517
|
_step3;
|
|
7243
7518
|
try {
|
|
7244
7519
|
for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
|
|
7245
|
-
var
|
|
7520
|
+
var _context12;
|
|
7246
7521
|
var _remediation = _step3.value;
|
|
7247
|
-
var isRemeditionInFlow = _includesInstanceProperty(
|
|
7522
|
+
var isRemeditionInFlow = _includesInstanceProperty(_context12 = _Object$keys(remediators)).call(_context12, _remediation.name);
|
|
7248
7523
|
if (!isRemeditionInFlow) {
|
|
7249
7524
|
continue;
|
|
7250
7525
|
}
|
|
7251
|
-
var _T =
|
|
7526
|
+
var _T = getRemediatorClass(_remediation, options);
|
|
7252
7527
|
remediator = new _T(_remediation, values, options);
|
|
7253
7528
|
if (remediator.canRemediate()) {
|
|
7254
7529
|
return remediator;
|
|
@@ -7260,10 +7535,13 @@ function getRemediator(idxRemediations, values, options) {
|
|
|
7260
7535
|
} finally {
|
|
7261
7536
|
_iterator3.f();
|
|
7262
7537
|
}
|
|
7538
|
+
if (!remediatorCandidates.length && !!idxRemediations.length && useGenericRemediator) {
|
|
7539
|
+
return new GenericRemediator(idxRemediations[0], values, options);
|
|
7540
|
+
}
|
|
7263
7541
|
return remediatorCandidates[0];
|
|
7264
7542
|
}
|
|
7265
|
-
function getNextStep(remediator, idxResponse) {
|
|
7266
|
-
var nextStep = remediator.getNextStep(idxResponse.context);
|
|
7543
|
+
function getNextStep(authClient, remediator, idxResponse) {
|
|
7544
|
+
var nextStep = remediator.getNextStep(authClient, idxResponse.context);
|
|
7267
7545
|
var canSkip = canSkipFn(idxResponse);
|
|
7268
7546
|
var canResend = canResendFn(idxResponse);
|
|
7269
7547
|
return _Object$assign(_Object$assign(_Object$assign({}, nextStep), canSkip && {
|
|
@@ -7272,7 +7550,7 @@ function getNextStep(remediator, idxResponse) {
|
|
|
7272
7550
|
canResend: canResend
|
|
7273
7551
|
});
|
|
7274
7552
|
}
|
|
7275
|
-
function handleIdxError(e, remediator) {
|
|
7553
|
+
function handleIdxError(authClient, e, remediator) {
|
|
7276
7554
|
var idxResponse = isIdxResponse(e) ? e : null;
|
|
7277
7555
|
if (!idxResponse) {
|
|
7278
7556
|
throw e;
|
|
@@ -7289,7 +7567,7 @@ function handleIdxError(e, remediator) {
|
|
|
7289
7567
|
messages: messages
|
|
7290
7568
|
};
|
|
7291
7569
|
} else {
|
|
7292
|
-
var nextStep = remediator && getNextStep(remediator, idxResponse);
|
|
7570
|
+
var nextStep = remediator && getNextStep(authClient, remediator, idxResponse);
|
|
7293
7571
|
return _Object$assign({
|
|
7294
7572
|
idxResponse: idxResponse,
|
|
7295
7573
|
messages: messages
|
|
@@ -7325,11 +7603,11 @@ function removeActionFromOptions(options, actionName) {
|
|
|
7325
7603
|
actions: actions
|
|
7326
7604
|
});
|
|
7327
7605
|
}
|
|
7328
|
-
function remediate(_x, _x2, _x3) {
|
|
7606
|
+
function remediate(_x, _x2, _x3, _x4) {
|
|
7329
7607
|
return _remediate.apply(this, arguments);
|
|
7330
7608
|
}
|
|
7331
7609
|
function _remediate() {
|
|
7332
|
-
_remediate = _asyncToGenerator( _regeneratorRuntime.mark(function _callee(idxResponse, values, options) {
|
|
7610
|
+
_remediate = _asyncToGenerator( _regeneratorRuntime.mark(function _callee(authClient, idxResponse, values, options) {
|
|
7333
7611
|
var _context2;
|
|
7334
7612
|
var _idxResponse, neededToProceed, interactionCode, _options, flow, remediator, actionFromValues, actionFromOptions, actions, _iterator, _step, _loop, _ret, terminal, messages, nextStep, name, data;
|
|
7335
7613
|
return _regeneratorRuntime.wrap(function _callee$(_context4) {
|
|
@@ -7388,7 +7666,7 @@ function _remediate() {
|
|
|
7388
7666
|
_context3.prev = 13;
|
|
7389
7667
|
_context3.t0 = _context3["catch"](6);
|
|
7390
7668
|
return _context3.abrupt("return", {
|
|
7391
|
-
v: handleIdxError(_context3.t0, remediator)
|
|
7669
|
+
v: handleIdxError(authClient, _context3.t0, remediator)
|
|
7392
7670
|
});
|
|
7393
7671
|
case 16:
|
|
7394
7672
|
if (!(action === 'cancel')) {
|
|
@@ -7403,7 +7681,7 @@ function _remediate() {
|
|
|
7403
7681
|
});
|
|
7404
7682
|
case 18:
|
|
7405
7683
|
return _context3.abrupt("return", {
|
|
7406
|
-
v: remediate(idxResponse, valuesWithoutExecutedAction, optionsWithoutExecutedAction)
|
|
7684
|
+
v: remediate(authClient, idxResponse, valuesWithoutExecutedAction, optionsWithoutExecutedAction)
|
|
7407
7685
|
});
|
|
7408
7686
|
case 19:
|
|
7409
7687
|
remediationAction = _findInstanceProperty(neededToProceed).call(neededToProceed, function (_ref) {
|
|
@@ -7428,11 +7706,11 @@ function _remediate() {
|
|
|
7428
7706
|
_context3.prev = 28;
|
|
7429
7707
|
_context3.t1 = _context3["catch"](21);
|
|
7430
7708
|
return _context3.abrupt("return", {
|
|
7431
|
-
v: handleIdxError(_context3.t1, remediator)
|
|
7709
|
+
v: handleIdxError(authClient, _context3.t1, remediator)
|
|
7432
7710
|
});
|
|
7433
7711
|
case 31:
|
|
7434
7712
|
return _context3.abrupt("return", {
|
|
7435
|
-
v: remediate(idxResponse, values, optionsWithoutExecutedAction)
|
|
7713
|
+
v: remediate(authClient, idxResponse, values, optionsWithoutExecutedAction)
|
|
7436
7714
|
});
|
|
7437
7715
|
case 32:
|
|
7438
7716
|
case "end":
|
|
@@ -7505,7 +7783,7 @@ function _remediate() {
|
|
|
7505
7783
|
case 43:
|
|
7506
7784
|
_context4.prev = 43;
|
|
7507
7785
|
_context4.t2 = _context4["catch"](35);
|
|
7508
|
-
return _context4.abrupt("return", handleIdxError(_context4.t2));
|
|
7786
|
+
return _context4.abrupt("return", handleIdxError(authClient, _context4.t2));
|
|
7509
7787
|
case 46:
|
|
7510
7788
|
if (!(flow === 'default')) {
|
|
7511
7789
|
_context4.next = 48;
|
|
@@ -7523,7 +7801,7 @@ function _remediate() {
|
|
|
7523
7801
|
_context4.next = 52;
|
|
7524
7802
|
break;
|
|
7525
7803
|
}
|
|
7526
|
-
nextStep = getNextStep(remediator, idxResponse);
|
|
7804
|
+
nextStep = getNextStep(authClient, remediator, idxResponse);
|
|
7527
7805
|
return _context4.abrupt("return", {
|
|
7528
7806
|
idxResponse: idxResponse,
|
|
7529
7807
|
nextStep: nextStep,
|
|
@@ -7544,11 +7822,11 @@ function _remediate() {
|
|
|
7544
7822
|
options = _Object$assign(_Object$assign({}, options), {
|
|
7545
7823
|
step: undefined
|
|
7546
7824
|
});
|
|
7547
|
-
return _context4.abrupt("return", remediate(idxResponse, values, options));
|
|
7825
|
+
return _context4.abrupt("return", remediate(authClient, idxResponse, values, options));
|
|
7548
7826
|
case 64:
|
|
7549
7827
|
_context4.prev = 64;
|
|
7550
7828
|
_context4.t3 = _context4["catch"](54);
|
|
7551
|
-
return _context4.abrupt("return", handleIdxError(_context4.t3, remediator));
|
|
7829
|
+
return _context4.abrupt("return", handleIdxError(authClient, _context4.t3, remediator));
|
|
7552
7830
|
case 67:
|
|
7553
7831
|
case "end":
|
|
7554
7832
|
return _context4.stop();
|
|
@@ -7657,11 +7935,13 @@ function initializeValues(options) {
|
|
|
7657
7935
|
return values;
|
|
7658
7936
|
}
|
|
7659
7937
|
function initializeData(authClient, data) {
|
|
7938
|
+
var _a;
|
|
7660
7939
|
var options = data.options;
|
|
7661
7940
|
var flow = options.flow,
|
|
7662
7941
|
withCredentials = options.withCredentials,
|
|
7663
7942
|
remediators = options.remediators,
|
|
7664
|
-
actions = options.actions
|
|
7943
|
+
actions = options.actions,
|
|
7944
|
+
useGenericRemediator = options.useGenericRemediator;
|
|
7665
7945
|
var status = IdxStatus.PENDING;
|
|
7666
7946
|
flow = flow || authClient.idx.getFlow() || 'default';
|
|
7667
7947
|
if (flow) {
|
|
@@ -7671,12 +7951,14 @@ function initializeData(authClient, data) {
|
|
|
7671
7951
|
remediators = remediators || flowSpec.remediators;
|
|
7672
7952
|
actions = actions || flowSpec.actions;
|
|
7673
7953
|
}
|
|
7954
|
+
useGenericRemediator = useGenericRemediator || ((_a = authClient.options.idx) === null || _a === void 0 ? void 0 : _a.useGenericRemediator) || false;
|
|
7674
7955
|
return _Object$assign(_Object$assign({}, data), {
|
|
7675
7956
|
options: _Object$assign(_Object$assign({}, options), {
|
|
7676
7957
|
flow: flow,
|
|
7677
7958
|
withCredentials: withCredentials,
|
|
7678
7959
|
remediators: remediators,
|
|
7679
|
-
actions: actions
|
|
7960
|
+
actions: actions,
|
|
7961
|
+
useGenericRemediator: useGenericRemediator
|
|
7680
7962
|
}),
|
|
7681
7963
|
status: status
|
|
7682
7964
|
});
|
|
@@ -7686,13 +7968,13 @@ function getDataFromIntrospect(_x, _x2) {
|
|
|
7686
7968
|
}
|
|
7687
7969
|
function _getDataFromIntrospect() {
|
|
7688
7970
|
_getDataFromIntrospect = _asyncToGenerator( _regeneratorRuntime.mark(function _callee(authClient, data) {
|
|
7689
|
-
var options, stateHandle, withCredentials, version, state, scopes, recoveryToken, activationToken, idxResponse, meta, interactionHandle, interactResponse;
|
|
7971
|
+
var options, stateHandle, withCredentials, version, state, scopes, recoveryToken, activationToken, maxAge, idxResponse, meta, interactionHandle, interactResponse;
|
|
7690
7972
|
return _regeneratorRuntime.wrap(function _callee$(_context) {
|
|
7691
7973
|
while (1) {
|
|
7692
7974
|
switch (_context.prev = _context.next) {
|
|
7693
7975
|
case 0:
|
|
7694
7976
|
options = data.options;
|
|
7695
|
-
stateHandle = options.stateHandle, withCredentials = options.withCredentials, version = options.version, state = options.state, scopes = options.scopes, recoveryToken = options.recoveryToken, activationToken = options.activationToken;
|
|
7977
|
+
stateHandle = options.stateHandle, withCredentials = options.withCredentials, version = options.version, state = options.state, scopes = options.scopes, recoveryToken = options.recoveryToken, activationToken = options.activationToken, maxAge = options.maxAge;
|
|
7696
7978
|
meta = getSavedTransactionMeta(authClient, {
|
|
7697
7979
|
state: state,
|
|
7698
7980
|
recoveryToken: recoveryToken,
|
|
@@ -7725,7 +8007,8 @@ function _getDataFromIntrospect() {
|
|
|
7725
8007
|
state: state,
|
|
7726
8008
|
scopes: scopes,
|
|
7727
8009
|
activationToken: activationToken,
|
|
7728
|
-
recoveryToken: recoveryToken
|
|
8010
|
+
recoveryToken: recoveryToken,
|
|
8011
|
+
maxAge: maxAge
|
|
7729
8012
|
});
|
|
7730
8013
|
case 14:
|
|
7731
8014
|
interactResponse = _context.sent;
|
|
@@ -7754,18 +8037,18 @@ function _getDataFromIntrospect() {
|
|
|
7754
8037
|
}));
|
|
7755
8038
|
return _getDataFromIntrospect.apply(this, arguments);
|
|
7756
8039
|
}
|
|
7757
|
-
function getDataFromRemediate(_x3) {
|
|
8040
|
+
function getDataFromRemediate(_x3, _x4) {
|
|
7758
8041
|
return _getDataFromRemediate.apply(this, arguments);
|
|
7759
8042
|
}
|
|
7760
8043
|
function _getDataFromRemediate() {
|
|
7761
|
-
_getDataFromRemediate = _asyncToGenerator( _regeneratorRuntime.mark(function _callee2(data) {
|
|
7762
|
-
var idxResponse, options, values, autoRemediate, remediators, actions, flow, step, shouldProceedWithEmailAuthenticator, shouldRemediate, _yield$remediate, idxResponseFromRemediation, nextStep, canceled;
|
|
8044
|
+
_getDataFromRemediate = _asyncToGenerator( _regeneratorRuntime.mark(function _callee2(authClient, data) {
|
|
8045
|
+
var idxResponse, options, values, autoRemediate, remediators, actions, flow, step, shouldProceedWithEmailAuthenticator, useGenericRemediator, shouldRemediate, _yield$remediate, idxResponseFromRemediation, nextStep, canceled;
|
|
7763
8046
|
return _regeneratorRuntime.wrap(function _callee2$(_context2) {
|
|
7764
8047
|
while (1) {
|
|
7765
8048
|
switch (_context2.prev = _context2.next) {
|
|
7766
8049
|
case 0:
|
|
7767
8050
|
idxResponse = data.idxResponse, options = data.options, values = _valuesInstanceProperty(data);
|
|
7768
|
-
autoRemediate = options.autoRemediate, remediators = options.remediators, actions = options.actions, flow = options.flow, step = options.step, shouldProceedWithEmailAuthenticator = options.shouldProceedWithEmailAuthenticator;
|
|
8051
|
+
autoRemediate = options.autoRemediate, remediators = options.remediators, actions = options.actions, flow = options.flow, step = options.step, shouldProceedWithEmailAuthenticator = options.shouldProceedWithEmailAuthenticator, useGenericRemediator = options.useGenericRemediator;
|
|
7769
8052
|
shouldRemediate = autoRemediate !== false && (remediators || actions || step);
|
|
7770
8053
|
if (shouldRemediate) {
|
|
7771
8054
|
_context2.next = 5;
|
|
@@ -7777,12 +8060,13 @@ function _getDataFromRemediate() {
|
|
|
7777
8060
|
stateHandle: idxResponse.rawIdxState.stateHandle
|
|
7778
8061
|
});
|
|
7779
8062
|
_context2.next = 8;
|
|
7780
|
-
return remediate(idxResponse, values, {
|
|
8063
|
+
return remediate(authClient, idxResponse, values, {
|
|
7781
8064
|
remediators: remediators,
|
|
7782
8065
|
actions: actions,
|
|
7783
8066
|
flow: flow,
|
|
7784
8067
|
step: step,
|
|
7785
|
-
shouldProceedWithEmailAuthenticator: shouldProceedWithEmailAuthenticator
|
|
8068
|
+
shouldProceedWithEmailAuthenticator: shouldProceedWithEmailAuthenticator,
|
|
8069
|
+
useGenericRemediator: useGenericRemediator
|
|
7786
8070
|
});
|
|
7787
8071
|
case 8:
|
|
7788
8072
|
_yield$remediate = _context2.sent;
|
|
@@ -7804,7 +8088,7 @@ function _getDataFromRemediate() {
|
|
|
7804
8088
|
}));
|
|
7805
8089
|
return _getDataFromRemediate.apply(this, arguments);
|
|
7806
8090
|
}
|
|
7807
|
-
function getTokens(
|
|
8091
|
+
function getTokens(_x5, _x6) {
|
|
7808
8092
|
return _getTokens.apply(this, arguments);
|
|
7809
8093
|
}
|
|
7810
8094
|
function _getTokens() {
|
|
@@ -7838,7 +8122,7 @@ function _getTokens() {
|
|
|
7838
8122
|
}));
|
|
7839
8123
|
return _getTokens.apply(this, arguments);
|
|
7840
8124
|
}
|
|
7841
|
-
function finalizeData(
|
|
8125
|
+
function finalizeData(_x7, _x8) {
|
|
7842
8126
|
return _finalizeData.apply(this, arguments);
|
|
7843
8127
|
}
|
|
7844
8128
|
function _finalizeData() {
|
|
@@ -7856,7 +8140,7 @@ function _finalizeData() {
|
|
|
7856
8140
|
if (idxResponse) {
|
|
7857
8141
|
shouldSaveResponse = !!(idxResponse.requestDidSucceed || idxResponse.stepUp);
|
|
7858
8142
|
enabledFeatures = getEnabledFeatures(idxResponse);
|
|
7859
|
-
availableSteps = getAvailableSteps(idxResponse);
|
|
8143
|
+
availableSteps = getAvailableSteps(authClient, idxResponse, options.useGenericRemediator);
|
|
7860
8144
|
messages = getMessagesFromResponse(idxResponse);
|
|
7861
8145
|
terminal = isTerminalResponse(idxResponse);
|
|
7862
8146
|
}
|
|
@@ -7947,7 +8231,7 @@ function handleError(err, data) {
|
|
|
7947
8231
|
shouldClearTransaction: shouldClearTransaction
|
|
7948
8232
|
});
|
|
7949
8233
|
}
|
|
7950
|
-
function run(
|
|
8234
|
+
function run(_x9) {
|
|
7951
8235
|
return _run.apply(this, arguments);
|
|
7952
8236
|
}
|
|
7953
8237
|
function _run() {
|
|
@@ -7995,7 +8279,7 @@ function _run() {
|
|
|
7995
8279
|
case 6:
|
|
7996
8280
|
data = _context5.sent;
|
|
7997
8281
|
_context5.next = 9;
|
|
7998
|
-
return getDataFromRemediate(data);
|
|
8282
|
+
return getDataFromRemediate(authClient, data);
|
|
7999
8283
|
case 9:
|
|
8000
8284
|
data = _context5.sent;
|
|
8001
8285
|
_context5.next = 15;
|
|
@@ -8180,52 +8464,6 @@ function _handleEmailVerifyCallback() {
|
|
|
8180
8464
|
return _handleEmailVerifyCallback.apply(this, arguments);
|
|
8181
8465
|
}
|
|
8182
8466
|
|
|
8183
|
-
function canProceed(authClient) {
|
|
8184
|
-
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
8185
|
-
var meta = getSavedTransactionMeta(authClient, options);
|
|
8186
|
-
return !!(meta || options.stateHandle);
|
|
8187
|
-
}
|
|
8188
|
-
function proceed(_x) {
|
|
8189
|
-
return _proceed.apply(this, arguments);
|
|
8190
|
-
}
|
|
8191
|
-
function _proceed() {
|
|
8192
|
-
_proceed = _asyncToGenerator( _regeneratorRuntime.mark(function _callee(authClient) {
|
|
8193
|
-
var options,
|
|
8194
|
-
flow,
|
|
8195
|
-
state,
|
|
8196
|
-
meta,
|
|
8197
|
-
_args = arguments;
|
|
8198
|
-
return _regeneratorRuntime.wrap(function _callee$(_context) {
|
|
8199
|
-
while (1) {
|
|
8200
|
-
switch (_context.prev = _context.next) {
|
|
8201
|
-
case 0:
|
|
8202
|
-
options = _args.length > 1 && _args[1] !== undefined ? _args[1] : {};
|
|
8203
|
-
if (canProceed(authClient, options)) {
|
|
8204
|
-
_context.next = 3;
|
|
8205
|
-
break;
|
|
8206
|
-
}
|
|
8207
|
-
throw new AuthSdkError('Unable to proceed: saved transaction could not be loaded');
|
|
8208
|
-
case 3:
|
|
8209
|
-
flow = options.flow, state = options.state;
|
|
8210
|
-
if (!flow) {
|
|
8211
|
-
meta = getSavedTransactionMeta(authClient, {
|
|
8212
|
-
state: state
|
|
8213
|
-
});
|
|
8214
|
-
flow = meta === null || meta === void 0 ? void 0 : meta.flow;
|
|
8215
|
-
}
|
|
8216
|
-
return _context.abrupt("return", run(authClient, _Object$assign(_Object$assign({}, options), {
|
|
8217
|
-
flow: flow
|
|
8218
|
-
})));
|
|
8219
|
-
case 6:
|
|
8220
|
-
case "end":
|
|
8221
|
-
return _context.stop();
|
|
8222
|
-
}
|
|
8223
|
-
}
|
|
8224
|
-
}, _callee);
|
|
8225
|
-
}));
|
|
8226
|
-
return _proceed.apply(this, arguments);
|
|
8227
|
-
}
|
|
8228
|
-
|
|
8229
8467
|
function poll(_x) {
|
|
8230
8468
|
return _poll.apply(this, arguments);
|
|
8231
8469
|
}
|
|
@@ -8514,7 +8752,7 @@ function _unlockAccount() {
|
|
|
8514
8752
|
var OktaUserAgent = function () {
|
|
8515
8753
|
function OktaUserAgent() {
|
|
8516
8754
|
_classCallCheck(this, OktaUserAgent);
|
|
8517
|
-
this.environments = ["okta-auth-js/".concat("6.
|
|
8755
|
+
this.environments = ["okta-auth-js/".concat("6.5.0")];
|
|
8518
8756
|
}
|
|
8519
8757
|
_createClass(OktaUserAgent, [{
|
|
8520
8758
|
key: "addEnvironment",
|
|
@@ -8532,7 +8770,7 @@ var OktaUserAgent = function () {
|
|
|
8532
8770
|
}, {
|
|
8533
8771
|
key: "getVersion",
|
|
8534
8772
|
value: function getVersion() {
|
|
8535
|
-
return "6.
|
|
8773
|
+
return "6.5.0";
|
|
8536
8774
|
}
|
|
8537
8775
|
}, {
|
|
8538
8776
|
key: "maybeAddNodeEnvironment",
|