@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.node.mjs
CHANGED
|
@@ -62,11 +62,11 @@ import _Number$isInteger from '@babel/runtime-corejs3/core-js-stable/number/is-i
|
|
|
62
62
|
import _URL2 from '@babel/runtime-corejs3/core-js-stable/url';
|
|
63
63
|
import Emitter from 'tiny-emitter';
|
|
64
64
|
|
|
65
|
-
function _createSuper$
|
|
66
|
-
function _isNativeReflectConstruct$
|
|
65
|
+
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); }; }
|
|
66
|
+
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; } }
|
|
67
67
|
var CustomError = function (_Error) {
|
|
68
68
|
_inherits(CustomError, _Error);
|
|
69
|
-
var _super = _createSuper$
|
|
69
|
+
var _super = _createSuper$y(CustomError);
|
|
70
70
|
function CustomError(message) {
|
|
71
71
|
var _this;
|
|
72
72
|
_classCallCheck(this, CustomError);
|
|
@@ -77,11 +77,11 @@ var CustomError = function (_Error) {
|
|
|
77
77
|
return CustomError;
|
|
78
78
|
}( _wrapNativeSuper(Error));
|
|
79
79
|
|
|
80
|
-
function _createSuper$
|
|
81
|
-
function _isNativeReflectConstruct$
|
|
80
|
+
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); }; }
|
|
81
|
+
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; } }
|
|
82
82
|
var AuthApiError = function (_CustomError) {
|
|
83
83
|
_inherits(AuthApiError, _CustomError);
|
|
84
|
-
var _super = _createSuper$
|
|
84
|
+
var _super = _createSuper$x(AuthApiError);
|
|
85
85
|
function AuthApiError(err, xhr) {
|
|
86
86
|
var _this;
|
|
87
87
|
_classCallCheck(this, AuthApiError);
|
|
@@ -101,11 +101,11 @@ var AuthApiError = function (_CustomError) {
|
|
|
101
101
|
return AuthApiError;
|
|
102
102
|
}(CustomError);
|
|
103
103
|
|
|
104
|
-
function _createSuper$
|
|
105
|
-
function _isNativeReflectConstruct$
|
|
104
|
+
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); }; }
|
|
105
|
+
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; } }
|
|
106
106
|
var AuthPollStopError = function (_CustomError) {
|
|
107
107
|
_inherits(AuthPollStopError, _CustomError);
|
|
108
|
-
var _super = _createSuper$
|
|
108
|
+
var _super = _createSuper$w(AuthPollStopError);
|
|
109
109
|
function AuthPollStopError() {
|
|
110
110
|
_classCallCheck(this, AuthPollStopError);
|
|
111
111
|
var message = 'The poll was stopped by the sdk';
|
|
@@ -114,11 +114,11 @@ var AuthPollStopError = function (_CustomError) {
|
|
|
114
114
|
return AuthPollStopError;
|
|
115
115
|
}(CustomError);
|
|
116
116
|
|
|
117
|
-
function _createSuper$
|
|
118
|
-
function _isNativeReflectConstruct$
|
|
117
|
+
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); }; }
|
|
118
|
+
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; } }
|
|
119
119
|
var AuthSdkError = function (_CustomError) {
|
|
120
120
|
_inherits(AuthSdkError, _CustomError);
|
|
121
|
-
var _super = _createSuper$
|
|
121
|
+
var _super = _createSuper$v(AuthSdkError);
|
|
122
122
|
function AuthSdkError(msg, xhr) {
|
|
123
123
|
var _this;
|
|
124
124
|
_classCallCheck(this, AuthSdkError);
|
|
@@ -137,11 +137,11 @@ var AuthSdkError = function (_CustomError) {
|
|
|
137
137
|
return AuthSdkError;
|
|
138
138
|
}(CustomError);
|
|
139
139
|
|
|
140
|
-
function _createSuper$
|
|
141
|
-
function _isNativeReflectConstruct$
|
|
140
|
+
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); }; }
|
|
141
|
+
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; } }
|
|
142
142
|
var OAuthError = function (_CustomError) {
|
|
143
143
|
_inherits(OAuthError, _CustomError);
|
|
144
|
-
var _super = _createSuper$
|
|
144
|
+
var _super = _createSuper$u(OAuthError);
|
|
145
145
|
function OAuthError(errorCode, summary) {
|
|
146
146
|
var _this;
|
|
147
147
|
_classCallCheck(this, OAuthError);
|
|
@@ -4756,6 +4756,7 @@ function mergeOptions(options, args) {
|
|
|
4756
4756
|
}
|
|
4757
4757
|
function buildOptions() {
|
|
4758
4758
|
var args = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
4759
|
+
var _a;
|
|
4759
4760
|
assertValidConfig(args);
|
|
4760
4761
|
args = mergeOptions(getDefaultOptions(), args);
|
|
4761
4762
|
return removeNils({
|
|
@@ -4789,6 +4790,9 @@ function buildOptions() {
|
|
|
4789
4790
|
codeChallengeMethod: args.codeChallengeMethod,
|
|
4790
4791
|
recoveryToken: args.recoveryToken,
|
|
4791
4792
|
activationToken: args.activationToken,
|
|
4793
|
+
idx: {
|
|
4794
|
+
useGenericRemediator: !!((_a = args.idx) === null || _a === void 0 ? void 0 : _a.useGenericRemediator)
|
|
4795
|
+
},
|
|
4792
4796
|
ignoreSignature: !!args.ignoreSignature,
|
|
4793
4797
|
clientSecret: args.clientSecret
|
|
4794
4798
|
});
|
|
@@ -4811,6 +4815,8 @@ function _createTransactionMeta() {
|
|
|
4811
4815
|
activationToken,
|
|
4812
4816
|
_Object$assign2$recov,
|
|
4813
4817
|
recoveryToken,
|
|
4818
|
+
_Object$assign2$maxAg,
|
|
4819
|
+
maxAge,
|
|
4814
4820
|
meta,
|
|
4815
4821
|
_args = arguments;
|
|
4816
4822
|
return _regeneratorRuntime.wrap(function _callee$(_context) {
|
|
@@ -4823,12 +4829,13 @@ function _createTransactionMeta() {
|
|
|
4823
4829
|
case 3:
|
|
4824
4830
|
tokenParams = _context.sent;
|
|
4825
4831
|
pkceMeta = createOAuthMeta(authClient, tokenParams);
|
|
4826
|
-
_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;
|
|
4832
|
+
_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;
|
|
4827
4833
|
meta = _Object$assign(_Object$assign({}, pkceMeta), {
|
|
4828
4834
|
flow: flow,
|
|
4829
4835
|
withCredentials: withCredentials,
|
|
4830
4836
|
activationToken: activationToken,
|
|
4831
|
-
recoveryToken: recoveryToken
|
|
4837
|
+
recoveryToken: recoveryToken,
|
|
4838
|
+
maxAge: maxAge
|
|
4832
4839
|
});
|
|
4833
4840
|
return _context.abrupt("return", meta);
|
|
4834
4841
|
case 8:
|
|
@@ -4956,6 +4963,7 @@ function _interact() {
|
|
|
4956
4963
|
codeChallengeMethod,
|
|
4957
4964
|
activationToken,
|
|
4958
4965
|
recoveryToken,
|
|
4966
|
+
maxAge,
|
|
4959
4967
|
clientSecret,
|
|
4960
4968
|
url,
|
|
4961
4969
|
params,
|
|
@@ -4982,31 +4990,30 @@ function _interact() {
|
|
|
4982
4990
|
case 7:
|
|
4983
4991
|
meta = _context.sent;
|
|
4984
4992
|
baseUrl = getOAuthBaseUrl(authClient);
|
|
4985
|
-
_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;
|
|
4993
|
+
_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;
|
|
4986
4994
|
clientSecret = options.clientSecret || authClient.options.clientSecret;
|
|
4987
4995
|
withCredentials = withCredentials !== null && withCredentials !== void 0 ? withCredentials : true;
|
|
4988
4996
|
url = "".concat(baseUrl, "/v1/interact");
|
|
4989
|
-
params = {
|
|
4997
|
+
params = _Object$assign(_Object$assign(_Object$assign(_Object$assign({
|
|
4990
4998
|
client_id: clientId,
|
|
4991
4999
|
scope: scopes.join(' '),
|
|
4992
5000
|
redirect_uri: redirectUri,
|
|
4993
5001
|
code_challenge: codeChallenge,
|
|
4994
5002
|
code_challenge_method: codeChallengeMethod,
|
|
4995
5003
|
state: state
|
|
4996
|
-
}
|
|
4997
|
-
|
|
4998
|
-
|
|
4999
|
-
|
|
5000
|
-
|
|
5001
|
-
|
|
5002
|
-
}
|
|
5003
|
-
|
|
5004
|
-
|
|
5005
|
-
}
|
|
5004
|
+
}, activationToken && {
|
|
5005
|
+
activation_token: activationToken
|
|
5006
|
+
}), recoveryToken && {
|
|
5007
|
+
recovery_token: recoveryToken
|
|
5008
|
+
}), clientSecret && {
|
|
5009
|
+
client_secret: clientSecret
|
|
5010
|
+
}), maxAge && {
|
|
5011
|
+
max_age: maxAge
|
|
5012
|
+
});
|
|
5006
5013
|
headers = {
|
|
5007
5014
|
'Content-Type': 'application/x-www-form-urlencoded'
|
|
5008
5015
|
};
|
|
5009
|
-
_context.next =
|
|
5016
|
+
_context.next = 17;
|
|
5010
5017
|
return httpRequest(authClient, {
|
|
5011
5018
|
method: 'POST',
|
|
5012
5019
|
url: url,
|
|
@@ -5014,7 +5021,7 @@ function _interact() {
|
|
|
5014
5021
|
withCredentials: withCredentials,
|
|
5015
5022
|
args: params
|
|
5016
5023
|
});
|
|
5017
|
-
case
|
|
5024
|
+
case 17:
|
|
5018
5025
|
resp = _context.sent;
|
|
5019
5026
|
interactionHandle = resp.interaction_handle;
|
|
5020
5027
|
newMeta = _Object$assign(_Object$assign({}, meta), {
|
|
@@ -5027,7 +5034,7 @@ function _interact() {
|
|
|
5027
5034
|
});
|
|
5028
5035
|
saveTransactionMeta(authClient, newMeta);
|
|
5029
5036
|
return _context.abrupt("return", getResponse(newMeta));
|
|
5030
|
-
case
|
|
5037
|
+
case 22:
|
|
5031
5038
|
case "end":
|
|
5032
5039
|
return _context.stop();
|
|
5033
5040
|
}
|
|
@@ -5275,11 +5282,14 @@ var expandRelatesTo = function expandRelatesTo(idxResponse, value) {
|
|
|
5275
5282
|
});
|
|
5276
5283
|
};
|
|
5277
5284
|
var convertRemediationAction = function convertRemediationAction(authClient, remediation, toPersist) {
|
|
5278
|
-
|
|
5279
|
-
|
|
5280
|
-
|
|
5281
|
-
|
|
5282
|
-
|
|
5285
|
+
if (remediation.rel) {
|
|
5286
|
+
var remediationActions = generateRemediationFunctions(authClient, [remediation], toPersist);
|
|
5287
|
+
var actionFn = remediationActions[remediation.name];
|
|
5288
|
+
return _Object$assign(_Object$assign({}, remediation), {
|
|
5289
|
+
action: actionFn
|
|
5290
|
+
});
|
|
5291
|
+
}
|
|
5292
|
+
return remediation;
|
|
5283
5293
|
};
|
|
5284
5294
|
var parseIdxResponse = function parseIdxResponse(authClient, idxResponse) {
|
|
5285
5295
|
var toPersist = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
|
|
@@ -5313,6 +5323,7 @@ function makeIdxState$1(authClient, idxResponse, toPersist, requestDidSucceed) {
|
|
|
5313
5323
|
var _ref = _asyncToGenerator( _regeneratorRuntime.mark(function _callee(remediationChoice) {
|
|
5314
5324
|
var paramsFromUser,
|
|
5315
5325
|
remediationChoiceObject,
|
|
5326
|
+
actionFn,
|
|
5316
5327
|
_args = arguments;
|
|
5317
5328
|
return _regeneratorRuntime.wrap(function _callee$(_context) {
|
|
5318
5329
|
while (1) {
|
|
@@ -5328,8 +5339,15 @@ function makeIdxState$1(authClient, idxResponse, toPersist, requestDidSucceed) {
|
|
|
5328
5339
|
}
|
|
5329
5340
|
return _context.abrupt("return", _Promise.reject("Unknown remediation choice: [".concat(remediationChoice, "]")));
|
|
5330
5341
|
case 4:
|
|
5342
|
+
actionFn = remediationChoiceObject.action;
|
|
5343
|
+
if (!(typeof actionFn !== 'function')) {
|
|
5344
|
+
_context.next = 7;
|
|
5345
|
+
break;
|
|
5346
|
+
}
|
|
5347
|
+
return _context.abrupt("return", _Promise.reject("Current remediation cannot make form submit action: [".concat(remediationChoice, "]")));
|
|
5348
|
+
case 7:
|
|
5331
5349
|
return _context.abrupt("return", remediationChoiceObject.action(paramsFromUser));
|
|
5332
|
-
case
|
|
5350
|
+
case 8:
|
|
5333
5351
|
case "end":
|
|
5334
5352
|
return _context.stop();
|
|
5335
5353
|
}
|
|
@@ -5660,7 +5678,7 @@ var Remediator = function () {
|
|
|
5660
5678
|
}
|
|
5661
5679
|
}, {
|
|
5662
5680
|
key: "getNextStep",
|
|
5663
|
-
value: function getNextStep(_context) {
|
|
5681
|
+
value: function getNextStep(_authClient, _context) {
|
|
5664
5682
|
var name = this.getName();
|
|
5665
5683
|
var inputs = this.getInputs();
|
|
5666
5684
|
var authenticator = this.getAuthenticator();
|
|
@@ -5797,11 +5815,11 @@ var Authenticator = function Authenticator(authenticator) {
|
|
|
5797
5815
|
this.meta = authenticator;
|
|
5798
5816
|
};
|
|
5799
5817
|
|
|
5800
|
-
function _createSuper$
|
|
5801
|
-
function _isNativeReflectConstruct$
|
|
5818
|
+
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); }; }
|
|
5819
|
+
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; } }
|
|
5802
5820
|
var VerificationCodeAuthenticator = function (_Authenticator) {
|
|
5803
5821
|
_inherits(VerificationCodeAuthenticator, _Authenticator);
|
|
5804
|
-
var _super = _createSuper$
|
|
5822
|
+
var _super = _createSuper$t(VerificationCodeAuthenticator);
|
|
5805
5823
|
function VerificationCodeAuthenticator() {
|
|
5806
5824
|
_classCallCheck(this, VerificationCodeAuthenticator);
|
|
5807
5825
|
return _super.apply(this, arguments);
|
|
@@ -5838,11 +5856,11 @@ var VerificationCodeAuthenticator = function (_Authenticator) {
|
|
|
5838
5856
|
return VerificationCodeAuthenticator;
|
|
5839
5857
|
}(Authenticator);
|
|
5840
5858
|
|
|
5841
|
-
function _createSuper$
|
|
5842
|
-
function _isNativeReflectConstruct$
|
|
5859
|
+
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); }; }
|
|
5860
|
+
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; } }
|
|
5843
5861
|
var OktaVerifyTotp = function (_VerificationCodeAuth) {
|
|
5844
5862
|
_inherits(OktaVerifyTotp, _VerificationCodeAuth);
|
|
5845
|
-
var _super = _createSuper$
|
|
5863
|
+
var _super = _createSuper$s(OktaVerifyTotp);
|
|
5846
5864
|
function OktaVerifyTotp() {
|
|
5847
5865
|
_classCallCheck(this, OktaVerifyTotp);
|
|
5848
5866
|
return _super.apply(this, arguments);
|
|
@@ -5862,11 +5880,11 @@ var OktaVerifyTotp = function (_VerificationCodeAuth) {
|
|
|
5862
5880
|
return OktaVerifyTotp;
|
|
5863
5881
|
}(VerificationCodeAuthenticator);
|
|
5864
5882
|
|
|
5865
|
-
function _createSuper$
|
|
5866
|
-
function _isNativeReflectConstruct$
|
|
5883
|
+
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); }; }
|
|
5884
|
+
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; } }
|
|
5867
5885
|
var OktaPassword = function (_Authenticator) {
|
|
5868
5886
|
_inherits(OktaPassword, _Authenticator);
|
|
5869
|
-
var _super = _createSuper$
|
|
5887
|
+
var _super = _createSuper$r(OktaPassword);
|
|
5870
5888
|
function OktaPassword() {
|
|
5871
5889
|
_classCallCheck(this, OktaPassword);
|
|
5872
5890
|
return _super.apply(this, arguments);
|
|
@@ -5902,11 +5920,11 @@ var OktaPassword = function (_Authenticator) {
|
|
|
5902
5920
|
return OktaPassword;
|
|
5903
5921
|
}(Authenticator);
|
|
5904
5922
|
|
|
5905
|
-
function _createSuper$
|
|
5906
|
-
function _isNativeReflectConstruct$
|
|
5923
|
+
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); }; }
|
|
5924
|
+
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; } }
|
|
5907
5925
|
var SecurityQuestionEnrollment = function (_Authenticator) {
|
|
5908
5926
|
_inherits(SecurityQuestionEnrollment, _Authenticator);
|
|
5909
|
-
var _super = _createSuper$
|
|
5927
|
+
var _super = _createSuper$q(SecurityQuestionEnrollment);
|
|
5910
5928
|
function SecurityQuestionEnrollment() {
|
|
5911
5929
|
_classCallCheck(this, SecurityQuestionEnrollment);
|
|
5912
5930
|
return _super.apply(this, arguments);
|
|
@@ -5960,11 +5978,11 @@ var SecurityQuestionEnrollment = function (_Authenticator) {
|
|
|
5960
5978
|
return SecurityQuestionEnrollment;
|
|
5961
5979
|
}(Authenticator);
|
|
5962
5980
|
|
|
5963
|
-
function _createSuper$
|
|
5964
|
-
function _isNativeReflectConstruct$
|
|
5981
|
+
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); }; }
|
|
5982
|
+
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; } }
|
|
5965
5983
|
var SecurityQuestionVerification = function (_Authenticator) {
|
|
5966
5984
|
_inherits(SecurityQuestionVerification, _Authenticator);
|
|
5967
|
-
var _super = _createSuper$
|
|
5985
|
+
var _super = _createSuper$p(SecurityQuestionVerification);
|
|
5968
5986
|
function SecurityQuestionVerification() {
|
|
5969
5987
|
_classCallCheck(this, SecurityQuestionVerification);
|
|
5970
5988
|
return _super.apply(this, arguments);
|
|
@@ -6005,11 +6023,11 @@ var SecurityQuestionVerification = function (_Authenticator) {
|
|
|
6005
6023
|
return SecurityQuestionVerification;
|
|
6006
6024
|
}(Authenticator);
|
|
6007
6025
|
|
|
6008
|
-
function _createSuper$
|
|
6009
|
-
function _isNativeReflectConstruct$
|
|
6026
|
+
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); }; }
|
|
6027
|
+
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; } }
|
|
6010
6028
|
var WebauthnEnrollment = function (_Authenticator) {
|
|
6011
6029
|
_inherits(WebauthnEnrollment, _Authenticator);
|
|
6012
|
-
var _super = _createSuper$
|
|
6030
|
+
var _super = _createSuper$o(WebauthnEnrollment);
|
|
6013
6031
|
function WebauthnEnrollment() {
|
|
6014
6032
|
_classCallCheck(this, WebauthnEnrollment);
|
|
6015
6033
|
return _super.apply(this, arguments);
|
|
@@ -6055,11 +6073,11 @@ var WebauthnEnrollment = function (_Authenticator) {
|
|
|
6055
6073
|
return WebauthnEnrollment;
|
|
6056
6074
|
}(Authenticator);
|
|
6057
6075
|
|
|
6058
|
-
function _createSuper$
|
|
6059
|
-
function _isNativeReflectConstruct$
|
|
6076
|
+
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); }; }
|
|
6077
|
+
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; } }
|
|
6060
6078
|
var WebauthnVerification = function (_Authenticator) {
|
|
6061
6079
|
_inherits(WebauthnVerification, _Authenticator);
|
|
6062
|
-
var _super = _createSuper$
|
|
6080
|
+
var _super = _createSuper$n(WebauthnVerification);
|
|
6063
6081
|
function WebauthnVerification() {
|
|
6064
6082
|
_classCallCheck(this, WebauthnVerification);
|
|
6065
6083
|
return _super.apply(this, arguments);
|
|
@@ -6140,11 +6158,11 @@ function getAuthenticator(remediation) {
|
|
|
6140
6158
|
}
|
|
6141
6159
|
}
|
|
6142
6160
|
|
|
6143
|
-
function _createSuper$
|
|
6144
|
-
function _isNativeReflectConstruct$
|
|
6161
|
+
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); }; }
|
|
6162
|
+
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; } }
|
|
6145
6163
|
var VerifyAuthenticator = function (_Remediator) {
|
|
6146
6164
|
_inherits(VerifyAuthenticator, _Remediator);
|
|
6147
|
-
var _super = _createSuper$
|
|
6165
|
+
var _super = _createSuper$m(VerifyAuthenticator);
|
|
6148
6166
|
function VerifyAuthenticator(remediation) {
|
|
6149
6167
|
var _this;
|
|
6150
6168
|
var values = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
@@ -6155,9 +6173,9 @@ var VerifyAuthenticator = function (_Remediator) {
|
|
|
6155
6173
|
}
|
|
6156
6174
|
_createClass(VerifyAuthenticator, [{
|
|
6157
6175
|
key: "getNextStep",
|
|
6158
|
-
value: function getNextStep(context) {
|
|
6176
|
+
value: function getNextStep(authClient, context) {
|
|
6159
6177
|
var _a;
|
|
6160
|
-
var nextStep = _get(_getPrototypeOf(VerifyAuthenticator.prototype), "getNextStep", this).call(this, context);
|
|
6178
|
+
var nextStep = _get(_getPrototypeOf(VerifyAuthenticator.prototype), "getNextStep", this).call(this, authClient, context);
|
|
6161
6179
|
var authenticatorEnrollments = (_a = context === null || context === void 0 ? void 0 : context.authenticatorEnrollments) === null || _a === void 0 ? void 0 : _a.value;
|
|
6162
6180
|
return _Object$assign(_Object$assign({}, nextStep), {
|
|
6163
6181
|
authenticatorEnrollments: authenticatorEnrollments
|
|
@@ -6195,11 +6213,11 @@ var VerifyAuthenticator = function (_Remediator) {
|
|
|
6195
6213
|
return VerifyAuthenticator;
|
|
6196
6214
|
}(Remediator);
|
|
6197
6215
|
|
|
6198
|
-
function _createSuper$
|
|
6199
|
-
function _isNativeReflectConstruct$
|
|
6216
|
+
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); }; }
|
|
6217
|
+
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; } }
|
|
6200
6218
|
var EnrollAuthenticator = function (_VerifyAuthenticator) {
|
|
6201
6219
|
_inherits(EnrollAuthenticator, _VerifyAuthenticator);
|
|
6202
|
-
var _super = _createSuper$
|
|
6220
|
+
var _super = _createSuper$l(EnrollAuthenticator);
|
|
6203
6221
|
function EnrollAuthenticator() {
|
|
6204
6222
|
_classCallCheck(this, EnrollAuthenticator);
|
|
6205
6223
|
return _super.apply(this, arguments);
|
|
@@ -6208,11 +6226,11 @@ var EnrollAuthenticator = function (_VerifyAuthenticator) {
|
|
|
6208
6226
|
}(VerifyAuthenticator);
|
|
6209
6227
|
EnrollAuthenticator.remediationName = 'enroll-authenticator';
|
|
6210
6228
|
|
|
6211
|
-
function _createSuper$
|
|
6212
|
-
function _isNativeReflectConstruct$
|
|
6229
|
+
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); }; }
|
|
6230
|
+
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; } }
|
|
6213
6231
|
var EnrollPoll = function (_Remediator) {
|
|
6214
6232
|
_inherits(EnrollPoll, _Remediator);
|
|
6215
|
-
var _super = _createSuper$
|
|
6233
|
+
var _super = _createSuper$k(EnrollPoll);
|
|
6216
6234
|
function EnrollPoll() {
|
|
6217
6235
|
_classCallCheck(this, EnrollPoll);
|
|
6218
6236
|
return _super.apply(this, arguments);
|
|
@@ -6224,8 +6242,8 @@ var EnrollPoll = function (_Remediator) {
|
|
|
6224
6242
|
}
|
|
6225
6243
|
}, {
|
|
6226
6244
|
key: "getNextStep",
|
|
6227
|
-
value: function getNextStep(context) {
|
|
6228
|
-
var common = _get(_getPrototypeOf(EnrollPoll.prototype), "getNextStep", this).call(this, context);
|
|
6245
|
+
value: function getNextStep(authClient, context) {
|
|
6246
|
+
var common = _get(_getPrototypeOf(EnrollPoll.prototype), "getNextStep", this).call(this, authClient, context);
|
|
6229
6247
|
var authenticator = this.getAuthenticator();
|
|
6230
6248
|
if (!authenticator && (context === null || context === void 0 ? void 0 : context.currentAuthenticator)) {
|
|
6231
6249
|
authenticator = context.currentAuthenticator.value;
|
|
@@ -6255,11 +6273,11 @@ var EnrollPoll = function (_Remediator) {
|
|
|
6255
6273
|
}(Remediator);
|
|
6256
6274
|
EnrollPoll.remediationName = 'enroll-poll';
|
|
6257
6275
|
|
|
6258
|
-
function _createSuper$
|
|
6259
|
-
function _isNativeReflectConstruct$
|
|
6276
|
+
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); }; }
|
|
6277
|
+
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; } }
|
|
6260
6278
|
var SelectEnrollmentChannel = function (_Remediator) {
|
|
6261
6279
|
_inherits(SelectEnrollmentChannel, _Remediator);
|
|
6262
|
-
var _super = _createSuper$
|
|
6280
|
+
var _super = _createSuper$j(SelectEnrollmentChannel);
|
|
6263
6281
|
function SelectEnrollmentChannel() {
|
|
6264
6282
|
_classCallCheck(this, SelectEnrollmentChannel);
|
|
6265
6283
|
return _super.apply(this, arguments);
|
|
@@ -6271,8 +6289,8 @@ var SelectEnrollmentChannel = function (_Remediator) {
|
|
|
6271
6289
|
}
|
|
6272
6290
|
}, {
|
|
6273
6291
|
key: "getNextStep",
|
|
6274
|
-
value: function getNextStep(context) {
|
|
6275
|
-
var common = _get(_getPrototypeOf(SelectEnrollmentChannel.prototype), "getNextStep", this).call(this);
|
|
6292
|
+
value: function getNextStep(authClient, context) {
|
|
6293
|
+
var common = _get(_getPrototypeOf(SelectEnrollmentChannel.prototype), "getNextStep", this).call(this, authClient, context);
|
|
6276
6294
|
var options = this.getChannels();
|
|
6277
6295
|
var authenticator = context.currentAuthenticator.value;
|
|
6278
6296
|
return _Object$assign(_Object$assign(_Object$assign({}, common), options && {
|
|
@@ -6322,11 +6340,11 @@ var SelectEnrollmentChannel = function (_Remediator) {
|
|
|
6322
6340
|
}(Remediator);
|
|
6323
6341
|
SelectEnrollmentChannel.remediationName = 'select-enrollment-channel';
|
|
6324
6342
|
|
|
6325
|
-
function _createSuper$
|
|
6326
|
-
function _isNativeReflectConstruct$
|
|
6343
|
+
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); }; }
|
|
6344
|
+
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; } }
|
|
6327
6345
|
var EnrollmentChannelData = function (_Remediator) {
|
|
6328
6346
|
_inherits(EnrollmentChannelData, _Remediator);
|
|
6329
|
-
var _super = _createSuper$
|
|
6347
|
+
var _super = _createSuper$i(EnrollmentChannelData);
|
|
6330
6348
|
function EnrollmentChannelData() {
|
|
6331
6349
|
_classCallCheck(this, EnrollmentChannelData);
|
|
6332
6350
|
return _super.apply(this, arguments);
|
|
@@ -6358,8 +6376,8 @@ var EnrollmentChannelData = function (_Remediator) {
|
|
|
6358
6376
|
}
|
|
6359
6377
|
}, {
|
|
6360
6378
|
key: "getNextStep",
|
|
6361
|
-
value: function getNextStep(context) {
|
|
6362
|
-
var common = _get(_getPrototypeOf(EnrollmentChannelData.prototype), "getNextStep", this).call(this);
|
|
6379
|
+
value: function getNextStep(authClient, context) {
|
|
6380
|
+
var common = _get(_getPrototypeOf(EnrollmentChannelData.prototype), "getNextStep", this).call(this, authClient, context);
|
|
6363
6381
|
var authenticator = context.currentAuthenticator.value;
|
|
6364
6382
|
return _Object$assign(_Object$assign({}, common), {
|
|
6365
6383
|
authenticator: authenticator
|
|
@@ -6392,11 +6410,11 @@ var EnrollmentChannelData = function (_Remediator) {
|
|
|
6392
6410
|
}(Remediator);
|
|
6393
6411
|
EnrollmentChannelData.remediationName = 'enrollment-channel-data';
|
|
6394
6412
|
|
|
6395
|
-
function _createSuper$
|
|
6396
|
-
function _isNativeReflectConstruct$
|
|
6413
|
+
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); }; }
|
|
6414
|
+
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; } }
|
|
6397
6415
|
var ChallengeAuthenticator = function (_VerifyAuthenticator) {
|
|
6398
6416
|
_inherits(ChallengeAuthenticator, _VerifyAuthenticator);
|
|
6399
|
-
var _super = _createSuper$
|
|
6417
|
+
var _super = _createSuper$h(ChallengeAuthenticator);
|
|
6400
6418
|
function ChallengeAuthenticator() {
|
|
6401
6419
|
_classCallCheck(this, ChallengeAuthenticator);
|
|
6402
6420
|
return _super.apply(this, arguments);
|
|
@@ -6405,11 +6423,11 @@ var ChallengeAuthenticator = function (_VerifyAuthenticator) {
|
|
|
6405
6423
|
}(VerifyAuthenticator);
|
|
6406
6424
|
ChallengeAuthenticator.remediationName = 'challenge-authenticator';
|
|
6407
6425
|
|
|
6408
|
-
function _createSuper$
|
|
6409
|
-
function _isNativeReflectConstruct$
|
|
6426
|
+
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); }; }
|
|
6427
|
+
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; } }
|
|
6410
6428
|
var ChallengePoll = function (_EnrollPoll) {
|
|
6411
6429
|
_inherits(ChallengePoll, _EnrollPoll);
|
|
6412
|
-
var _super = _createSuper$
|
|
6430
|
+
var _super = _createSuper$g(ChallengePoll);
|
|
6413
6431
|
function ChallengePoll() {
|
|
6414
6432
|
_classCallCheck(this, ChallengePoll);
|
|
6415
6433
|
return _super.apply(this, arguments);
|
|
@@ -6424,11 +6442,11 @@ var ChallengePoll = function (_EnrollPoll) {
|
|
|
6424
6442
|
}(EnrollPoll);
|
|
6425
6443
|
ChallengePoll.remediationName = 'challenge-poll';
|
|
6426
6444
|
|
|
6427
|
-
function _createSuper$
|
|
6428
|
-
function _isNativeReflectConstruct$
|
|
6445
|
+
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); }; }
|
|
6446
|
+
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; } }
|
|
6429
6447
|
var ResetAuthenticator = function (_VerifyAuthenticator) {
|
|
6430
6448
|
_inherits(ResetAuthenticator, _VerifyAuthenticator);
|
|
6431
|
-
var _super = _createSuper$
|
|
6449
|
+
var _super = _createSuper$f(ResetAuthenticator);
|
|
6432
6450
|
function ResetAuthenticator() {
|
|
6433
6451
|
_classCallCheck(this, ResetAuthenticator);
|
|
6434
6452
|
return _super.apply(this, arguments);
|
|
@@ -6437,11 +6455,11 @@ var ResetAuthenticator = function (_VerifyAuthenticator) {
|
|
|
6437
6455
|
}(VerifyAuthenticator);
|
|
6438
6456
|
ResetAuthenticator.remediationName = 'reset-authenticator';
|
|
6439
6457
|
|
|
6440
|
-
function _createSuper$
|
|
6441
|
-
function _isNativeReflectConstruct$
|
|
6458
|
+
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); }; }
|
|
6459
|
+
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; } }
|
|
6442
6460
|
var EnrollProfile = function (_Remediator) {
|
|
6443
6461
|
_inherits(EnrollProfile, _Remediator);
|
|
6444
|
-
var _super = _createSuper$
|
|
6462
|
+
var _super = _createSuper$e(EnrollProfile);
|
|
6445
6463
|
function EnrollProfile() {
|
|
6446
6464
|
_classCallCheck(this, EnrollProfile);
|
|
6447
6465
|
return _super.apply(this, arguments);
|
|
@@ -6503,11 +6521,11 @@ var EnrollProfile = function (_Remediator) {
|
|
|
6503
6521
|
}(Remediator);
|
|
6504
6522
|
EnrollProfile.remediationName = 'enroll-profile';
|
|
6505
6523
|
|
|
6506
|
-
function _createSuper$
|
|
6507
|
-
function _isNativeReflectConstruct$
|
|
6524
|
+
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); }; }
|
|
6525
|
+
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; } }
|
|
6508
6526
|
var Identify = function (_Remediator) {
|
|
6509
6527
|
_inherits(Identify, _Remediator);
|
|
6510
|
-
var _super = _createSuper$
|
|
6528
|
+
var _super = _createSuper$d(Identify);
|
|
6511
6529
|
function Identify() {
|
|
6512
6530
|
var _this;
|
|
6513
6531
|
_classCallCheck(this, Identify);
|
|
@@ -6550,11 +6568,11 @@ var Identify = function (_Remediator) {
|
|
|
6550
6568
|
}(Remediator);
|
|
6551
6569
|
Identify.remediationName = 'identify';
|
|
6552
6570
|
|
|
6553
|
-
function _createSuper$
|
|
6554
|
-
function _isNativeReflectConstruct$
|
|
6571
|
+
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); }; }
|
|
6572
|
+
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; } }
|
|
6555
6573
|
var ReEnrollAuthenticator = function (_Remediator) {
|
|
6556
6574
|
_inherits(ReEnrollAuthenticator, _Remediator);
|
|
6557
|
-
var _super = _createSuper$
|
|
6575
|
+
var _super = _createSuper$c(ReEnrollAuthenticator);
|
|
6558
6576
|
function ReEnrollAuthenticator() {
|
|
6559
6577
|
_classCallCheck(this, ReEnrollAuthenticator);
|
|
6560
6578
|
return _super.apply(this, arguments);
|
|
@@ -6584,11 +6602,11 @@ var ReEnrollAuthenticator = function (_Remediator) {
|
|
|
6584
6602
|
}(Remediator);
|
|
6585
6603
|
ReEnrollAuthenticator.remediationName = 'reenroll-authenticator';
|
|
6586
6604
|
|
|
6587
|
-
function _createSuper$
|
|
6588
|
-
function _isNativeReflectConstruct$
|
|
6605
|
+
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); }; }
|
|
6606
|
+
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; } }
|
|
6589
6607
|
var RedirectIdp = function (_Remediator) {
|
|
6590
6608
|
_inherits(RedirectIdp, _Remediator);
|
|
6591
|
-
var _super = _createSuper$
|
|
6609
|
+
var _super = _createSuper$b(RedirectIdp);
|
|
6592
6610
|
function RedirectIdp() {
|
|
6593
6611
|
_classCallCheck(this, RedirectIdp);
|
|
6594
6612
|
return _super.apply(this, arguments);
|
|
@@ -6619,13 +6637,13 @@ var RedirectIdp = function (_Remediator) {
|
|
|
6619
6637
|
RedirectIdp.remediationName = 'redirect-idp';
|
|
6620
6638
|
|
|
6621
6639
|
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; } } }; }
|
|
6622
|
-
function _unsupportedIterableToArray$2(o, minLen) { var
|
|
6640
|
+
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); }
|
|
6623
6641
|
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; }
|
|
6624
|
-
function _createSuper$
|
|
6625
|
-
function _isNativeReflectConstruct$
|
|
6642
|
+
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); }; }
|
|
6643
|
+
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; } }
|
|
6626
6644
|
var SelectAuthenticator = function (_Remediator) {
|
|
6627
6645
|
_inherits(SelectAuthenticator, _Remediator);
|
|
6628
|
-
var _super = _createSuper$
|
|
6646
|
+
var _super = _createSuper$a(SelectAuthenticator);
|
|
6629
6647
|
function SelectAuthenticator() {
|
|
6630
6648
|
_classCallCheck(this, SelectAuthenticator);
|
|
6631
6649
|
return _super.apply(this, arguments);
|
|
@@ -6681,9 +6699,9 @@ var SelectAuthenticator = function (_Remediator) {
|
|
|
6681
6699
|
}
|
|
6682
6700
|
}, {
|
|
6683
6701
|
key: "getNextStep",
|
|
6684
|
-
value: function getNextStep() {
|
|
6702
|
+
value: function getNextStep(authClient) {
|
|
6685
6703
|
var _context;
|
|
6686
|
-
var common = _get(_getPrototypeOf(SelectAuthenticator.prototype), "getNextStep", this).call(this);
|
|
6704
|
+
var common = _get(_getPrototypeOf(SelectAuthenticator.prototype), "getNextStep", this).call(this, authClient);
|
|
6687
6705
|
var authenticatorFromRemediation = getAuthenticatorFromRemediation(this.remediation);
|
|
6688
6706
|
var options = _mapInstanceProperty(_context = authenticatorFromRemediation.options).call(_context, function (option) {
|
|
6689
6707
|
var label = option.label,
|
|
@@ -6722,19 +6740,29 @@ var SelectAuthenticator = function (_Remediator) {
|
|
|
6722
6740
|
}
|
|
6723
6741
|
}, {
|
|
6724
6742
|
key: "getInputAuthenticator",
|
|
6725
|
-
value: function getInputAuthenticator() {
|
|
6743
|
+
value: function getInputAuthenticator(remediation) {
|
|
6744
|
+
var _context3;
|
|
6745
|
+
var options = _mapInstanceProperty(_context3 = remediation.options).call(_context3, function (_ref3) {
|
|
6746
|
+
var label = _ref3.label,
|
|
6747
|
+
relatesTo = _ref3.relatesTo;
|
|
6748
|
+
return {
|
|
6749
|
+
label: label,
|
|
6750
|
+
value: relatesTo.key
|
|
6751
|
+
};
|
|
6752
|
+
});
|
|
6726
6753
|
return {
|
|
6727
6754
|
name: 'authenticator',
|
|
6728
|
-
|
|
6755
|
+
type: 'string',
|
|
6756
|
+
options: options
|
|
6729
6757
|
};
|
|
6730
6758
|
}
|
|
6731
6759
|
}, {
|
|
6732
6760
|
key: "getValuesAfterProceed",
|
|
6733
6761
|
value: function getValuesAfterProceed() {
|
|
6734
|
-
var
|
|
6762
|
+
var _context4,
|
|
6735
6763
|
_this = this;
|
|
6736
6764
|
this.values = _get(_getPrototypeOf(SelectAuthenticator.prototype), "getValuesAfterProceed", this).call(this);
|
|
6737
|
-
var authenticators = _filterInstanceProperty(
|
|
6765
|
+
var authenticators = _filterInstanceProperty(_context4 = _valuesInstanceProperty(this).authenticators).call(_context4, function (authenticator) {
|
|
6738
6766
|
return compareAuthenticators(authenticator, _this.selectedAuthenticator) !== true;
|
|
6739
6767
|
});
|
|
6740
6768
|
return _Object$assign(_Object$assign({}, _valuesInstanceProperty(this)), {
|
|
@@ -6745,11 +6773,11 @@ var SelectAuthenticator = function (_Remediator) {
|
|
|
6745
6773
|
return SelectAuthenticator;
|
|
6746
6774
|
}(Remediator);
|
|
6747
6775
|
|
|
6748
|
-
function _createSuper$
|
|
6749
|
-
function _isNativeReflectConstruct$
|
|
6776
|
+
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); }; }
|
|
6777
|
+
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; } }
|
|
6750
6778
|
var SelectAuthenticatorAuthenticate = function (_SelectAuthenticator) {
|
|
6751
6779
|
_inherits(SelectAuthenticatorAuthenticate, _SelectAuthenticator);
|
|
6752
|
-
var _super = _createSuper$
|
|
6780
|
+
var _super = _createSuper$9(SelectAuthenticatorAuthenticate);
|
|
6753
6781
|
function SelectAuthenticatorAuthenticate(remediation) {
|
|
6754
6782
|
var _this;
|
|
6755
6783
|
var values = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
@@ -6774,11 +6802,11 @@ var SelectAuthenticatorAuthenticate = function (_SelectAuthenticator) {
|
|
|
6774
6802
|
}(SelectAuthenticator);
|
|
6775
6803
|
SelectAuthenticatorAuthenticate.remediationName = 'select-authenticator-authenticate';
|
|
6776
6804
|
|
|
6777
|
-
function _createSuper$
|
|
6778
|
-
function _isNativeReflectConstruct$
|
|
6805
|
+
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); }; }
|
|
6806
|
+
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; } }
|
|
6779
6807
|
var SelectAuthenticatorEnroll = function (_SelectAuthenticator) {
|
|
6780
6808
|
_inherits(SelectAuthenticatorEnroll, _SelectAuthenticator);
|
|
6781
|
-
var _super = _createSuper$
|
|
6809
|
+
var _super = _createSuper$8(SelectAuthenticatorEnroll);
|
|
6782
6810
|
function SelectAuthenticatorEnroll() {
|
|
6783
6811
|
_classCallCheck(this, SelectAuthenticatorEnroll);
|
|
6784
6812
|
return _super.apply(this, arguments);
|
|
@@ -6787,11 +6815,11 @@ var SelectAuthenticatorEnroll = function (_SelectAuthenticator) {
|
|
|
6787
6815
|
}(SelectAuthenticator);
|
|
6788
6816
|
SelectAuthenticatorEnroll.remediationName = 'select-authenticator-enroll';
|
|
6789
6817
|
|
|
6790
|
-
function _createSuper$
|
|
6791
|
-
function _isNativeReflectConstruct$
|
|
6818
|
+
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); }; }
|
|
6819
|
+
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; } }
|
|
6792
6820
|
var SelectAuthenticatorUnlockAccount = function (_SelectAuthenticator) {
|
|
6793
6821
|
_inherits(SelectAuthenticatorUnlockAccount, _SelectAuthenticator);
|
|
6794
|
-
var _super = _createSuper$
|
|
6822
|
+
var _super = _createSuper$7(SelectAuthenticatorUnlockAccount);
|
|
6795
6823
|
function SelectAuthenticatorUnlockAccount() {
|
|
6796
6824
|
var _this;
|
|
6797
6825
|
_classCallCheck(this, SelectAuthenticatorUnlockAccount);
|
|
@@ -6830,7 +6858,7 @@ var SelectAuthenticatorUnlockAccount = function (_SelectAuthenticator) {
|
|
|
6830
6858
|
value: function getInputUsername() {
|
|
6831
6859
|
return {
|
|
6832
6860
|
name: 'username',
|
|
6833
|
-
|
|
6861
|
+
type: 'string'
|
|
6834
6862
|
};
|
|
6835
6863
|
}
|
|
6836
6864
|
}]);
|
|
@@ -6838,11 +6866,11 @@ var SelectAuthenticatorUnlockAccount = function (_SelectAuthenticator) {
|
|
|
6838
6866
|
}(SelectAuthenticator);
|
|
6839
6867
|
SelectAuthenticatorUnlockAccount.remediationName = 'select-authenticator-unlock-account';
|
|
6840
6868
|
|
|
6841
|
-
function _createSuper$
|
|
6842
|
-
function _isNativeReflectConstruct$
|
|
6869
|
+
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); }; }
|
|
6870
|
+
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; } }
|
|
6843
6871
|
var SelectEnrollProfile = function (_Remediator) {
|
|
6844
6872
|
_inherits(SelectEnrollProfile, _Remediator);
|
|
6845
|
-
var _super = _createSuper$
|
|
6873
|
+
var _super = _createSuper$6(SelectEnrollProfile);
|
|
6846
6874
|
function SelectEnrollProfile() {
|
|
6847
6875
|
_classCallCheck(this, SelectEnrollProfile);
|
|
6848
6876
|
return _super.apply(this, arguments);
|
|
@@ -6857,11 +6885,11 @@ var SelectEnrollProfile = function (_Remediator) {
|
|
|
6857
6885
|
}(Remediator);
|
|
6858
6886
|
SelectEnrollProfile.remediationName = 'select-enroll-profile';
|
|
6859
6887
|
|
|
6860
|
-
function _createSuper$
|
|
6861
|
-
function _isNativeReflectConstruct$
|
|
6888
|
+
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); }; }
|
|
6889
|
+
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; } }
|
|
6862
6890
|
var AuthenticatorData = function (_Remediator) {
|
|
6863
6891
|
_inherits(AuthenticatorData, _Remediator);
|
|
6864
|
-
var _super = _createSuper$
|
|
6892
|
+
var _super = _createSuper$5(AuthenticatorData);
|
|
6865
6893
|
function AuthenticatorData(remediation) {
|
|
6866
6894
|
var _this;
|
|
6867
6895
|
var values = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
@@ -6910,8 +6938,8 @@ var AuthenticatorData = function (_Remediator) {
|
|
|
6910
6938
|
}
|
|
6911
6939
|
}, {
|
|
6912
6940
|
key: "getNextStep",
|
|
6913
|
-
value: function getNextStep() {
|
|
6914
|
-
var common = _get(_getPrototypeOf(AuthenticatorData.prototype), "getNextStep", this).call(this);
|
|
6941
|
+
value: function getNextStep(authClient) {
|
|
6942
|
+
var common = _get(_getPrototypeOf(AuthenticatorData.prototype), "getNextStep", this).call(this, authClient);
|
|
6915
6943
|
var options = this.getMethodTypes();
|
|
6916
6944
|
return _Object$assign(_Object$assign({}, common), options && {
|
|
6917
6945
|
options: options
|
|
@@ -6975,11 +7003,11 @@ var AuthenticatorData = function (_Remediator) {
|
|
|
6975
7003
|
return AuthenticatorData;
|
|
6976
7004
|
}(Remediator);
|
|
6977
7005
|
|
|
6978
|
-
function _createSuper$
|
|
6979
|
-
function _isNativeReflectConstruct$
|
|
7006
|
+
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); }; }
|
|
7007
|
+
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; } }
|
|
6980
7008
|
var AuthenticatorVerificationData = function (_AuthenticatorData) {
|
|
6981
7009
|
_inherits(AuthenticatorVerificationData, _AuthenticatorData);
|
|
6982
|
-
var _super = _createSuper$
|
|
7010
|
+
var _super = _createSuper$4(AuthenticatorVerificationData);
|
|
6983
7011
|
function AuthenticatorVerificationData(remediation) {
|
|
6984
7012
|
var _this;
|
|
6985
7013
|
var values = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
@@ -7030,7 +7058,8 @@ var AuthenticatorVerificationData = function (_AuthenticatorData) {
|
|
|
7030
7058
|
return {
|
|
7031
7059
|
name: 'methodType',
|
|
7032
7060
|
type: 'string',
|
|
7033
|
-
required: true
|
|
7061
|
+
required: true,
|
|
7062
|
+
options: methodType.options
|
|
7034
7063
|
};
|
|
7035
7064
|
}
|
|
7036
7065
|
var inputs = _toConsumableArray(authenticator.form.value);
|
|
@@ -7054,11 +7083,11 @@ var AuthenticatorVerificationData = function (_AuthenticatorData) {
|
|
|
7054
7083
|
}(AuthenticatorData);
|
|
7055
7084
|
AuthenticatorVerificationData.remediationName = 'authenticator-verification-data';
|
|
7056
7085
|
|
|
7057
|
-
function _createSuper$
|
|
7058
|
-
function _isNativeReflectConstruct$
|
|
7086
|
+
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); }; }
|
|
7087
|
+
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; } }
|
|
7059
7088
|
var AuthenticatorEnrollmentData = function (_AuthenticatorData) {
|
|
7060
7089
|
_inherits(AuthenticatorEnrollmentData, _AuthenticatorData);
|
|
7061
|
-
var _super = _createSuper$
|
|
7090
|
+
var _super = _createSuper$3(AuthenticatorEnrollmentData);
|
|
7062
7091
|
function AuthenticatorEnrollmentData() {
|
|
7063
7092
|
_classCallCheck(this, AuthenticatorEnrollmentData);
|
|
7064
7093
|
return _super.apply(this, arguments);
|
|
@@ -7080,17 +7109,22 @@ var AuthenticatorEnrollmentData = function (_AuthenticatorData) {
|
|
|
7080
7109
|
}
|
|
7081
7110
|
}, {
|
|
7082
7111
|
key: "getInputAuthenticator",
|
|
7083
|
-
value: function getInputAuthenticator() {
|
|
7084
|
-
|
|
7112
|
+
value: function getInputAuthenticator(remediation) {
|
|
7113
|
+
var _context2;
|
|
7114
|
+
return _mapInstanceProperty(_context2 = [{
|
|
7085
7115
|
name: 'methodType',
|
|
7086
|
-
type: 'string'
|
|
7087
|
-
required: true
|
|
7116
|
+
type: 'string'
|
|
7088
7117
|
}, {
|
|
7089
7118
|
name: 'phoneNumber',
|
|
7090
|
-
|
|
7091
|
-
|
|
7092
|
-
|
|
7093
|
-
|
|
7119
|
+
label: 'Phone Number',
|
|
7120
|
+
type: 'string'
|
|
7121
|
+
}]).call(_context2, function (item) {
|
|
7122
|
+
var _context3;
|
|
7123
|
+
var value = _findInstanceProperty(_context3 = remediation.form.value).call(_context3, function (val) {
|
|
7124
|
+
return val.name === item.name;
|
|
7125
|
+
});
|
|
7126
|
+
return _Object$assign(_Object$assign({}, value), item);
|
|
7127
|
+
});
|
|
7094
7128
|
}
|
|
7095
7129
|
}, {
|
|
7096
7130
|
key: "mapAuthenticatorDataFromValues",
|
|
@@ -7109,11 +7143,11 @@ var AuthenticatorEnrollmentData = function (_AuthenticatorData) {
|
|
|
7109
7143
|
}(AuthenticatorData);
|
|
7110
7144
|
AuthenticatorEnrollmentData.remediationName = 'authenticator-enrollment-data';
|
|
7111
7145
|
|
|
7112
|
-
function _createSuper$
|
|
7113
|
-
function _isNativeReflectConstruct$
|
|
7146
|
+
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); }; }
|
|
7147
|
+
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; } }
|
|
7114
7148
|
var Skip = function (_Remediator) {
|
|
7115
7149
|
_inherits(Skip, _Remediator);
|
|
7116
|
-
var _super = _createSuper$
|
|
7150
|
+
var _super = _createSuper$2(Skip);
|
|
7117
7151
|
function Skip() {
|
|
7118
7152
|
_classCallCheck(this, Skip);
|
|
7119
7153
|
return _super.apply(this, arguments);
|
|
@@ -7128,6 +7162,197 @@ var Skip = function (_Remediator) {
|
|
|
7128
7162
|
}(Remediator);
|
|
7129
7163
|
Skip.remediationName = 'skip';
|
|
7130
7164
|
|
|
7165
|
+
function unwrapFormValue(remediation) {
|
|
7166
|
+
var res = {};
|
|
7167
|
+
for (var _i = 0, _Object$entries$1 = _Object$entries(remediation); _i < _Object$entries$1.length; _i++) {
|
|
7168
|
+
var _Object$entries$_i = _slicedToArray(_Object$entries$1[_i], 2),
|
|
7169
|
+
key = _Object$entries$_i[0],
|
|
7170
|
+
value = _Object$entries$_i[1];
|
|
7171
|
+
if (value === null || typeof value === 'undefined') {
|
|
7172
|
+
continue;
|
|
7173
|
+
}
|
|
7174
|
+
if (Array.isArray(value)) {
|
|
7175
|
+
res[key] = _mapInstanceProperty(value).call(value, unwrapFormValue);
|
|
7176
|
+
} else if (_typeof(value) === 'object') {
|
|
7177
|
+
var _context, _context2;
|
|
7178
|
+
var formKeys = _Object$keys(value);
|
|
7179
|
+
if (_includesInstanceProperty(_context = ['value', 'form']).call(_context, key) && formKeys.length === 1 && _includesInstanceProperty(_context2 = ['value', 'form']).call(_context2, formKeys[0])) {
|
|
7180
|
+
var unwrappedForm = unwrapFormValue(value);
|
|
7181
|
+
_Object$entries(unwrappedForm).forEach(function (_ref) {
|
|
7182
|
+
var _ref2 = _slicedToArray(_ref, 2),
|
|
7183
|
+
key = _ref2[0],
|
|
7184
|
+
value = _ref2[1];
|
|
7185
|
+
res[key] = value;
|
|
7186
|
+
});
|
|
7187
|
+
} else {
|
|
7188
|
+
res[key] = unwrapFormValue(value);
|
|
7189
|
+
}
|
|
7190
|
+
} else {
|
|
7191
|
+
res[key] = value;
|
|
7192
|
+
}
|
|
7193
|
+
}
|
|
7194
|
+
return res;
|
|
7195
|
+
}
|
|
7196
|
+
function hasValidInputValue(input, values) {
|
|
7197
|
+
var fn = function fn(input, values, requiredTracker) {
|
|
7198
|
+
var name = input.name,
|
|
7199
|
+
value = input.value,
|
|
7200
|
+
required = input.required;
|
|
7201
|
+
var isRequired = required || requiredTracker
|
|
7202
|
+
|| name === 'authenticator';
|
|
7203
|
+
if (!isRequired) {
|
|
7204
|
+
return true;
|
|
7205
|
+
}
|
|
7206
|
+
if (Array.isArray(value)) {
|
|
7207
|
+
return _reduceInstanceProperty(value).call(value, function (acc, item) {
|
|
7208
|
+
return acc && fn(item, values[name], isRequired);
|
|
7209
|
+
}, true);
|
|
7210
|
+
} else {
|
|
7211
|
+
return !!(values && values[name]);
|
|
7212
|
+
}
|
|
7213
|
+
};
|
|
7214
|
+
return fn(input, values, false);
|
|
7215
|
+
}
|
|
7216
|
+
|
|
7217
|
+
function canProceed(authClient) {
|
|
7218
|
+
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
7219
|
+
var meta = getSavedTransactionMeta(authClient, options);
|
|
7220
|
+
return !!(meta || options.stateHandle);
|
|
7221
|
+
}
|
|
7222
|
+
function proceed(_x) {
|
|
7223
|
+
return _proceed.apply(this, arguments);
|
|
7224
|
+
}
|
|
7225
|
+
function _proceed() {
|
|
7226
|
+
_proceed = _asyncToGenerator( _regeneratorRuntime.mark(function _callee(authClient) {
|
|
7227
|
+
var options,
|
|
7228
|
+
flow,
|
|
7229
|
+
state,
|
|
7230
|
+
meta,
|
|
7231
|
+
_args = arguments;
|
|
7232
|
+
return _regeneratorRuntime.wrap(function _callee$(_context) {
|
|
7233
|
+
while (1) {
|
|
7234
|
+
switch (_context.prev = _context.next) {
|
|
7235
|
+
case 0:
|
|
7236
|
+
options = _args.length > 1 && _args[1] !== undefined ? _args[1] : {};
|
|
7237
|
+
if (canProceed(authClient, options)) {
|
|
7238
|
+
_context.next = 3;
|
|
7239
|
+
break;
|
|
7240
|
+
}
|
|
7241
|
+
throw new AuthSdkError('Unable to proceed: saved transaction could not be loaded');
|
|
7242
|
+
case 3:
|
|
7243
|
+
flow = options.flow, state = options.state;
|
|
7244
|
+
if (!flow) {
|
|
7245
|
+
meta = getSavedTransactionMeta(authClient, {
|
|
7246
|
+
state: state
|
|
7247
|
+
});
|
|
7248
|
+
flow = meta === null || meta === void 0 ? void 0 : meta.flow;
|
|
7249
|
+
}
|
|
7250
|
+
return _context.abrupt("return", run(authClient, _Object$assign(_Object$assign({}, options), {
|
|
7251
|
+
flow: flow
|
|
7252
|
+
})));
|
|
7253
|
+
case 6:
|
|
7254
|
+
case "end":
|
|
7255
|
+
return _context.stop();
|
|
7256
|
+
}
|
|
7257
|
+
}
|
|
7258
|
+
}, _callee);
|
|
7259
|
+
}));
|
|
7260
|
+
return _proceed.apply(this, arguments);
|
|
7261
|
+
}
|
|
7262
|
+
|
|
7263
|
+
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); }; }
|
|
7264
|
+
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; } }
|
|
7265
|
+
var GenericRemediator = function (_Remediator) {
|
|
7266
|
+
_inherits(GenericRemediator, _Remediator);
|
|
7267
|
+
var _super = _createSuper$1(GenericRemediator);
|
|
7268
|
+
function GenericRemediator() {
|
|
7269
|
+
_classCallCheck(this, GenericRemediator);
|
|
7270
|
+
return _super.apply(this, arguments);
|
|
7271
|
+
}
|
|
7272
|
+
_createClass(GenericRemediator, [{
|
|
7273
|
+
key: "canRemediate",
|
|
7274
|
+
value: function canRemediate() {
|
|
7275
|
+
var _this = this;
|
|
7276
|
+
if (typeof this.remediation.action !== 'function') {
|
|
7277
|
+
return false;
|
|
7278
|
+
}
|
|
7279
|
+
var inputs = this.getInputs();
|
|
7280
|
+
var res = _reduceInstanceProperty(inputs).call(inputs, function (acc, input) {
|
|
7281
|
+
return acc && hasValidInputValue(input, _valuesInstanceProperty(_this));
|
|
7282
|
+
}, true);
|
|
7283
|
+
return res;
|
|
7284
|
+
}
|
|
7285
|
+
}, {
|
|
7286
|
+
key: "getData",
|
|
7287
|
+
value: function getData() {
|
|
7288
|
+
var _context2,
|
|
7289
|
+
_this2 = this;
|
|
7290
|
+
var data = _reduceInstanceProperty(_context2 = this.getInputs()).call(_context2, function (acc, _ref) {
|
|
7291
|
+
var name = _ref.name;
|
|
7292
|
+
acc[name] = _valuesInstanceProperty(_this2)[name];
|
|
7293
|
+
return acc;
|
|
7294
|
+
}, {});
|
|
7295
|
+
return data;
|
|
7296
|
+
}
|
|
7297
|
+
}, {
|
|
7298
|
+
key: "getNextStep",
|
|
7299
|
+
value: function getNextStep(authClient, _context) {
|
|
7300
|
+
var name = this.getName();
|
|
7301
|
+
var inputs = this.getInputs();
|
|
7302
|
+
var _a = this.remediation;
|
|
7303
|
+
_a.href;
|
|
7304
|
+
_a.method;
|
|
7305
|
+
_a.rel;
|
|
7306
|
+
_a.accepts;
|
|
7307
|
+
_a.produces;
|
|
7308
|
+
_a.value;
|
|
7309
|
+
var action = _a.action,
|
|
7310
|
+
rest = __rest(_a, ["href", "method", "rel", "accepts", "produces", "value", "action"]);
|
|
7311
|
+
if (action) {
|
|
7312
|
+
return _Object$assign(_Object$assign(_Object$assign({}, rest), !!inputs.length && {
|
|
7313
|
+
inputs: inputs
|
|
7314
|
+
}), {
|
|
7315
|
+
action: function () {
|
|
7316
|
+
var _action = _asyncToGenerator( _regeneratorRuntime.mark(function _callee(params) {
|
|
7317
|
+
return _regeneratorRuntime.wrap(function _callee$(_context3) {
|
|
7318
|
+
while (1) {
|
|
7319
|
+
switch (_context3.prev = _context3.next) {
|
|
7320
|
+
case 0:
|
|
7321
|
+
return _context3.abrupt("return", proceed(authClient, _Object$assign({
|
|
7322
|
+
step: name
|
|
7323
|
+
}, params)));
|
|
7324
|
+
case 1:
|
|
7325
|
+
case "end":
|
|
7326
|
+
return _context3.stop();
|
|
7327
|
+
}
|
|
7328
|
+
}
|
|
7329
|
+
}, _callee);
|
|
7330
|
+
}));
|
|
7331
|
+
function action(_x) {
|
|
7332
|
+
return _action.apply(this, arguments);
|
|
7333
|
+
}
|
|
7334
|
+
return action;
|
|
7335
|
+
}()
|
|
7336
|
+
});
|
|
7337
|
+
}
|
|
7338
|
+
return _Object$assign({}, this.remediation);
|
|
7339
|
+
}
|
|
7340
|
+
}, {
|
|
7341
|
+
key: "getInputs",
|
|
7342
|
+
value: function getInputs() {
|
|
7343
|
+
var _context4, _context5, _context6;
|
|
7344
|
+
return _mapInstanceProperty(_context4 = _mapInstanceProperty(_context5 = _filterInstanceProperty(_context6 = this.remediation.value || []).call(_context6, function (_ref2) {
|
|
7345
|
+
var name = _ref2.name;
|
|
7346
|
+
return name !== 'stateHandle';
|
|
7347
|
+
})).call(_context5, unwrapFormValue)).call(_context4, function (input) {
|
|
7348
|
+
input.type = input.type || 'string';
|
|
7349
|
+
return input;
|
|
7350
|
+
});
|
|
7351
|
+
}
|
|
7352
|
+
}]);
|
|
7353
|
+
return GenericRemediator;
|
|
7354
|
+
}(Remediator);
|
|
7355
|
+
|
|
7131
7356
|
var remediators = /*#__PURE__*/Object.freeze({
|
|
7132
7357
|
__proto__: null,
|
|
7133
7358
|
Remediator: Remediator,
|
|
@@ -7148,11 +7373,12 @@ var remediators = /*#__PURE__*/Object.freeze({
|
|
|
7148
7373
|
SelectEnrollProfile: SelectEnrollProfile,
|
|
7149
7374
|
AuthenticatorVerificationData: AuthenticatorVerificationData,
|
|
7150
7375
|
AuthenticatorEnrollmentData: AuthenticatorEnrollmentData,
|
|
7151
|
-
Skip: Skip
|
|
7376
|
+
Skip: Skip,
|
|
7377
|
+
GenericRemediator: GenericRemediator
|
|
7152
7378
|
});
|
|
7153
7379
|
|
|
7154
7380
|
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; } } }; }
|
|
7155
|
-
function _unsupportedIterableToArray$1(o, minLen) { var
|
|
7381
|
+
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); }
|
|
7156
7382
|
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; }
|
|
7157
7383
|
function isTerminalResponse(idxResponse) {
|
|
7158
7384
|
var neededToProceed = idxResponse.neededToProceed,
|
|
@@ -7270,7 +7496,7 @@ function getEnabledFeatures(idxResponse) {
|
|
|
7270
7496
|
}
|
|
7271
7497
|
return res;
|
|
7272
7498
|
}
|
|
7273
|
-
function getAvailableSteps(idxResponse) {
|
|
7499
|
+
function getAvailableSteps(authClient, idxResponse, useGenericRemediator) {
|
|
7274
7500
|
var _context9;
|
|
7275
7501
|
var res = [];
|
|
7276
7502
|
var remediatorMap = _reduceInstanceProperty(_context9 = _Object$values(remediators)).call(_context9, function (map, remediatorClass) {
|
|
@@ -7284,10 +7510,13 @@ function getAvailableSteps(idxResponse) {
|
|
|
7284
7510
|
try {
|
|
7285
7511
|
for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
|
|
7286
7512
|
var remediation = _step2.value;
|
|
7287
|
-
var T =
|
|
7513
|
+
var T = getRemediatorClass(remediation, {
|
|
7514
|
+
useGenericRemediator: useGenericRemediator,
|
|
7515
|
+
remediators: remediatorMap
|
|
7516
|
+
});
|
|
7288
7517
|
if (T) {
|
|
7289
7518
|
var remediator = new T(remediation);
|
|
7290
|
-
res.push(remediator.getNextStep(idxResponse.context));
|
|
7519
|
+
res.push(remediator.getNextStep(authClient, idxResponse.context));
|
|
7291
7520
|
}
|
|
7292
7521
|
}
|
|
7293
7522
|
} catch (err) {
|
|
@@ -7295,10 +7524,44 @@ function getAvailableSteps(idxResponse) {
|
|
|
7295
7524
|
} finally {
|
|
7296
7525
|
_iterator2.f();
|
|
7297
7526
|
}
|
|
7527
|
+
var _loop = function _loop() {
|
|
7528
|
+
var _Object$entries$_i = _slicedToArray(_Object$entries$1[_i], 1),
|
|
7529
|
+
name = _Object$entries$_i[0];
|
|
7530
|
+
res.push({
|
|
7531
|
+
name: name,
|
|
7532
|
+
action: function () {
|
|
7533
|
+
var _action = _asyncToGenerator( _regeneratorRuntime.mark(function _callee(params) {
|
|
7534
|
+
return _regeneratorRuntime.wrap(function _callee$(_context10) {
|
|
7535
|
+
while (1) {
|
|
7536
|
+
switch (_context10.prev = _context10.next) {
|
|
7537
|
+
case 0:
|
|
7538
|
+
return _context10.abrupt("return", proceed(authClient, {
|
|
7539
|
+
actions: [{
|
|
7540
|
+
name: name,
|
|
7541
|
+
params: params
|
|
7542
|
+
}]
|
|
7543
|
+
}));
|
|
7544
|
+
case 1:
|
|
7545
|
+
case "end":
|
|
7546
|
+
return _context10.stop();
|
|
7547
|
+
}
|
|
7548
|
+
}
|
|
7549
|
+
}, _callee);
|
|
7550
|
+
}));
|
|
7551
|
+
function action(_x) {
|
|
7552
|
+
return _action.apply(this, arguments);
|
|
7553
|
+
}
|
|
7554
|
+
return action;
|
|
7555
|
+
}()
|
|
7556
|
+
});
|
|
7557
|
+
};
|
|
7558
|
+
for (var _i = 0, _Object$entries$1 = _Object$entries(idxResponse.actions || {}); _i < _Object$entries$1.length; _i++) {
|
|
7559
|
+
_loop();
|
|
7560
|
+
}
|
|
7298
7561
|
return res;
|
|
7299
7562
|
}
|
|
7300
7563
|
function filterValuesForRemediation(idxResponse, remediationName, values) {
|
|
7301
|
-
var
|
|
7564
|
+
var _context11;
|
|
7302
7565
|
var remediations = idxResponse.neededToProceed || [];
|
|
7303
7566
|
var remediation = _findInstanceProperty(remediations).call(remediations, function (r) {
|
|
7304
7567
|
return r.name === remediationName;
|
|
@@ -7307,7 +7570,7 @@ function filterValuesForRemediation(idxResponse, remediationName, values) {
|
|
|
7307
7570
|
warn("filterValuesForRemediation: \"".concat(remediationName, "\" did not match any remediations"));
|
|
7308
7571
|
return values;
|
|
7309
7572
|
}
|
|
7310
|
-
var valuesForRemediation = _reduceInstanceProperty(
|
|
7573
|
+
var valuesForRemediation = _reduceInstanceProperty(_context11 = remediation.value).call(_context11, function (res, entry) {
|
|
7311
7574
|
var name = entry.name,
|
|
7312
7575
|
value = entry.value;
|
|
7313
7576
|
if (name === 'stateHandle') {
|
|
@@ -7319,8 +7582,20 @@ function filterValuesForRemediation(idxResponse, remediationName, values) {
|
|
|
7319
7582
|
}, {});
|
|
7320
7583
|
return valuesForRemediation;
|
|
7321
7584
|
}
|
|
7585
|
+
function getRemediatorClass(remediation, options) {
|
|
7586
|
+
var useGenericRemediator = options.useGenericRemediator,
|
|
7587
|
+
remediators = options.remediators;
|
|
7588
|
+
if (!remediation) {
|
|
7589
|
+
return undefined;
|
|
7590
|
+
}
|
|
7591
|
+
if (useGenericRemediator) {
|
|
7592
|
+
return GenericRemediator;
|
|
7593
|
+
}
|
|
7594
|
+
return remediators[remediation.name];
|
|
7595
|
+
}
|
|
7322
7596
|
function getRemediator(idxRemediations, values, options) {
|
|
7323
7597
|
var remediators = options.remediators;
|
|
7598
|
+
var useGenericRemediator = options.useGenericRemediator;
|
|
7324
7599
|
var remediator;
|
|
7325
7600
|
if (options.step) {
|
|
7326
7601
|
var remediation = _findInstanceProperty(idxRemediations).call(idxRemediations, function (_ref5) {
|
|
@@ -7328,7 +7603,7 @@ function getRemediator(idxRemediations, values, options) {
|
|
|
7328
7603
|
return name === options.step;
|
|
7329
7604
|
});
|
|
7330
7605
|
if (remediation) {
|
|
7331
|
-
var T = remediation
|
|
7606
|
+
var T = getRemediatorClass(remediation, options);
|
|
7332
7607
|
return T ? new T(remediation, values, options) : undefined;
|
|
7333
7608
|
} else {
|
|
7334
7609
|
warn("step \"".concat(options.step, "\" did not match any remediations"));
|
|
@@ -7340,13 +7615,13 @@ function getRemediator(idxRemediations, values, options) {
|
|
|
7340
7615
|
_step3;
|
|
7341
7616
|
try {
|
|
7342
7617
|
for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
|
|
7343
|
-
var
|
|
7618
|
+
var _context12;
|
|
7344
7619
|
var _remediation = _step3.value;
|
|
7345
|
-
var isRemeditionInFlow = _includesInstanceProperty(
|
|
7620
|
+
var isRemeditionInFlow = _includesInstanceProperty(_context12 = _Object$keys(remediators)).call(_context12, _remediation.name);
|
|
7346
7621
|
if (!isRemeditionInFlow) {
|
|
7347
7622
|
continue;
|
|
7348
7623
|
}
|
|
7349
|
-
var _T =
|
|
7624
|
+
var _T = getRemediatorClass(_remediation, options);
|
|
7350
7625
|
remediator = new _T(_remediation, values, options);
|
|
7351
7626
|
if (remediator.canRemediate()) {
|
|
7352
7627
|
return remediator;
|
|
@@ -7358,10 +7633,13 @@ function getRemediator(idxRemediations, values, options) {
|
|
|
7358
7633
|
} finally {
|
|
7359
7634
|
_iterator3.f();
|
|
7360
7635
|
}
|
|
7636
|
+
if (!remediatorCandidates.length && !!idxRemediations.length && useGenericRemediator) {
|
|
7637
|
+
return new GenericRemediator(idxRemediations[0], values, options);
|
|
7638
|
+
}
|
|
7361
7639
|
return remediatorCandidates[0];
|
|
7362
7640
|
}
|
|
7363
|
-
function getNextStep(remediator, idxResponse) {
|
|
7364
|
-
var nextStep = remediator.getNextStep(idxResponse.context);
|
|
7641
|
+
function getNextStep(authClient, remediator, idxResponse) {
|
|
7642
|
+
var nextStep = remediator.getNextStep(authClient, idxResponse.context);
|
|
7365
7643
|
var canSkip = canSkipFn(idxResponse);
|
|
7366
7644
|
var canResend = canResendFn(idxResponse);
|
|
7367
7645
|
return _Object$assign(_Object$assign(_Object$assign({}, nextStep), canSkip && {
|
|
@@ -7370,7 +7648,7 @@ function getNextStep(remediator, idxResponse) {
|
|
|
7370
7648
|
canResend: canResend
|
|
7371
7649
|
});
|
|
7372
7650
|
}
|
|
7373
|
-
function handleIdxError(e, remediator) {
|
|
7651
|
+
function handleIdxError(authClient, e, remediator) {
|
|
7374
7652
|
var idxResponse = isIdxResponse(e) ? e : null;
|
|
7375
7653
|
if (!idxResponse) {
|
|
7376
7654
|
throw e;
|
|
@@ -7387,7 +7665,7 @@ function handleIdxError(e, remediator) {
|
|
|
7387
7665
|
messages: messages
|
|
7388
7666
|
};
|
|
7389
7667
|
} else {
|
|
7390
|
-
var nextStep = remediator && getNextStep(remediator, idxResponse);
|
|
7668
|
+
var nextStep = remediator && getNextStep(authClient, remediator, idxResponse);
|
|
7391
7669
|
return _Object$assign({
|
|
7392
7670
|
idxResponse: idxResponse,
|
|
7393
7671
|
messages: messages
|
|
@@ -7423,11 +7701,11 @@ function removeActionFromOptions(options, actionName) {
|
|
|
7423
7701
|
actions: actions
|
|
7424
7702
|
});
|
|
7425
7703
|
}
|
|
7426
|
-
function remediate(_x, _x2, _x3) {
|
|
7704
|
+
function remediate(_x, _x2, _x3, _x4) {
|
|
7427
7705
|
return _remediate.apply(this, arguments);
|
|
7428
7706
|
}
|
|
7429
7707
|
function _remediate() {
|
|
7430
|
-
_remediate = _asyncToGenerator( _regeneratorRuntime.mark(function _callee(idxResponse, values, options) {
|
|
7708
|
+
_remediate = _asyncToGenerator( _regeneratorRuntime.mark(function _callee(authClient, idxResponse, values, options) {
|
|
7431
7709
|
var _context2;
|
|
7432
7710
|
var _idxResponse, neededToProceed, interactionCode, _options, flow, remediator, actionFromValues, actionFromOptions, actions, _iterator, _step, _loop, _ret, terminal, messages, nextStep, name, data;
|
|
7433
7711
|
return _regeneratorRuntime.wrap(function _callee$(_context4) {
|
|
@@ -7486,7 +7764,7 @@ function _remediate() {
|
|
|
7486
7764
|
_context3.prev = 13;
|
|
7487
7765
|
_context3.t0 = _context3["catch"](6);
|
|
7488
7766
|
return _context3.abrupt("return", {
|
|
7489
|
-
v: handleIdxError(_context3.t0, remediator)
|
|
7767
|
+
v: handleIdxError(authClient, _context3.t0, remediator)
|
|
7490
7768
|
});
|
|
7491
7769
|
case 16:
|
|
7492
7770
|
if (!(action === 'cancel')) {
|
|
@@ -7501,7 +7779,7 @@ function _remediate() {
|
|
|
7501
7779
|
});
|
|
7502
7780
|
case 18:
|
|
7503
7781
|
return _context3.abrupt("return", {
|
|
7504
|
-
v: remediate(idxResponse, valuesWithoutExecutedAction, optionsWithoutExecutedAction)
|
|
7782
|
+
v: remediate(authClient, idxResponse, valuesWithoutExecutedAction, optionsWithoutExecutedAction)
|
|
7505
7783
|
});
|
|
7506
7784
|
case 19:
|
|
7507
7785
|
remediationAction = _findInstanceProperty(neededToProceed).call(neededToProceed, function (_ref) {
|
|
@@ -7526,11 +7804,11 @@ function _remediate() {
|
|
|
7526
7804
|
_context3.prev = 28;
|
|
7527
7805
|
_context3.t1 = _context3["catch"](21);
|
|
7528
7806
|
return _context3.abrupt("return", {
|
|
7529
|
-
v: handleIdxError(_context3.t1, remediator)
|
|
7807
|
+
v: handleIdxError(authClient, _context3.t1, remediator)
|
|
7530
7808
|
});
|
|
7531
7809
|
case 31:
|
|
7532
7810
|
return _context3.abrupt("return", {
|
|
7533
|
-
v: remediate(idxResponse, values, optionsWithoutExecutedAction)
|
|
7811
|
+
v: remediate(authClient, idxResponse, values, optionsWithoutExecutedAction)
|
|
7534
7812
|
});
|
|
7535
7813
|
case 32:
|
|
7536
7814
|
case "end":
|
|
@@ -7603,7 +7881,7 @@ function _remediate() {
|
|
|
7603
7881
|
case 43:
|
|
7604
7882
|
_context4.prev = 43;
|
|
7605
7883
|
_context4.t2 = _context4["catch"](35);
|
|
7606
|
-
return _context4.abrupt("return", handleIdxError(_context4.t2));
|
|
7884
|
+
return _context4.abrupt("return", handleIdxError(authClient, _context4.t2));
|
|
7607
7885
|
case 46:
|
|
7608
7886
|
if (!(flow === 'default')) {
|
|
7609
7887
|
_context4.next = 48;
|
|
@@ -7621,7 +7899,7 @@ function _remediate() {
|
|
|
7621
7899
|
_context4.next = 52;
|
|
7622
7900
|
break;
|
|
7623
7901
|
}
|
|
7624
|
-
nextStep = getNextStep(remediator, idxResponse);
|
|
7902
|
+
nextStep = getNextStep(authClient, remediator, idxResponse);
|
|
7625
7903
|
return _context4.abrupt("return", {
|
|
7626
7904
|
idxResponse: idxResponse,
|
|
7627
7905
|
nextStep: nextStep,
|
|
@@ -7642,11 +7920,11 @@ function _remediate() {
|
|
|
7642
7920
|
options = _Object$assign(_Object$assign({}, options), {
|
|
7643
7921
|
step: undefined
|
|
7644
7922
|
});
|
|
7645
|
-
return _context4.abrupt("return", remediate(idxResponse, values, options));
|
|
7923
|
+
return _context4.abrupt("return", remediate(authClient, idxResponse, values, options));
|
|
7646
7924
|
case 64:
|
|
7647
7925
|
_context4.prev = 64;
|
|
7648
7926
|
_context4.t3 = _context4["catch"](54);
|
|
7649
|
-
return _context4.abrupt("return", handleIdxError(_context4.t3, remediator));
|
|
7927
|
+
return _context4.abrupt("return", handleIdxError(authClient, _context4.t3, remediator));
|
|
7650
7928
|
case 67:
|
|
7651
7929
|
case "end":
|
|
7652
7930
|
return _context4.stop();
|
|
@@ -7755,11 +8033,13 @@ function initializeValues(options) {
|
|
|
7755
8033
|
return values;
|
|
7756
8034
|
}
|
|
7757
8035
|
function initializeData(authClient, data) {
|
|
8036
|
+
var _a;
|
|
7758
8037
|
var options = data.options;
|
|
7759
8038
|
var flow = options.flow,
|
|
7760
8039
|
withCredentials = options.withCredentials,
|
|
7761
8040
|
remediators = options.remediators,
|
|
7762
|
-
actions = options.actions
|
|
8041
|
+
actions = options.actions,
|
|
8042
|
+
useGenericRemediator = options.useGenericRemediator;
|
|
7763
8043
|
var status = IdxStatus.PENDING;
|
|
7764
8044
|
flow = flow || authClient.idx.getFlow() || 'default';
|
|
7765
8045
|
if (flow) {
|
|
@@ -7769,12 +8049,14 @@ function initializeData(authClient, data) {
|
|
|
7769
8049
|
remediators = remediators || flowSpec.remediators;
|
|
7770
8050
|
actions = actions || flowSpec.actions;
|
|
7771
8051
|
}
|
|
8052
|
+
useGenericRemediator = useGenericRemediator || ((_a = authClient.options.idx) === null || _a === void 0 ? void 0 : _a.useGenericRemediator) || false;
|
|
7772
8053
|
return _Object$assign(_Object$assign({}, data), {
|
|
7773
8054
|
options: _Object$assign(_Object$assign({}, options), {
|
|
7774
8055
|
flow: flow,
|
|
7775
8056
|
withCredentials: withCredentials,
|
|
7776
8057
|
remediators: remediators,
|
|
7777
|
-
actions: actions
|
|
8058
|
+
actions: actions,
|
|
8059
|
+
useGenericRemediator: useGenericRemediator
|
|
7778
8060
|
}),
|
|
7779
8061
|
status: status
|
|
7780
8062
|
});
|
|
@@ -7784,13 +8066,13 @@ function getDataFromIntrospect(_x, _x2) {
|
|
|
7784
8066
|
}
|
|
7785
8067
|
function _getDataFromIntrospect() {
|
|
7786
8068
|
_getDataFromIntrospect = _asyncToGenerator( _regeneratorRuntime.mark(function _callee(authClient, data) {
|
|
7787
|
-
var options, stateHandle, withCredentials, version, state, scopes, recoveryToken, activationToken, idxResponse, meta, interactionHandle, interactResponse;
|
|
8069
|
+
var options, stateHandle, withCredentials, version, state, scopes, recoveryToken, activationToken, maxAge, idxResponse, meta, interactionHandle, interactResponse;
|
|
7788
8070
|
return _regeneratorRuntime.wrap(function _callee$(_context) {
|
|
7789
8071
|
while (1) {
|
|
7790
8072
|
switch (_context.prev = _context.next) {
|
|
7791
8073
|
case 0:
|
|
7792
8074
|
options = data.options;
|
|
7793
|
-
stateHandle = options.stateHandle, withCredentials = options.withCredentials, version = options.version, state = options.state, scopes = options.scopes, recoveryToken = options.recoveryToken, activationToken = options.activationToken;
|
|
8075
|
+
stateHandle = options.stateHandle, withCredentials = options.withCredentials, version = options.version, state = options.state, scopes = options.scopes, recoveryToken = options.recoveryToken, activationToken = options.activationToken, maxAge = options.maxAge;
|
|
7794
8076
|
meta = getSavedTransactionMeta(authClient, {
|
|
7795
8077
|
state: state,
|
|
7796
8078
|
recoveryToken: recoveryToken,
|
|
@@ -7823,7 +8105,8 @@ function _getDataFromIntrospect() {
|
|
|
7823
8105
|
state: state,
|
|
7824
8106
|
scopes: scopes,
|
|
7825
8107
|
activationToken: activationToken,
|
|
7826
|
-
recoveryToken: recoveryToken
|
|
8108
|
+
recoveryToken: recoveryToken,
|
|
8109
|
+
maxAge: maxAge
|
|
7827
8110
|
});
|
|
7828
8111
|
case 14:
|
|
7829
8112
|
interactResponse = _context.sent;
|
|
@@ -7852,18 +8135,18 @@ function _getDataFromIntrospect() {
|
|
|
7852
8135
|
}));
|
|
7853
8136
|
return _getDataFromIntrospect.apply(this, arguments);
|
|
7854
8137
|
}
|
|
7855
|
-
function getDataFromRemediate(_x3) {
|
|
8138
|
+
function getDataFromRemediate(_x3, _x4) {
|
|
7856
8139
|
return _getDataFromRemediate.apply(this, arguments);
|
|
7857
8140
|
}
|
|
7858
8141
|
function _getDataFromRemediate() {
|
|
7859
|
-
_getDataFromRemediate = _asyncToGenerator( _regeneratorRuntime.mark(function _callee2(data) {
|
|
7860
|
-
var idxResponse, options, values, autoRemediate, remediators, actions, flow, step, shouldProceedWithEmailAuthenticator, shouldRemediate, _yield$remediate, idxResponseFromRemediation, nextStep, canceled;
|
|
8142
|
+
_getDataFromRemediate = _asyncToGenerator( _regeneratorRuntime.mark(function _callee2(authClient, data) {
|
|
8143
|
+
var idxResponse, options, values, autoRemediate, remediators, actions, flow, step, shouldProceedWithEmailAuthenticator, useGenericRemediator, shouldRemediate, _yield$remediate, idxResponseFromRemediation, nextStep, canceled;
|
|
7861
8144
|
return _regeneratorRuntime.wrap(function _callee2$(_context2) {
|
|
7862
8145
|
while (1) {
|
|
7863
8146
|
switch (_context2.prev = _context2.next) {
|
|
7864
8147
|
case 0:
|
|
7865
8148
|
idxResponse = data.idxResponse, options = data.options, values = _valuesInstanceProperty(data);
|
|
7866
|
-
autoRemediate = options.autoRemediate, remediators = options.remediators, actions = options.actions, flow = options.flow, step = options.step, shouldProceedWithEmailAuthenticator = options.shouldProceedWithEmailAuthenticator;
|
|
8149
|
+
autoRemediate = options.autoRemediate, remediators = options.remediators, actions = options.actions, flow = options.flow, step = options.step, shouldProceedWithEmailAuthenticator = options.shouldProceedWithEmailAuthenticator, useGenericRemediator = options.useGenericRemediator;
|
|
7867
8150
|
shouldRemediate = autoRemediate !== false && (remediators || actions || step);
|
|
7868
8151
|
if (shouldRemediate) {
|
|
7869
8152
|
_context2.next = 5;
|
|
@@ -7875,12 +8158,13 @@ function _getDataFromRemediate() {
|
|
|
7875
8158
|
stateHandle: idxResponse.rawIdxState.stateHandle
|
|
7876
8159
|
});
|
|
7877
8160
|
_context2.next = 8;
|
|
7878
|
-
return remediate(idxResponse, values, {
|
|
8161
|
+
return remediate(authClient, idxResponse, values, {
|
|
7879
8162
|
remediators: remediators,
|
|
7880
8163
|
actions: actions,
|
|
7881
8164
|
flow: flow,
|
|
7882
8165
|
step: step,
|
|
7883
|
-
shouldProceedWithEmailAuthenticator: shouldProceedWithEmailAuthenticator
|
|
8166
|
+
shouldProceedWithEmailAuthenticator: shouldProceedWithEmailAuthenticator,
|
|
8167
|
+
useGenericRemediator: useGenericRemediator
|
|
7884
8168
|
});
|
|
7885
8169
|
case 8:
|
|
7886
8170
|
_yield$remediate = _context2.sent;
|
|
@@ -7902,7 +8186,7 @@ function _getDataFromRemediate() {
|
|
|
7902
8186
|
}));
|
|
7903
8187
|
return _getDataFromRemediate.apply(this, arguments);
|
|
7904
8188
|
}
|
|
7905
|
-
function getTokens(
|
|
8189
|
+
function getTokens(_x5, _x6) {
|
|
7906
8190
|
return _getTokens.apply(this, arguments);
|
|
7907
8191
|
}
|
|
7908
8192
|
function _getTokens() {
|
|
@@ -7936,7 +8220,7 @@ function _getTokens() {
|
|
|
7936
8220
|
}));
|
|
7937
8221
|
return _getTokens.apply(this, arguments);
|
|
7938
8222
|
}
|
|
7939
|
-
function finalizeData(
|
|
8223
|
+
function finalizeData(_x7, _x8) {
|
|
7940
8224
|
return _finalizeData.apply(this, arguments);
|
|
7941
8225
|
}
|
|
7942
8226
|
function _finalizeData() {
|
|
@@ -7954,7 +8238,7 @@ function _finalizeData() {
|
|
|
7954
8238
|
if (idxResponse) {
|
|
7955
8239
|
shouldSaveResponse = !!(idxResponse.requestDidSucceed || idxResponse.stepUp);
|
|
7956
8240
|
enabledFeatures = getEnabledFeatures(idxResponse);
|
|
7957
|
-
availableSteps = getAvailableSteps(idxResponse);
|
|
8241
|
+
availableSteps = getAvailableSteps(authClient, idxResponse, options.useGenericRemediator);
|
|
7958
8242
|
messages = getMessagesFromResponse(idxResponse);
|
|
7959
8243
|
terminal = isTerminalResponse(idxResponse);
|
|
7960
8244
|
}
|
|
@@ -8045,7 +8329,7 @@ function handleError(err, data) {
|
|
|
8045
8329
|
shouldClearTransaction: shouldClearTransaction
|
|
8046
8330
|
});
|
|
8047
8331
|
}
|
|
8048
|
-
function run(
|
|
8332
|
+
function run(_x9) {
|
|
8049
8333
|
return _run.apply(this, arguments);
|
|
8050
8334
|
}
|
|
8051
8335
|
function _run() {
|
|
@@ -8093,7 +8377,7 @@ function _run() {
|
|
|
8093
8377
|
case 6:
|
|
8094
8378
|
data = _context5.sent;
|
|
8095
8379
|
_context5.next = 9;
|
|
8096
|
-
return getDataFromRemediate(data);
|
|
8380
|
+
return getDataFromRemediate(authClient, data);
|
|
8097
8381
|
case 9:
|
|
8098
8382
|
data = _context5.sent;
|
|
8099
8383
|
_context5.next = 15;
|
|
@@ -8278,52 +8562,6 @@ function _handleEmailVerifyCallback() {
|
|
|
8278
8562
|
return _handleEmailVerifyCallback.apply(this, arguments);
|
|
8279
8563
|
}
|
|
8280
8564
|
|
|
8281
|
-
function canProceed(authClient) {
|
|
8282
|
-
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
8283
|
-
var meta = getSavedTransactionMeta(authClient, options);
|
|
8284
|
-
return !!(meta || options.stateHandle);
|
|
8285
|
-
}
|
|
8286
|
-
function proceed(_x) {
|
|
8287
|
-
return _proceed.apply(this, arguments);
|
|
8288
|
-
}
|
|
8289
|
-
function _proceed() {
|
|
8290
|
-
_proceed = _asyncToGenerator( _regeneratorRuntime.mark(function _callee(authClient) {
|
|
8291
|
-
var options,
|
|
8292
|
-
flow,
|
|
8293
|
-
state,
|
|
8294
|
-
meta,
|
|
8295
|
-
_args = arguments;
|
|
8296
|
-
return _regeneratorRuntime.wrap(function _callee$(_context) {
|
|
8297
|
-
while (1) {
|
|
8298
|
-
switch (_context.prev = _context.next) {
|
|
8299
|
-
case 0:
|
|
8300
|
-
options = _args.length > 1 && _args[1] !== undefined ? _args[1] : {};
|
|
8301
|
-
if (canProceed(authClient, options)) {
|
|
8302
|
-
_context.next = 3;
|
|
8303
|
-
break;
|
|
8304
|
-
}
|
|
8305
|
-
throw new AuthSdkError('Unable to proceed: saved transaction could not be loaded');
|
|
8306
|
-
case 3:
|
|
8307
|
-
flow = options.flow, state = options.state;
|
|
8308
|
-
if (!flow) {
|
|
8309
|
-
meta = getSavedTransactionMeta(authClient, {
|
|
8310
|
-
state: state
|
|
8311
|
-
});
|
|
8312
|
-
flow = meta === null || meta === void 0 ? void 0 : meta.flow;
|
|
8313
|
-
}
|
|
8314
|
-
return _context.abrupt("return", run(authClient, _Object$assign(_Object$assign({}, options), {
|
|
8315
|
-
flow: flow
|
|
8316
|
-
})));
|
|
8317
|
-
case 6:
|
|
8318
|
-
case "end":
|
|
8319
|
-
return _context.stop();
|
|
8320
|
-
}
|
|
8321
|
-
}
|
|
8322
|
-
}, _callee);
|
|
8323
|
-
}));
|
|
8324
|
-
return _proceed.apply(this, arguments);
|
|
8325
|
-
}
|
|
8326
|
-
|
|
8327
8565
|
function poll(_x) {
|
|
8328
8566
|
return _poll.apply(this, arguments);
|
|
8329
8567
|
}
|
|
@@ -8612,7 +8850,7 @@ function _unlockAccount() {
|
|
|
8612
8850
|
var OktaUserAgent = function () {
|
|
8613
8851
|
function OktaUserAgent() {
|
|
8614
8852
|
_classCallCheck(this, OktaUserAgent);
|
|
8615
|
-
this.environments = ["okta-auth-js/".concat("6.
|
|
8853
|
+
this.environments = ["okta-auth-js/".concat("6.5.0")];
|
|
8616
8854
|
}
|
|
8617
8855
|
_createClass(OktaUserAgent, [{
|
|
8618
8856
|
key: "addEnvironment",
|
|
@@ -8630,7 +8868,7 @@ var OktaUserAgent = function () {
|
|
|
8630
8868
|
}, {
|
|
8631
8869
|
key: "getVersion",
|
|
8632
8870
|
value: function getVersion() {
|
|
8633
|
-
return "6.
|
|
8871
|
+
return "6.5.0";
|
|
8634
8872
|
}
|
|
8635
8873
|
}, {
|
|
8636
8874
|
key: "maybeAddNodeEnvironment",
|