@tapni/auth 0.0.100 → 0.0.101
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/dist/TapniAuth.es.js +779 -782
- package/dist/TapniAuth.umd.js +1 -1
- package/package.json +1 -1
- package/src/mixins/auth.mixin.js +2 -4
package/dist/TapniAuth.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { reactive as Ko, readonly as Go, resolveComponent as Bt, openBlock as S, createElementBlock as P, createElementVNode as y, toDisplayString as U, createCommentVNode as ee, createVNode as ke, withCtx as nt, createTextVNode as se, pushScopeId as Dt, popScopeId as Ht, createStaticVNode as Vo, nextTick as vr, withModifiers as Oe, normalizeStyle as Lt, withDirectives as me, withKeys as kt, vModelText as wt, vModelDynamic as
|
|
1
|
+
import { reactive as Ko, readonly as Go, resolveComponent as Bt, openBlock as S, createElementBlock as P, createElementVNode as y, toDisplayString as U, createCommentVNode as ee, createVNode as ke, withCtx as nt, createTextVNode as se, pushScopeId as Dt, popScopeId as Ht, createStaticVNode as Vo, nextTick as vr, withModifiers as Oe, normalizeStyle as Lt, withDirectives as me, withKeys as kt, vModelText as wt, vModelDynamic as dn, vShow as mt, createBlock as qe, normalizeClass as Ie, unref as Qo } from "vue";
|
|
2
2
|
import { RouterView as Yo } from "vue-router";
|
|
3
3
|
import ne from "await-to-js";
|
|
4
4
|
import Xn from "axios";
|
|
@@ -4445,10 +4445,7 @@ const ze = {
|
|
|
4445
4445
|
]);
|
|
4446
4446
|
},
|
|
4447
4447
|
async switchAccount(n) {
|
|
4448
|
-
this.$storage.username = n, this.$storage.UserId = this.loggedInAccounts[n].id, this.setLoggedInUserId(this.loggedInAccounts[n].id), this.setRefreshToken(this.loggedInAccounts[n].refreshToken), await this.refreshTokenAction(this.loggedInAccounts[n]), z.$emit("ssoEvent", {
|
|
4449
|
-
name: "switchAccount",
|
|
4450
|
-
data: { lang: this.appLanguage, username: n }
|
|
4451
|
-
});
|
|
4448
|
+
console.log("switch account auth f"), this.$storage.username = n, this.$storage.UserId = this.loggedInAccounts[n].id, this.setLoggedInUserId(this.loggedInAccounts[n].id), this.setRefreshToken(this.loggedInAccounts[n].refreshToken), await this.refreshTokenAction(this.loggedInAccounts[n]), z.$emit("ssoEvent", { name: "switchAccount", data: { username: n } });
|
|
4452
4449
|
},
|
|
4453
4450
|
async refreshTokenAction(n) {
|
|
4454
4451
|
return new Promise(async (e, t) => {
|
|
@@ -4665,7 +4662,7 @@ const ze = {
|
|
|
4665
4662
|
type: "video/mp4"
|
|
4666
4663
|
}, null, -1)), ai = [
|
|
4667
4664
|
ii
|
|
4668
|
-
], si = { class: "bold full-top no-bottom center-text" }, ci = { class: "full-bottom half-top center-text color-black font-16" }, li = { class: "page-login-links center-text" },
|
|
4665
|
+
], si = { class: "bold full-top no-bottom center-text" }, ci = { class: "full-bottom half-top center-text color-black font-16" }, li = { class: "page-login-links center-text" }, ui = /* @__PURE__ */ $r(() => /* @__PURE__ */ y("div", { class: "clear" }, null, -1)), di = {
|
|
4669
4666
|
key: 2,
|
|
4670
4667
|
style: { display: "flex", "flex-direction": "row", "justify-content": "space-around", width: "90%", margin: "0 auto", "margin-top": "40px" }
|
|
4671
4668
|
}, pi = /* @__PURE__ */ Vo('<a href="https://play.google.com/store/apps/details?id=co.tapni.app" target="_blank" data-v-67088d6f><img src="https://cdn.tapni.co/images/playstore.png" class="app-store-icon pointer" style="width:55px;" data-v-67088d6f></a><a href="https://apps.apple.com/ag/app/tapni/id1552930233" target="_blank" data-v-67088d6f><img src="https://cdn.tapni.co/images/appstore.png" class="app-store-icon pointer" style="width:55px;" data-v-67088d6f></a><a href="https://appgallery.huawei.com/#/app/C103931997" target="_blank" data-v-67088d6f><img src="https://cdn.tapni.co/images/appgallery.png" class="app-store-icon pointer" style="width:55px;" data-v-67088d6f></a>', 3), hi = [
|
|
@@ -4705,9 +4702,9 @@ function mi(n, e, t, r, o, i) {
|
|
|
4705
4702
|
]),
|
|
4706
4703
|
_: 1
|
|
4707
4704
|
}),
|
|
4708
|
-
|
|
4705
|
+
ui
|
|
4709
4706
|
]),
|
|
4710
|
-
this.isNative ? ee("", !0) : (S(), P("div",
|
|
4707
|
+
this.isNative ? ee("", !0) : (S(), P("div", di, hi))
|
|
4711
4708
|
]);
|
|
4712
4709
|
}
|
|
4713
4710
|
const Jr = /* @__PURE__ */ We(ni, [["render", mi], ["__scopeId", "data-v-67088d6f"]]), wr = In("GoogleAuth", {
|
|
@@ -4905,22 +4902,22 @@ function T(n, e, t, r) {
|
|
|
4905
4902
|
});
|
|
4906
4903
|
}
|
|
4907
4904
|
return new (t || (t = Promise))(function(i, a) {
|
|
4908
|
-
function s(
|
|
4905
|
+
function s(d) {
|
|
4909
4906
|
try {
|
|
4910
|
-
p(r.next(
|
|
4907
|
+
p(r.next(d));
|
|
4911
4908
|
} catch (f) {
|
|
4912
4909
|
a(f);
|
|
4913
4910
|
}
|
|
4914
4911
|
}
|
|
4915
|
-
function d
|
|
4912
|
+
function u(d) {
|
|
4916
4913
|
try {
|
|
4917
|
-
p(r.throw(
|
|
4914
|
+
p(r.throw(d));
|
|
4918
4915
|
} catch (f) {
|
|
4919
4916
|
a(f);
|
|
4920
4917
|
}
|
|
4921
4918
|
}
|
|
4922
|
-
function p(
|
|
4923
|
-
|
|
4919
|
+
function p(d) {
|
|
4920
|
+
d.done ? i(d.value) : o(d.value).then(s, u);
|
|
4924
4921
|
}
|
|
4925
4922
|
p((r = r.apply(n, e || [])).next());
|
|
4926
4923
|
});
|
|
@@ -4935,11 +4932,11 @@ function I(n, e) {
|
|
|
4935
4932
|
return this;
|
|
4936
4933
|
}), a;
|
|
4937
4934
|
function s(p) {
|
|
4938
|
-
return function(
|
|
4939
|
-
return
|
|
4935
|
+
return function(d) {
|
|
4936
|
+
return u([p, d]);
|
|
4940
4937
|
};
|
|
4941
4938
|
}
|
|
4942
|
-
function
|
|
4939
|
+
function u(p) {
|
|
4943
4940
|
if (r)
|
|
4944
4941
|
throw new TypeError("Generator is already executing.");
|
|
4945
4942
|
for (; t; )
|
|
@@ -4980,8 +4977,8 @@ function I(n, e) {
|
|
|
4980
4977
|
continue;
|
|
4981
4978
|
}
|
|
4982
4979
|
p = e.call(n, t);
|
|
4983
|
-
} catch (
|
|
4984
|
-
p = [6,
|
|
4980
|
+
} catch (d) {
|
|
4981
|
+
p = [6, d], o = 0;
|
|
4985
4982
|
} finally {
|
|
4986
4983
|
r = i = 0;
|
|
4987
4984
|
}
|
|
@@ -5062,22 +5059,22 @@ function j(n, e, t, r) {
|
|
|
5062
5059
|
});
|
|
5063
5060
|
}
|
|
5064
5061
|
return new (t || (t = Promise))(function(i, a) {
|
|
5065
|
-
function s(
|
|
5062
|
+
function s(d) {
|
|
5066
5063
|
try {
|
|
5067
|
-
p(r.next(
|
|
5064
|
+
p(r.next(d));
|
|
5068
5065
|
} catch (f) {
|
|
5069
5066
|
a(f);
|
|
5070
5067
|
}
|
|
5071
5068
|
}
|
|
5072
|
-
function d
|
|
5069
|
+
function u(d) {
|
|
5073
5070
|
try {
|
|
5074
|
-
p(r.throw(
|
|
5071
|
+
p(r.throw(d));
|
|
5075
5072
|
} catch (f) {
|
|
5076
5073
|
a(f);
|
|
5077
5074
|
}
|
|
5078
5075
|
}
|
|
5079
|
-
function p(
|
|
5080
|
-
|
|
5076
|
+
function p(d) {
|
|
5077
|
+
d.done ? i(d.value) : o(d.value).then(s, u);
|
|
5081
5078
|
}
|
|
5082
5079
|
p((r = r.apply(n, e || [])).next());
|
|
5083
5080
|
});
|
|
@@ -5092,11 +5089,11 @@ function K(n, e) {
|
|
|
5092
5089
|
return this;
|
|
5093
5090
|
}), a;
|
|
5094
5091
|
function s(p) {
|
|
5095
|
-
return function(
|
|
5096
|
-
return
|
|
5092
|
+
return function(d) {
|
|
5093
|
+
return u([p, d]);
|
|
5097
5094
|
};
|
|
5098
5095
|
}
|
|
5099
|
-
function
|
|
5096
|
+
function u(p) {
|
|
5100
5097
|
if (r)
|
|
5101
5098
|
throw new TypeError("Generator is already executing.");
|
|
5102
5099
|
for (; t; )
|
|
@@ -5137,8 +5134,8 @@ function K(n, e) {
|
|
|
5137
5134
|
continue;
|
|
5138
5135
|
}
|
|
5139
5136
|
p = e.call(n, t);
|
|
5140
|
-
} catch (
|
|
5141
|
-
p = [6,
|
|
5137
|
+
} catch (d) {
|
|
5138
|
+
p = [6, d], o = 0;
|
|
5142
5139
|
} finally {
|
|
5143
5140
|
r = i = 0;
|
|
5144
5141
|
}
|
|
@@ -5316,10 +5313,10 @@ var At;
|
|
|
5316
5313
|
(function(n) {
|
|
5317
5314
|
n[n.httpSuccess = 200] = "httpSuccess", n[n.httpBadRequest = 400] = "httpBadRequest";
|
|
5318
5315
|
})(At || (At = {}));
|
|
5319
|
-
var
|
|
5316
|
+
var dt;
|
|
5320
5317
|
(function(n) {
|
|
5321
5318
|
n.FAILED_AUTO_DETECTION = "1", n.INTERNAL_CACHE = "2", n.ENVIRONMENT_VARIABLE = "3", n.IMDS = "4";
|
|
5322
|
-
})(
|
|
5319
|
+
})(dt || (dt = {}));
|
|
5323
5320
|
var Jt;
|
|
5324
5321
|
(function(n) {
|
|
5325
5322
|
n.CONFIGURED_MATCHES_DETECTED = "1", n.CONFIGURED_NO_AUTO_DETECTION = "2", n.CONFIGURED_NOT_DETECTED = "3", n.AUTO_DETECTION_REQUESTED_SUCCESSFUL = "4", n.AUTO_DETECTION_REQUESTED_FAILED = "5";
|
|
@@ -5765,8 +5762,8 @@ var L = (
|
|
|
5765
5762
|
};
|
|
5766
5763
|
return r.forEach(function(i) {
|
|
5767
5764
|
if (i.trim()) {
|
|
5768
|
-
var a = i.split(/=(.+)/g, 2), s = a[0],
|
|
5769
|
-
s &&
|
|
5765
|
+
var a = i.split(/=(.+)/g, 2), s = a[0], u = a[1];
|
|
5766
|
+
s && u && (t[o(s)] = o(u));
|
|
5770
5767
|
}
|
|
5771
5768
|
}), t;
|
|
5772
5769
|
}, n.trimArrayEntries = function(e) {
|
|
@@ -6206,34 +6203,34 @@ var we = (
|
|
|
6206
6203
|
e.tenantId || g.EMPTY_STRING
|
|
6207
6204
|
];
|
|
6208
6205
|
return t.join(fe.CACHE_KEY_SEPARATOR).toLowerCase();
|
|
6209
|
-
}, n.createAccount = function(e, t, r, o, i, a, s,
|
|
6210
|
-
var p,
|
|
6211
|
-
N.authorityType = ot.MSSTS_ACCOUNT_TYPE, N.clientInfo = e, N.homeAccountId = t, N.nativeAccountId =
|
|
6206
|
+
}, n.createAccount = function(e, t, r, o, i, a, s, u) {
|
|
6207
|
+
var p, d, f, _, k, E, N = new n();
|
|
6208
|
+
N.authorityType = ot.MSSTS_ACCOUNT_TYPE, N.clientInfo = e, N.homeAccountId = t, N.nativeAccountId = u;
|
|
6212
6209
|
var Q = s || o && o.getPreferredCache();
|
|
6213
6210
|
if (!Q)
|
|
6214
6211
|
throw O.createInvalidCacheEnvironmentError();
|
|
6215
6212
|
if (N.environment = Q, N.realm = ((p = r == null ? void 0 : r.claims) === null || p === void 0 ? void 0 : p.tid) || g.EMPTY_STRING, r) {
|
|
6216
|
-
N.idTokenClaims = r.claims, N.localAccountId = ((
|
|
6213
|
+
N.idTokenClaims = r.claims, N.localAccountId = ((d = r == null ? void 0 : r.claims) === null || d === void 0 ? void 0 : d.oid) || ((f = r == null ? void 0 : r.claims) === null || f === void 0 ? void 0 : f.sub) || g.EMPTY_STRING;
|
|
6217
6214
|
var X = (_ = r == null ? void 0 : r.claims) === null || _ === void 0 ? void 0 : _.preferred_username, G = !((k = r == null ? void 0 : r.claims) === null || k === void 0) && k.emails ? r.claims.emails[0] : null;
|
|
6218
6215
|
N.username = X || G || g.EMPTY_STRING, N.name = (E = r == null ? void 0 : r.claims) === null || E === void 0 ? void 0 : E.name;
|
|
6219
6216
|
}
|
|
6220
6217
|
return N.cloudGraphHostName = i, N.msGraphHost = a, N;
|
|
6221
6218
|
}, n.createGenericAccount = function(e, t, r, o, i, a) {
|
|
6222
|
-
var s,
|
|
6219
|
+
var s, u, p, d, f = new n();
|
|
6223
6220
|
f.authorityType = r && r.authorityType === Se.Adfs ? ot.ADFS_ACCOUNT_TYPE : ot.GENERIC_ACCOUNT_TYPE, f.homeAccountId = e, f.realm = g.EMPTY_STRING;
|
|
6224
6221
|
var _ = a || r && r.getPreferredCache();
|
|
6225
6222
|
if (!_)
|
|
6226
6223
|
throw O.createInvalidCacheEnvironmentError();
|
|
6227
|
-
return t && (f.localAccountId = ((s = t == null ? void 0 : t.claims) === null || s === void 0 ? void 0 : s.oid) || ((
|
|
6224
|
+
return t && (f.localAccountId = ((s = t == null ? void 0 : t.claims) === null || s === void 0 ? void 0 : s.oid) || ((u = t == null ? void 0 : t.claims) === null || u === void 0 ? void 0 : u.sub) || g.EMPTY_STRING, f.username = ((p = t == null ? void 0 : t.claims) === null || p === void 0 ? void 0 : p.upn) || g.EMPTY_STRING, f.name = ((d = t == null ? void 0 : t.claims) === null || d === void 0 ? void 0 : d.name) || g.EMPTY_STRING, f.idTokenClaims = t == null ? void 0 : t.claims), f.environment = _, f.cloudGraphHostName = o, f.msGraphHost = i, f;
|
|
6228
6225
|
}, n.generateHomeAccountId = function(e, t, r, o, i) {
|
|
6229
6226
|
var a, s = !((a = i == null ? void 0 : i.claims) === null || a === void 0) && a.sub ? i.claims.sub : g.EMPTY_STRING;
|
|
6230
6227
|
if (t === Se.Adfs || t === Se.Dsts)
|
|
6231
6228
|
return s;
|
|
6232
6229
|
if (e)
|
|
6233
6230
|
try {
|
|
6234
|
-
var
|
|
6235
|
-
if (!L.isEmpty(
|
|
6236
|
-
return "" +
|
|
6231
|
+
var u = vn(e, o);
|
|
6232
|
+
if (!L.isEmpty(u.uid) && !L.isEmpty(u.utid))
|
|
6233
|
+
return "" + u.uid + fe.CLIENT_INFO_SEPARATOR + u.utid;
|
|
6237
6234
|
} catch {
|
|
6238
6235
|
}
|
|
6239
6236
|
return r.verbose("No client info in response"), s;
|
|
@@ -6334,12 +6331,12 @@ var Me = (
|
|
|
6334
6331
|
realm: e.realm,
|
|
6335
6332
|
tokenType: e.tokenType,
|
|
6336
6333
|
requestedClaimsHash: e.requestedClaimsHash
|
|
6337
|
-
}, r = this.getTokenKeys(), o = Ee.fromString(e.target), i = [], r.accessToken.forEach(function(
|
|
6338
|
-
if (a.accessTokenKeyMatchesFilter(
|
|
6339
|
-
var p = a.getAccessTokenCredential(
|
|
6334
|
+
}, r = this.getTokenKeys(), o = Ee.fromString(e.target), i = [], r.accessToken.forEach(function(u) {
|
|
6335
|
+
if (a.accessTokenKeyMatchesFilter(u, t, !1)) {
|
|
6336
|
+
var p = a.getAccessTokenCredential(u);
|
|
6340
6337
|
if (p && a.credentialMatchesFilter(p, t)) {
|
|
6341
|
-
var
|
|
6342
|
-
|
|
6338
|
+
var d = Ee.fromString(p.target);
|
|
6339
|
+
d.intersectingScopeSets(o) && i.push(a.removeAccessToken(u));
|
|
6343
6340
|
}
|
|
6344
6341
|
}
|
|
6345
6342
|
}), [4, Promise.all(i)];
|
|
@@ -6484,12 +6481,12 @@ var Me = (
|
|
|
6484
6481
|
e.isAppMetadata(r) && e.removeItem(r);
|
|
6485
6482
|
}), !0;
|
|
6486
6483
|
}, n.prototype.readCacheRecord = function(e, t, r) {
|
|
6487
|
-
var o = this.getTokenKeys(), i = this.readAccountFromCache(e), a = this.getIdToken(e, o), s = this.getAccessToken(e, t, o),
|
|
6484
|
+
var o = this.getTokenKeys(), i = this.readAccountFromCache(e), a = this.getIdToken(e, o), s = this.getAccessToken(e, t, o), u = this.getRefreshToken(e, !1, o), p = this.readAppMetadataFromCache(r);
|
|
6488
6485
|
return i && a && (i.idTokenClaims = new rt(a.secret, this.cryptoImpl).claims), {
|
|
6489
6486
|
account: i,
|
|
6490
6487
|
idToken: a,
|
|
6491
6488
|
accessToken: s,
|
|
6492
|
-
refreshToken:
|
|
6489
|
+
refreshToken: u,
|
|
6493
6490
|
appMetadata: p
|
|
6494
6491
|
};
|
|
6495
6492
|
}, n.prototype.readAccountFromCache = function(e) {
|
|
@@ -6526,7 +6523,7 @@ var Me = (
|
|
|
6526
6523
|
}, n.prototype.getAccessToken = function(e, t, r) {
|
|
6527
6524
|
var o = this;
|
|
6528
6525
|
this.commonLogger.trace("CacheManager - getAccessToken called");
|
|
6529
|
-
var i = Ee.createSearchScopes(t.scopes), a = t.authenticationScheme || te.BEARER, s = a && a.toLowerCase() !== te.BEARER.toLowerCase() ? H.ACCESS_TOKEN_WITH_AUTH_SCHEME : H.ACCESS_TOKEN,
|
|
6526
|
+
var i = Ee.createSearchScopes(t.scopes), a = t.authenticationScheme || te.BEARER, s = a && a.toLowerCase() !== te.BEARER.toLowerCase() ? H.ACCESS_TOKEN_WITH_AUTH_SCHEME : H.ACCESS_TOKEN, u = {
|
|
6530
6527
|
homeAccountId: e.homeAccountId,
|
|
6531
6528
|
environment: e.environment,
|
|
6532
6529
|
credentialType: s,
|
|
@@ -6536,17 +6533,17 @@ var Me = (
|
|
|
6536
6533
|
tokenType: a,
|
|
6537
6534
|
keyId: t.sshKid,
|
|
6538
6535
|
requestedClaimsHash: t.requestedClaimsHash
|
|
6539
|
-
}, p = r && r.accessToken || this.getTokenKeys().accessToken,
|
|
6536
|
+
}, p = r && r.accessToken || this.getTokenKeys().accessToken, d = [];
|
|
6540
6537
|
p.forEach(function(_) {
|
|
6541
|
-
if (o.accessTokenKeyMatchesFilter(_,
|
|
6538
|
+
if (o.accessTokenKeyMatchesFilter(_, u, !0)) {
|
|
6542
6539
|
var k = o.getAccessTokenCredential(_);
|
|
6543
|
-
k && o.credentialMatchesFilter(k,
|
|
6540
|
+
k && o.credentialMatchesFilter(k, u) && d.push(k);
|
|
6544
6541
|
}
|
|
6545
6542
|
});
|
|
6546
|
-
var f =
|
|
6547
|
-
return f < 1 ? (this.commonLogger.info("CacheManager:getAccessToken - No token found"), null) : f > 1 ? (this.commonLogger.info("CacheManager:getAccessToken - Multiple access tokens found, clearing them"),
|
|
6543
|
+
var f = d.length;
|
|
6544
|
+
return f < 1 ? (this.commonLogger.info("CacheManager:getAccessToken - No token found"), null) : f > 1 ? (this.commonLogger.info("CacheManager:getAccessToken - Multiple access tokens found, clearing them"), d.forEach(function(_) {
|
|
6548
6545
|
o.removeAccessToken(_.generateCredentialKey());
|
|
6549
|
-
}), null) : (this.commonLogger.info("CacheManager:getAccessToken - Returning access token"),
|
|
6546
|
+
}), null) : (this.commonLogger.info("CacheManager:getAccessToken - Returning access token"), d[0]);
|
|
6550
6547
|
}, n.prototype.accessTokenKeyMatchesFilter = function(e, t, r) {
|
|
6551
6548
|
var o = e.toLowerCase();
|
|
6552
6549
|
if (t.clientId && o.indexOf(t.clientId.toLowerCase()) === -1 || t.homeAccountId && o.indexOf(t.homeAccountId.toLowerCase()) === -1 || t.realm && o.indexOf(t.realm.toLowerCase()) === -1 || t.requestedClaimsHash && o.indexOf(t.requestedClaimsHash.toLowerCase()) === -1)
|
|
@@ -6576,15 +6573,15 @@ var Me = (
|
|
|
6576
6573
|
credentialType: H.REFRESH_TOKEN,
|
|
6577
6574
|
clientId: this.clientId,
|
|
6578
6575
|
familyId: i
|
|
6579
|
-
}, s = r && r.refreshToken || this.getTokenKeys().refreshToken,
|
|
6580
|
-
s.forEach(function(
|
|
6581
|
-
if (o.refreshTokenKeyMatchesFilter(
|
|
6582
|
-
var f = o.getRefreshTokenCredential(
|
|
6583
|
-
f && o.credentialMatchesFilter(f, a) &&
|
|
6576
|
+
}, s = r && r.refreshToken || this.getTokenKeys().refreshToken, u = [];
|
|
6577
|
+
s.forEach(function(d) {
|
|
6578
|
+
if (o.refreshTokenKeyMatchesFilter(d, a)) {
|
|
6579
|
+
var f = o.getRefreshTokenCredential(d);
|
|
6580
|
+
f && o.credentialMatchesFilter(f, a) && u.push(f);
|
|
6584
6581
|
}
|
|
6585
6582
|
});
|
|
6586
|
-
var p =
|
|
6587
|
-
return p < 1 ? (this.commonLogger.info("CacheManager:getRefreshToken - No refresh token found."), null) : (this.commonLogger.info("CacheManager:getRefreshToken - returning refresh token"),
|
|
6583
|
+
var p = u.length;
|
|
6584
|
+
return p < 1 ? (this.commonLogger.info("CacheManager:getRefreshToken - No refresh token found."), null) : (this.commonLogger.info("CacheManager:getRefreshToken - returning refresh token"), u[0]);
|
|
6588
6585
|
}, n.prototype.refreshTokenKeyMatchesFilter = function(e, t) {
|
|
6589
6586
|
var r = e.toLowerCase();
|
|
6590
6587
|
return !(t.familyId && r.indexOf(t.familyId.toLowerCase()) === -1 || !t.familyId && t.clientId && r.indexOf(t.clientId.toLowerCase()) === -1 || t.homeAccountId && r.indexOf(t.homeAccountId.toLowerCase()) === -1);
|
|
@@ -6779,7 +6776,7 @@ var ki = 300, no = {
|
|
|
6779
6776
|
}
|
|
6780
6777
|
};
|
|
6781
6778
|
function Ai(n) {
|
|
6782
|
-
var e = n.authOptions, t = n.systemOptions, r = n.loggerOptions, o = n.cacheOptions, i = n.storageInterface, a = n.networkInterface, s = n.cryptoInterface,
|
|
6779
|
+
var e = n.authOptions, t = n.systemOptions, r = n.loggerOptions, o = n.cacheOptions, i = n.storageInterface, a = n.networkInterface, s = n.cryptoInterface, u = n.clientCredentials, p = n.libraryInfo, d = n.telemetry, f = n.serverTelemetryManager, _ = n.persistencePlugin, k = n.serializableCache, E = Z(Z({}, wi), r);
|
|
6783
6780
|
return {
|
|
6784
6781
|
authOptions: Ri(e),
|
|
6785
6782
|
systemOptions: Z(Z({}, no), t),
|
|
@@ -6788,9 +6785,9 @@ function Ai(n) {
|
|
|
6788
6785
|
storageInterface: i || new yi(e.clientId, _n, new er(E)),
|
|
6789
6786
|
networkInterface: a || Ci,
|
|
6790
6787
|
cryptoInterface: s || _n,
|
|
6791
|
-
clientCredentials:
|
|
6788
|
+
clientCredentials: u || Ti,
|
|
6792
6789
|
libraryInfo: Z(Z({}, Ei), p),
|
|
6793
|
-
telemetry: Z(Z({}, Si),
|
|
6790
|
+
telemetry: Z(Z({}, Si), d),
|
|
6794
6791
|
serverTelemetryManager: f || null,
|
|
6795
6792
|
persistencePlugin: _ || null,
|
|
6796
6793
|
serializableCache: k || null
|
|
@@ -7128,15 +7125,15 @@ var rr = (
|
|
|
7128
7125
|
default:
|
|
7129
7126
|
throw O.createUnexpectedCredentialTypeError();
|
|
7130
7127
|
}
|
|
7131
|
-
}, n.generateCredentialCacheKey = function(e, t, r, o, i, a, s,
|
|
7132
|
-
var
|
|
7128
|
+
}, n.generateCredentialCacheKey = function(e, t, r, o, i, a, s, u, p) {
|
|
7129
|
+
var d = [
|
|
7133
7130
|
this.generateAccountIdForCacheKey(e, t),
|
|
7134
7131
|
this.generateCredentialIdForCacheKey(r, o, i, s),
|
|
7135
7132
|
this.generateTargetForCacheKey(a),
|
|
7136
7133
|
this.generateClaimsHashForCacheKey(p),
|
|
7137
|
-
this.generateSchemeForCacheKey(
|
|
7134
|
+
this.generateSchemeForCacheKey(u)
|
|
7138
7135
|
];
|
|
7139
|
-
return
|
|
7136
|
+
return d.join(fe.CACHE_KEY_SEPARATOR).toLowerCase();
|
|
7140
7137
|
}, n.generateAccountIdForCacheKey = function(e, t) {
|
|
7141
7138
|
var r = [e, t];
|
|
7142
7139
|
return r.join(fe.CACHE_KEY_SEPARATOR).toLowerCase();
|
|
@@ -7203,14 +7200,14 @@ var _t = (
|
|
|
7203
7200
|
function e() {
|
|
7204
7201
|
return n !== null && n.apply(this, arguments) || this;
|
|
7205
7202
|
}
|
|
7206
|
-
return e.createAccessTokenEntity = function(t, r, o, i, a, s,
|
|
7203
|
+
return e.createAccessTokenEntity = function(t, r, o, i, a, s, u, p, d, f, _, k, E, N, Q) {
|
|
7207
7204
|
var X, G, $ = new e();
|
|
7208
7205
|
$.homeAccountId = t, $.credentialType = H.ACCESS_TOKEN, $.secret = o;
|
|
7209
7206
|
var Ae = Ke.nowSeconds();
|
|
7210
|
-
if ($.cachedAt = Ae.toString(), $.expiresOn =
|
|
7207
|
+
if ($.cachedAt = Ae.toString(), $.expiresOn = u.toString(), $.extendedExpiresOn = p.toString(), f && ($.refreshOn = f.toString()), $.environment = r, $.clientId = i, $.realm = a, $.target = s, $.userAssertionHash = k, $.tokenType = L.isEmpty(_) ? te.BEARER : _, N && ($.requestedClaims = N, $.requestedClaimsHash = Q), ((X = $.tokenType) === null || X === void 0 ? void 0 : X.toLowerCase()) !== te.BEARER.toLowerCase())
|
|
7211
7208
|
switch ($.credentialType = H.ACCESS_TOKEN_WITH_AUTH_SCHEME, $.tokenType) {
|
|
7212
7209
|
case te.POP:
|
|
7213
|
-
var xe = rt.extractTokenClaims(o,
|
|
7210
|
+
var xe = rt.extractTokenClaims(o, d);
|
|
7214
7211
|
if (!(!((G = xe == null ? void 0 : xe.cnf) === null || G === void 0) && G.kid))
|
|
7215
7212
|
throw O.createTokenClaimsRequiredError();
|
|
7216
7213
|
$.keyId = xe.cnf.kid;
|
|
@@ -7233,8 +7230,8 @@ var Pt = (
|
|
|
7233
7230
|
return n !== null && n.apply(this, arguments) || this;
|
|
7234
7231
|
}
|
|
7235
7232
|
return e.createRefreshTokenEntity = function(t, r, o, i, a, s) {
|
|
7236
|
-
var
|
|
7237
|
-
return
|
|
7233
|
+
var u = new e();
|
|
7234
|
+
return u.clientId = i, u.credentialType = H.REFRESH_TOKEN, u.environment = r, u.homeAccountId = t, u.secret = o, u.userAssertionHash = s, a && (u.familyId = a), u;
|
|
7238
7235
|
}, e.isRefreshTokenEntity = function(t) {
|
|
7239
7236
|
return t ? t.hasOwnProperty("homeAccountId") && t.hasOwnProperty("environment") && t.hasOwnProperty("credentialType") && t.hasOwnProperty("clientId") && t.hasOwnProperty("secret") && t.credentialType === H.REFRESH_TOKEN : !1;
|
|
7240
7237
|
}, e;
|
|
@@ -7264,13 +7261,13 @@ var Ir = [
|
|
|
7264
7261
|
/** @class */
|
|
7265
7262
|
function(n) {
|
|
7266
7263
|
Ue(e, n);
|
|
7267
|
-
function e(t, r, o, i, a, s,
|
|
7264
|
+
function e(t, r, o, i, a, s, u) {
|
|
7268
7265
|
var p = n.call(this, t, r, o) || this;
|
|
7269
|
-
return Object.setPrototypeOf(p, e.prototype), p.timestamp = i || g.EMPTY_STRING, p.traceId = a || g.EMPTY_STRING, p.correlationId = s || g.EMPTY_STRING, p.claims =
|
|
7266
|
+
return Object.setPrototypeOf(p, e.prototype), p.timestamp = i || g.EMPTY_STRING, p.traceId = a || g.EMPTY_STRING, p.correlationId = s || g.EMPTY_STRING, p.claims = u || g.EMPTY_STRING, p.name = "InteractionRequiredAuthError", p;
|
|
7270
7267
|
}
|
|
7271
7268
|
return e.isInteractionRequiredError = function(t, r, o) {
|
|
7272
|
-
var i = !!t && Ir.indexOf(t) > -1, a = !!o && Mi.indexOf(o) > -1, s = !!r && Ir.some(function(
|
|
7273
|
-
return r.indexOf(
|
|
7269
|
+
var i = !!t && Ir.indexOf(t) > -1, a = !!o && Mi.indexOf(o) > -1, s = !!r && Ir.some(function(u) {
|
|
7270
|
+
return r.indexOf(u) > -1;
|
|
7274
7271
|
});
|
|
7275
7272
|
return i || s || a;
|
|
7276
7273
|
}, e.createNoTokensFoundError = function() {
|
|
@@ -7319,8 +7316,8 @@ var st = (
|
|
|
7319
7316
|
userRequestState: L.isEmpty(i) ? g.EMPTY_STRING : i,
|
|
7320
7317
|
libraryState: s
|
|
7321
7318
|
};
|
|
7322
|
-
} catch (
|
|
7323
|
-
throw O.createInvalidStateError(t,
|
|
7319
|
+
} catch (u) {
|
|
7320
|
+
throw O.createInvalidStateError(t, u);
|
|
7324
7321
|
}
|
|
7325
7322
|
}, n;
|
|
7326
7323
|
}()
|
|
@@ -7493,11 +7490,11 @@ var Ut = (
|
|
|
7493
7490
|
});
|
|
7494
7491
|
}, n.prototype.signPayload = function(e, t, r, o) {
|
|
7495
7492
|
return j(this, void 0, void 0, function() {
|
|
7496
|
-
var i, a, s,
|
|
7493
|
+
var i, a, s, u, p, d;
|
|
7497
7494
|
return K(this, function(f) {
|
|
7498
7495
|
switch (f.label) {
|
|
7499
7496
|
case 0:
|
|
7500
|
-
return i = r.resourceRequestMethod, a = r.resourceRequestUri, s = r.shrClaims,
|
|
7497
|
+
return i = r.resourceRequestMethod, a = r.resourceRequestUri, s = r.shrClaims, u = r.shrNonce, p = a ? new W(a) : void 0, d = p == null ? void 0 : p.getUrlComponents(), [4, this.cryptoUtils.signJwt(Z({ at: e, ts: Ke.nowSeconds(), m: i == null ? void 0 : i.toUpperCase(), u: d == null ? void 0 : d.HostNameAndPort, nonce: u || this.cryptoUtils.createNewGuid(), p: d == null ? void 0 : d.AbsolutePath, q: d != null && d.QueryString ? [[], d.QueryString] : void 0, client_claims: s || void 0 }, o), t, r.correlationId)];
|
|
7501
7498
|
case 1:
|
|
7502
7499
|
return [2, f.sent()];
|
|
7503
7500
|
}
|
|
@@ -7579,14 +7576,14 @@ var wn = (
|
|
|
7579
7576
|
var t = e.error_codes + " - [" + e.timestamp + "]: " + e.error_description + " - Correlation ID: " + e.correlation_id + " - Trace ID: " + e.trace_id;
|
|
7580
7577
|
throw new bt(e.error, t, e.suberror);
|
|
7581
7578
|
}
|
|
7582
|
-
}, n.prototype.handleServerTokenResponse = function(e, t, r, o, i, a, s,
|
|
7583
|
-
var
|
|
7579
|
+
}, n.prototype.handleServerTokenResponse = function(e, t, r, o, i, a, s, u, p) {
|
|
7580
|
+
var d;
|
|
7584
7581
|
return j(this, void 0, void 0, function() {
|
|
7585
7582
|
var f, _, k, E, N, Q, X;
|
|
7586
7583
|
return K(this, function(G) {
|
|
7587
7584
|
switch (G.label) {
|
|
7588
7585
|
case 0:
|
|
7589
|
-
if ((
|
|
7586
|
+
if ((d = this.performanceClient) === null || d === void 0 || d.addQueueMeasurement(b.HandleServerTokenResponse, e.correlation_id), e.id_token) {
|
|
7590
7587
|
if (f = new rt(e.id_token || g.EMPTY_STRING, this.cryptoObj), i && !L.isEmpty(i.nonce) && f.claims.nonce !== i.nonce)
|
|
7591
7588
|
throw O.createNonceMismatchError();
|
|
7592
7589
|
if (o.maxAge || o.maxAge === 0) {
|
|
@@ -7601,7 +7598,7 @@ var wn = (
|
|
|
7601
7598
|
case 2:
|
|
7602
7599
|
G.sent(), G.label = 3;
|
|
7603
7600
|
case 3:
|
|
7604
|
-
return s && !
|
|
7601
|
+
return s && !u && E.account && (Q = E.account.generateAccountKey(), X = this.cacheStorage.getAccount(Q), !X) ? (this.logger.warning("Account used to refresh tokens not in persistence, refreshed tokens will not be stored in the cache"), [2, n.generateAuthenticationResult(this.cryptoObj, t, E, !1, o, f, k, void 0, p)]) : [4, this.cacheStorage.saveCacheRecord(E)];
|
|
7605
7602
|
case 4:
|
|
7606
7603
|
return G.sent(), [3, 8];
|
|
7607
7604
|
case 5:
|
|
@@ -7619,20 +7616,20 @@ var wn = (
|
|
|
7619
7616
|
});
|
|
7620
7617
|
});
|
|
7621
7618
|
}, n.prototype.generateCacheRecord = function(e, t, r, o, i, a, s) {
|
|
7622
|
-
var
|
|
7623
|
-
if (L.isEmpty(
|
|
7619
|
+
var u = t.getPreferredCache();
|
|
7620
|
+
if (L.isEmpty(u))
|
|
7624
7621
|
throw O.createInvalidCacheEnvironmentError();
|
|
7625
|
-
var p,
|
|
7626
|
-
!L.isEmpty(e.id_token) && i && (p = gt.createIdTokenEntity(this.homeAccountIdentifier,
|
|
7622
|
+
var p, d;
|
|
7623
|
+
!L.isEmpty(e.id_token) && i && (p = gt.createIdTokenEntity(this.homeAccountIdentifier, u, e.id_token || g.EMPTY_STRING, this.clientId, i.claims.tid || g.EMPTY_STRING), d = this.generateAccountEntity(e, i, t, s));
|
|
7627
7624
|
var f = null;
|
|
7628
7625
|
if (!L.isEmpty(e.access_token)) {
|
|
7629
7626
|
var _ = e.scope ? Ee.fromString(e.scope) : new Ee(o.scopes || []), k = (typeof e.expires_in == "string" ? parseInt(e.expires_in, 10) : e.expires_in) || 0, E = (typeof e.ext_expires_in == "string" ? parseInt(e.ext_expires_in, 10) : e.ext_expires_in) || 0, N = (typeof e.refresh_in == "string" ? parseInt(e.refresh_in, 10) : e.refresh_in) || void 0, Q = r + k, X = Q + E, G = N && N > 0 ? r + N : void 0;
|
|
7630
|
-
f = _t.createAccessTokenEntity(this.homeAccountIdentifier,
|
|
7627
|
+
f = _t.createAccessTokenEntity(this.homeAccountIdentifier, u, e.access_token || g.EMPTY_STRING, this.clientId, i ? i.claims.tid || g.EMPTY_STRING : t.tenant, _.printScopes(), Q, X, this.cryptoObj, G, e.token_type, a, e.key_id, o.claims, o.requestedClaimsHash);
|
|
7631
7628
|
}
|
|
7632
7629
|
var $ = null;
|
|
7633
|
-
L.isEmpty(e.refresh_token) || ($ = Pt.createRefreshTokenEntity(this.homeAccountIdentifier,
|
|
7630
|
+
L.isEmpty(e.refresh_token) || ($ = Pt.createRefreshTokenEntity(this.homeAccountIdentifier, u, e.refresh_token || g.EMPTY_STRING, this.clientId, e.foci, a));
|
|
7634
7631
|
var Ae = null;
|
|
7635
|
-
return L.isEmpty(e.foci) || (Ae = Vn.createAppMetadataEntity(this.clientId,
|
|
7632
|
+
return L.isEmpty(e.foci) || (Ae = Vn.createAppMetadataEntity(this.clientId, u, e.foci)), new Zt(d, p, f, $, Ae);
|
|
7636
7633
|
}, n.prototype.generateAccountEntity = function(e, t, r, o) {
|
|
7637
7634
|
var i = r.authorityType, a = o ? o.cloud_graph_host_name : g.EMPTY_STRING, s = o ? o.msgraph_host : g.EMPTY_STRING;
|
|
7638
7635
|
if (i === Se.Adfs)
|
|
@@ -7640,8 +7637,8 @@ var wn = (
|
|
|
7640
7637
|
if (L.isEmpty(e.client_info) && r.protocolMode === "AAD")
|
|
7641
7638
|
throw O.createClientInfoEmptyError();
|
|
7642
7639
|
return e.client_info ? we.createAccount(e.client_info, this.homeAccountIdentifier, t, r, a, s) : we.createGenericAccount(this.homeAccountIdentifier, t, r, a, s);
|
|
7643
|
-
}, n.generateAuthenticationResult = function(e, t, r, o, i, a, s,
|
|
7644
|
-
var
|
|
7640
|
+
}, n.generateAuthenticationResult = function(e, t, r, o, i, a, s, u, p) {
|
|
7641
|
+
var d, f, _;
|
|
7645
7642
|
return j(this, void 0, void 0, function() {
|
|
7646
7643
|
var k, E, N, Q, X, G, $, Ae, xe, Ve, Ct;
|
|
7647
7644
|
return K(this, function(ce) {
|
|
@@ -7661,7 +7658,7 @@ var wn = (
|
|
|
7661
7658
|
case 3:
|
|
7662
7659
|
E = Ee.fromString(r.accessToken.target).asArray(), N = new Date(Number(r.accessToken.expiresOn) * 1e3), Q = new Date(Number(r.accessToken.extendedExpiresOn) * 1e3), ce.label = 4;
|
|
7663
7660
|
case 4:
|
|
7664
|
-
return r.appMetadata && (X = r.appMetadata.familyId === Yt ? Yt : g.EMPTY_STRING), Ve = (a == null ? void 0 : a.claims.oid) || (a == null ? void 0 : a.claims.sub) || g.EMPTY_STRING, Ct = (a == null ? void 0 : a.claims.tid) || g.EMPTY_STRING,
|
|
7661
|
+
return r.appMetadata && (X = r.appMetadata.familyId === Yt ? Yt : g.EMPTY_STRING), Ve = (a == null ? void 0 : a.claims.oid) || (a == null ? void 0 : a.claims.sub) || g.EMPTY_STRING, Ct = (a == null ? void 0 : a.claims.tid) || g.EMPTY_STRING, u != null && u.spa_accountid && r.account && (r.account.nativeAccountId = u == null ? void 0 : u.spa_accountid), [2, {
|
|
7665
7662
|
authority: t.canonicalAuthority,
|
|
7666
7663
|
uniqueId: Ve,
|
|
7667
7664
|
tenantId: Ct,
|
|
@@ -7676,11 +7673,11 @@ var wn = (
|
|
|
7676
7673
|
requestId: p || g.EMPTY_STRING,
|
|
7677
7674
|
extExpiresOn: Q,
|
|
7678
7675
|
familyId: X,
|
|
7679
|
-
tokenType: ((
|
|
7676
|
+
tokenType: ((d = r.accessToken) === null || d === void 0 ? void 0 : d.tokenType) || g.EMPTY_STRING,
|
|
7680
7677
|
state: s ? s.userRequestState : g.EMPTY_STRING,
|
|
7681
7678
|
cloudGraphHostName: ((f = r.account) === null || f === void 0 ? void 0 : f.cloudGraphHostName) || g.EMPTY_STRING,
|
|
7682
7679
|
msGraphHost: ((_ = r.account) === null || _ === void 0 ? void 0 : _.msGraphHost) || g.EMPTY_STRING,
|
|
7683
|
-
code:
|
|
7680
|
+
code: u == null ? void 0 : u.spa_code,
|
|
7684
7681
|
fromNativeBroker: !1
|
|
7685
7682
|
}];
|
|
7686
7683
|
}
|
|
@@ -7712,24 +7709,24 @@ var ro = (
|
|
|
7712
7709
|
});
|
|
7713
7710
|
});
|
|
7714
7711
|
}, e.prototype.acquireToken = function(t, r) {
|
|
7715
|
-
var o, i, a, s,
|
|
7712
|
+
var o, i, a, s, u, p;
|
|
7716
7713
|
return j(this, void 0, void 0, function() {
|
|
7717
|
-
var
|
|
7714
|
+
var d, f, _, k, E, N, Q = this;
|
|
7718
7715
|
return K(this, function(X) {
|
|
7719
7716
|
switch (X.label) {
|
|
7720
7717
|
case 0:
|
|
7721
7718
|
if (!t || !t.code)
|
|
7722
7719
|
throw O.createTokenRequestCannotBeMadeError();
|
|
7723
|
-
return (o = this.performanceClient) === null || o === void 0 || o.addQueueMeasurement(b.AuthClientAcquireToken, t.correlationId),
|
|
7720
|
+
return (o = this.performanceClient) === null || o === void 0 || o.addQueueMeasurement(b.AuthClientAcquireToken, t.correlationId), d = (i = this.performanceClient) === null || i === void 0 ? void 0 : i.startMeasurement("AuthCodeClientAcquireToken", t.correlationId), this.logger.info("in acquireToken call in auth-code client"), f = Ke.nowSeconds(), (a = this.performanceClient) === null || a === void 0 || a.setPreQueueTime(b.AuthClientExecuteTokenRequest, t.correlationId), [4, this.executeTokenRequest(this.authority, t)];
|
|
7724
7721
|
case 1:
|
|
7725
|
-
return _ = X.sent(), k = (s = _.headers) === null || s === void 0 ? void 0 : s[De.X_MS_REQUEST_ID], E = (
|
|
7722
|
+
return _ = X.sent(), k = (s = _.headers) === null || s === void 0 ? void 0 : s[De.X_MS_REQUEST_ID], E = (u = _.headers) === null || u === void 0 ? void 0 : u[De.X_MS_HTTP_VERSION], E && (d == null || d.addStaticFields({
|
|
7726
7723
|
httpVerAuthority: E
|
|
7727
7724
|
})), N = new wn(this.config.authOptions.clientId, this.cacheManager, this.cryptoUtils, this.logger, this.config.serializableCache, this.config.persistencePlugin, this.performanceClient), N.validateTokenResponse(_.body), (p = this.performanceClient) === null || p === void 0 || p.setPreQueueTime(b.HandleServerTokenResponse, t.correlationId), [2, N.handleServerTokenResponse(_.body, this.authority, f, t, r, void 0, void 0, void 0, k).then(function(G) {
|
|
7728
|
-
return
|
|
7725
|
+
return d == null || d.endMeasurement({
|
|
7729
7726
|
success: !0
|
|
7730
7727
|
}), G;
|
|
7731
7728
|
}).catch(function(G) {
|
|
7732
|
-
throw Q.logger.verbose("Error in fetching token in ACC", t.correlationId),
|
|
7729
|
+
throw Q.logger.verbose("Error in fetching token in ACC", t.correlationId), d == null || d.endMeasurement({
|
|
7733
7730
|
errorCode: G.errorCode,
|
|
7734
7731
|
subErrorCode: G.subError,
|
|
7735
7732
|
success: !1
|
|
@@ -7754,16 +7751,16 @@ var ro = (
|
|
|
7754
7751
|
}, e.prototype.executeTokenRequest = function(t, r) {
|
|
7755
7752
|
var o, i;
|
|
7756
7753
|
return j(this, void 0, void 0, function() {
|
|
7757
|
-
var a, s,
|
|
7754
|
+
var a, s, u, p, d, f, _;
|
|
7758
7755
|
return K(this, function(k) {
|
|
7759
7756
|
switch (k.label) {
|
|
7760
7757
|
case 0:
|
|
7761
7758
|
return (o = this.performanceClient) === null || o === void 0 || o.addQueueMeasurement(b.AuthClientExecuteTokenRequest, r.correlationId), (i = this.performanceClient) === null || i === void 0 || i.setPreQueueTime(b.AuthClientCreateTokenRequestBody, r.correlationId), a = this.createTokenQueryParameters(r), s = W.appendQueryString(t.tokenEndpoint, a), [4, this.createTokenRequestBody(r)];
|
|
7762
7759
|
case 1:
|
|
7763
|
-
if (
|
|
7760
|
+
if (u = k.sent(), p = void 0, r.clientInfo)
|
|
7764
7761
|
try {
|
|
7765
|
-
|
|
7766
|
-
credential: "" +
|
|
7762
|
+
d = vn(r.clientInfo, this.cryptoUtils), p = {
|
|
7763
|
+
credential: "" + d.uid + fe.CLIENT_INFO_SEPARATOR + d.utid,
|
|
7767
7764
|
type: Be.HOME_ACCOUNT_ID
|
|
7768
7765
|
};
|
|
7769
7766
|
} catch (E) {
|
|
@@ -7779,20 +7776,20 @@ var ro = (
|
|
|
7779
7776
|
resourceRequestUri: r.resourceRequestUri,
|
|
7780
7777
|
shrClaims: r.shrClaims,
|
|
7781
7778
|
sshKid: r.sshKid
|
|
7782
|
-
}, [2, this.executePostToTokenEndpoint(s,
|
|
7779
|
+
}, [2, this.executePostToTokenEndpoint(s, u, f, _)];
|
|
7783
7780
|
}
|
|
7784
7781
|
});
|
|
7785
7782
|
});
|
|
7786
7783
|
}, e.prototype.createTokenRequestBody = function(t) {
|
|
7787
7784
|
var r, o;
|
|
7788
7785
|
return j(this, void 0, void 0, function() {
|
|
7789
|
-
var i, a, s,
|
|
7786
|
+
var i, a, s, u, p, d, f, f, _;
|
|
7790
7787
|
return K(this, function(k) {
|
|
7791
7788
|
switch (k.label) {
|
|
7792
7789
|
case 0:
|
|
7793
7790
|
return (r = this.performanceClient) === null || r === void 0 || r.addQueueMeasurement(b.AuthClientCreateTokenRequestBody, t.correlationId), i = new Xt(), i.addClientId(this.config.authOptions.clientId), this.includeRedirectUri ? i.addRedirectUri(t.redirectUri) : ft.validateRedirectUri(t.redirectUri), i.addScopes(t.scopes), i.addAuthorizationCode(t.code), i.addLibraryInfo(this.config.libraryInfo), i.addApplicationTelemetry(this.config.telemetry.application), i.addThrottling(), this.serverTelemetryManager && i.addServerTelemetry(this.serverTelemetryManager), t.codeVerifier && i.addCodeVerifier(t.codeVerifier), this.config.clientCredentials.clientSecret && i.addClientSecret(this.config.clientCredentials.clientSecret), this.config.clientCredentials.clientAssertion && (a = this.config.clientCredentials.clientAssertion, i.addClientAssertion(a.assertion), i.addClientAssertionType(a.assertionType)), i.addGrantType(fn.AUTHORIZATION_CODE_GRANT), i.addClientInfo(), t.authenticationScheme !== te.POP ? [3, 2] : (s = new Ut(this.cryptoUtils, this.performanceClient), (o = this.performanceClient) === null || o === void 0 || o.setPreQueueTime(b.PopTokenGenerateCnf, t.correlationId), [4, s.generateCnf(t)]);
|
|
7794
7791
|
case 1:
|
|
7795
|
-
return
|
|
7792
|
+
return u = k.sent(), i.addPopToken(u.reqCnfString), [3, 3];
|
|
7796
7793
|
case 2:
|
|
7797
7794
|
if (t.authenticationScheme === te.SSH)
|
|
7798
7795
|
if (t.sshJwk)
|
|
@@ -7801,9 +7798,9 @@ var ro = (
|
|
|
7801
7798
|
throw ie.createMissingSshJwkError();
|
|
7802
7799
|
k.label = 3;
|
|
7803
7800
|
case 3:
|
|
7804
|
-
if (p = t.correlationId || this.config.cryptoInterface.createNewGuid(), i.addCorrelationId(p), (!L.isEmptyObj(t.claims) || this.config.authOptions.clientCapabilities && this.config.authOptions.clientCapabilities.length > 0) && i.addClaims(t.claims, this.config.authOptions.clientCapabilities),
|
|
7801
|
+
if (p = t.correlationId || this.config.cryptoInterface.createNewGuid(), i.addCorrelationId(p), (!L.isEmptyObj(t.claims) || this.config.authOptions.clientCapabilities && this.config.authOptions.clientCapabilities.length > 0) && i.addClaims(t.claims, this.config.authOptions.clientCapabilities), d = void 0, t.clientInfo)
|
|
7805
7802
|
try {
|
|
7806
|
-
f = vn(t.clientInfo, this.cryptoUtils),
|
|
7803
|
+
f = vn(t.clientInfo, this.cryptoUtils), d = {
|
|
7807
7804
|
credential: "" + f.uid + fe.CLIENT_INFO_SEPARATOR + f.utid,
|
|
7808
7805
|
type: Be.HOME_ACCOUNT_ID
|
|
7809
7806
|
};
|
|
@@ -7811,18 +7808,18 @@ var ro = (
|
|
|
7811
7808
|
this.logger.verbose("Could not parse client info for CCS Header: " + E);
|
|
7812
7809
|
}
|
|
7813
7810
|
else
|
|
7814
|
-
|
|
7815
|
-
if (this.config.systemOptions.preventCorsPreflight &&
|
|
7816
|
-
switch (
|
|
7811
|
+
d = t.ccsCredential;
|
|
7812
|
+
if (this.config.systemOptions.preventCorsPreflight && d)
|
|
7813
|
+
switch (d.type) {
|
|
7817
7814
|
case Be.HOME_ACCOUNT_ID:
|
|
7818
7815
|
try {
|
|
7819
|
-
f = Rt(
|
|
7816
|
+
f = Rt(d.credential), i.addCcsOid(f);
|
|
7820
7817
|
} catch (E) {
|
|
7821
7818
|
this.logger.verbose("Could not parse home account ID for CCS Header: " + E);
|
|
7822
7819
|
}
|
|
7823
7820
|
break;
|
|
7824
7821
|
case Be.UPN:
|
|
7825
|
-
i.addCcsUpn(
|
|
7822
|
+
i.addCcsUpn(d.credential);
|
|
7826
7823
|
break;
|
|
7827
7824
|
}
|
|
7828
7825
|
return t.tokenBodyParameters && i.addExtraQueryParameters(t.tokenBodyParameters), t.enableSpaAuthorizationCode && (!t.tokenBodyParameters || !t.tokenBodyParameters[V.RETURN_SPA_CODE]) && i.addExtraQueryParameters((_ = {}, _[V.RETURN_SPA_CODE] = "1", _)), [2, i.createQueryString()];
|
|
@@ -7832,7 +7829,7 @@ var ro = (
|
|
|
7832
7829
|
}, e.prototype.createAuthCodeUrlQueryString = function(t) {
|
|
7833
7830
|
var r;
|
|
7834
7831
|
return j(this, void 0, void 0, function() {
|
|
7835
|
-
var o, i, a, s,
|
|
7832
|
+
var o, i, a, s, u, p, p, p, d, f;
|
|
7836
7833
|
return K(this, function(_) {
|
|
7837
7834
|
switch (_.label) {
|
|
7838
7835
|
case 0:
|
|
@@ -7840,8 +7837,8 @@ var ro = (
|
|
|
7840
7837
|
if (t.sid && t.prompt === Te.NONE)
|
|
7841
7838
|
this.logger.verbose("createAuthCodeUrlQueryString: Prompt is none, adding sid from request"), o.addSid(t.sid);
|
|
7842
7839
|
else if (t.account) {
|
|
7843
|
-
if (s = this.extractAccountSid(t.account),
|
|
7844
|
-
this.logger.verbose("createAuthCodeUrlQueryString: login_hint claim present on account"), o.addLoginHint(
|
|
7840
|
+
if (s = this.extractAccountSid(t.account), u = this.extractLoginHint(t.account), u) {
|
|
7841
|
+
this.logger.verbose("createAuthCodeUrlQueryString: login_hint claim present on account"), o.addLoginHint(u);
|
|
7845
7842
|
try {
|
|
7846
7843
|
p = Rt(t.account.homeAccountId), o.addCcsOid(p);
|
|
7847
7844
|
} catch {
|
|
@@ -7868,7 +7865,7 @@ var ro = (
|
|
|
7868
7865
|
t.loginHint && (this.logger.verbose("createAuthCodeUrlQueryString: No account, adding login_hint from request"), o.addLoginHint(t.loginHint), o.addCcsUpn(t.loginHint));
|
|
7869
7866
|
else
|
|
7870
7867
|
this.logger.verbose("createAuthCodeUrlQueryString: Prompt is select_account, ignoring account hints");
|
|
7871
|
-
return t.nonce && o.addNonce(t.nonce), t.state && o.addState(t.state), (!L.isEmpty(t.claims) || this.config.authOptions.clientCapabilities && this.config.authOptions.clientCapabilities.length > 0) && o.addClaims(t.claims, this.config.authOptions.clientCapabilities), t.extraQueryParameters && o.addExtraQueryParameters(t.extraQueryParameters), t.nativeBroker ? (o.addNativeBroker(), t.authenticationScheme !== te.POP ? [3, 2] : (
|
|
7868
|
+
return t.nonce && o.addNonce(t.nonce), t.state && o.addState(t.state), (!L.isEmpty(t.claims) || this.config.authOptions.clientCapabilities && this.config.authOptions.clientCapabilities.length > 0) && o.addClaims(t.claims, this.config.authOptions.clientCapabilities), t.extraQueryParameters && o.addExtraQueryParameters(t.extraQueryParameters), t.nativeBroker ? (o.addNativeBroker(), t.authenticationScheme !== te.POP ? [3, 2] : (d = new Ut(this.cryptoUtils), [4, d.generateCnf(t)])) : [3, 2];
|
|
7872
7869
|
case 1:
|
|
7873
7870
|
f = _.sent(), o.addPopToken(f.reqCnfString), _.label = 2;
|
|
7874
7871
|
case 2:
|
|
@@ -7897,24 +7894,24 @@ var oo = (
|
|
|
7897
7894
|
return n.call(this, t, r) || this;
|
|
7898
7895
|
}
|
|
7899
7896
|
return e.prototype.acquireToken = function(t) {
|
|
7900
|
-
var r, o, i, a, s,
|
|
7897
|
+
var r, o, i, a, s, u, p;
|
|
7901
7898
|
return j(this, void 0, void 0, function() {
|
|
7902
|
-
var
|
|
7899
|
+
var d, f, _, k, E, N, Q = this;
|
|
7903
7900
|
return K(this, function(X) {
|
|
7904
7901
|
switch (X.label) {
|
|
7905
7902
|
case 0:
|
|
7906
|
-
return (r = this.performanceClient) === null || r === void 0 || r.addQueueMeasurement(b.RefreshTokenClientAcquireToken, t.correlationId),
|
|
7903
|
+
return (r = this.performanceClient) === null || r === void 0 || r.addQueueMeasurement(b.RefreshTokenClientAcquireToken, t.correlationId), d = (o = this.performanceClient) === null || o === void 0 ? void 0 : o.startMeasurement(b.RefreshTokenClientAcquireToken, t.correlationId), this.logger.verbose("RefreshTokenClientAcquireToken called", t.correlationId), f = Ke.nowSeconds(), (i = this.performanceClient) === null || i === void 0 || i.setPreQueueTime(b.RefreshTokenClientExecuteTokenRequest, t.correlationId), [4, this.executeTokenRequest(t, this.authority)];
|
|
7907
7904
|
case 1:
|
|
7908
|
-
return _ = X.sent(), k = (a = _.headers) === null || a === void 0 ? void 0 : a[De.X_MS_HTTP_VERSION],
|
|
7905
|
+
return _ = X.sent(), k = (a = _.headers) === null || a === void 0 ? void 0 : a[De.X_MS_HTTP_VERSION], d == null || d.addStaticFields({
|
|
7909
7906
|
refreshTokenSize: ((s = _.body.refresh_token) === null || s === void 0 ? void 0 : s.length) || 0
|
|
7910
|
-
}), k && (
|
|
7907
|
+
}), k && (d == null || d.addStaticFields({
|
|
7911
7908
|
httpVerToken: k
|
|
7912
|
-
})), E = (
|
|
7913
|
-
return
|
|
7909
|
+
})), E = (u = _.headers) === null || u === void 0 ? void 0 : u[De.X_MS_REQUEST_ID], N = new wn(this.config.authOptions.clientId, this.cacheManager, this.cryptoUtils, this.logger, this.config.serializableCache, this.config.persistencePlugin), N.validateTokenResponse(_.body), (p = this.performanceClient) === null || p === void 0 || p.setPreQueueTime(b.HandleServerTokenResponse, t.correlationId), [2, N.handleServerTokenResponse(_.body, this.authority, f, t, void 0, void 0, !0, t.forceCache, E).then(function(G) {
|
|
7910
|
+
return d == null || d.endMeasurement({
|
|
7914
7911
|
success: !0
|
|
7915
7912
|
}), G;
|
|
7916
7913
|
}).catch(function(G) {
|
|
7917
|
-
throw Q.logger.verbose("Error in fetching refresh token", t.correlationId),
|
|
7914
|
+
throw Q.logger.verbose("Error in fetching refresh token", t.correlationId), d == null || d.endMeasurement({
|
|
7918
7915
|
errorCode: G.errorCode,
|
|
7919
7916
|
subErrorCode: G.subError,
|
|
7920
7917
|
success: !1
|
|
@@ -7926,8 +7923,8 @@ var oo = (
|
|
|
7926
7923
|
}, e.prototype.acquireTokenByRefreshToken = function(t) {
|
|
7927
7924
|
var r, o, i, a;
|
|
7928
7925
|
return j(this, void 0, void 0, function() {
|
|
7929
|
-
var s,
|
|
7930
|
-
return K(this, function(
|
|
7926
|
+
var s, u, p;
|
|
7927
|
+
return K(this, function(d) {
|
|
7931
7928
|
if (!t)
|
|
7932
7929
|
throw ie.createEmptyTokenRequestError();
|
|
7933
7930
|
if ((r = this.performanceClient) === null || r === void 0 || r.addQueueMeasurement(b.RefreshTokenClientAcquireTokenByRefreshToken, t.correlationId), !t.account)
|
|
@@ -7936,7 +7933,7 @@ var oo = (
|
|
|
7936
7933
|
try {
|
|
7937
7934
|
return (o = this.performanceClient) === null || o === void 0 || o.setPreQueueTime(b.RefreshTokenClientAcquireTokenWithCachedRefreshToken, t.correlationId), [2, this.acquireTokenWithCachedRefreshToken(t, !0)];
|
|
7938
7935
|
} catch (f) {
|
|
7939
|
-
if (
|
|
7936
|
+
if (u = f instanceof Ye && f.errorCode === Mt.noTokensFoundError.code, p = f instanceof bt && f.errorCode === Tr.INVALID_GRANT_ERROR && f.subError === Tr.CLIENT_MISMATCH_ERROR, u || p)
|
|
7940
7937
|
return (i = this.performanceClient) === null || i === void 0 || i.setPreQueueTime(b.RefreshTokenClientAcquireTokenWithCachedRefreshToken, t.correlationId), [2, this.acquireTokenWithCachedRefreshToken(t, !1)];
|
|
7941
7938
|
throw f;
|
|
7942
7939
|
}
|
|
@@ -7946,13 +7943,13 @@ var oo = (
|
|
|
7946
7943
|
}, e.prototype.acquireTokenWithCachedRefreshToken = function(t, r) {
|
|
7947
7944
|
var o, i, a;
|
|
7948
7945
|
return j(this, void 0, void 0, function() {
|
|
7949
|
-
var s,
|
|
7950
|
-
return K(this, function(
|
|
7951
|
-
if ((o = this.performanceClient) === null || o === void 0 || o.addQueueMeasurement(b.RefreshTokenClientAcquireTokenWithCachedRefreshToken, t.correlationId), s = (i = this.performanceClient) === null || i === void 0 ? void 0 : i.startMeasurement(b.RefreshTokenClientAcquireTokenWithCachedRefreshToken, t.correlationId), this.logger.verbose("RefreshTokenClientAcquireTokenWithCachedRefreshToken called", t.correlationId),
|
|
7946
|
+
var s, u, p;
|
|
7947
|
+
return K(this, function(d) {
|
|
7948
|
+
if ((o = this.performanceClient) === null || o === void 0 || o.addQueueMeasurement(b.RefreshTokenClientAcquireTokenWithCachedRefreshToken, t.correlationId), s = (i = this.performanceClient) === null || i === void 0 ? void 0 : i.startMeasurement(b.RefreshTokenClientAcquireTokenWithCachedRefreshToken, t.correlationId), this.logger.verbose("RefreshTokenClientAcquireTokenWithCachedRefreshToken called", t.correlationId), u = this.cacheManager.getRefreshToken(t.account, r), !u)
|
|
7952
7949
|
throw s == null || s.discardMeasurement(), Ye.createNoTokensFoundError();
|
|
7953
7950
|
return s == null || s.endMeasurement({
|
|
7954
7951
|
success: !0
|
|
7955
|
-
}), p = Z(Z({}, t), { refreshToken:
|
|
7952
|
+
}), p = Z(Z({}, t), { refreshToken: u.secret, authenticationScheme: t.authenticationScheme || te.BEARER, ccsCredential: {
|
|
7956
7953
|
credential: t.account.homeAccountId,
|
|
7957
7954
|
type: Be.HOME_ACCOUNT_ID
|
|
7958
7955
|
} }), (a = this.performanceClient) === null || a === void 0 || a.setPreQueueTime(b.RefreshTokenClientAcquireToken, t.correlationId), [2, this.acquireToken(p)];
|
|
@@ -7961,13 +7958,13 @@ var oo = (
|
|
|
7961
7958
|
}, e.prototype.executeTokenRequest = function(t, r) {
|
|
7962
7959
|
var o, i, a;
|
|
7963
7960
|
return j(this, void 0, void 0, function() {
|
|
7964
|
-
var s,
|
|
7961
|
+
var s, u, p, d, f, _;
|
|
7965
7962
|
return K(this, function(k) {
|
|
7966
7963
|
switch (k.label) {
|
|
7967
7964
|
case 0:
|
|
7968
|
-
return (o = this.performanceClient) === null || o === void 0 || o.addQueueMeasurement(b.RefreshTokenClientExecuteTokenRequest, t.correlationId), s = (i = this.performanceClient) === null || i === void 0 ? void 0 : i.startMeasurement(b.RefreshTokenClientExecuteTokenRequest, t.correlationId), (a = this.performanceClient) === null || a === void 0 || a.setPreQueueTime(b.RefreshTokenClientCreateTokenRequestBody, t.correlationId),
|
|
7965
|
+
return (o = this.performanceClient) === null || o === void 0 || o.addQueueMeasurement(b.RefreshTokenClientExecuteTokenRequest, t.correlationId), s = (i = this.performanceClient) === null || i === void 0 ? void 0 : i.startMeasurement(b.RefreshTokenClientExecuteTokenRequest, t.correlationId), (a = this.performanceClient) === null || a === void 0 || a.setPreQueueTime(b.RefreshTokenClientCreateTokenRequestBody, t.correlationId), u = this.createTokenQueryParameters(t), p = W.appendQueryString(r.tokenEndpoint, u), [4, this.createTokenRequestBody(t)];
|
|
7969
7966
|
case 1:
|
|
7970
|
-
return
|
|
7967
|
+
return d = k.sent(), f = this.createTokenRequestHeaders(t.ccsCredential), _ = {
|
|
7971
7968
|
clientId: this.config.authOptions.clientId,
|
|
7972
7969
|
authority: r.canonicalAuthority,
|
|
7973
7970
|
scopes: t.scopes,
|
|
@@ -7977,7 +7974,7 @@ var oo = (
|
|
|
7977
7974
|
resourceRequestUri: t.resourceRequestUri,
|
|
7978
7975
|
shrClaims: t.shrClaims,
|
|
7979
7976
|
sshKid: t.sshKid
|
|
7980
|
-
}, [2, this.executePostToTokenEndpoint(p,
|
|
7977
|
+
}, [2, this.executePostToTokenEndpoint(p, d, f, _).then(function(E) {
|
|
7981
7978
|
return s == null || s.endMeasurement({
|
|
7982
7979
|
success: !0
|
|
7983
7980
|
}), E;
|
|
@@ -7992,39 +7989,39 @@ var oo = (
|
|
|
7992
7989
|
}, e.prototype.createTokenRequestBody = function(t) {
|
|
7993
7990
|
var r, o, i;
|
|
7994
7991
|
return j(this, void 0, void 0, function() {
|
|
7995
|
-
var a, s,
|
|
7992
|
+
var a, s, u, p, d, f, _;
|
|
7996
7993
|
return K(this, function(k) {
|
|
7997
7994
|
switch (k.label) {
|
|
7998
7995
|
case 0:
|
|
7999
|
-
return (r = this.performanceClient) === null || r === void 0 || r.addQueueMeasurement(b.RefreshTokenClientCreateTokenRequestBody, t.correlationId), a = t.correlationId, s = (o = this.performanceClient) === null || o === void 0 ? void 0 : o.startMeasurement(b.BaseClientCreateTokenRequestHeaders, a),
|
|
7996
|
+
return (r = this.performanceClient) === null || r === void 0 || r.addQueueMeasurement(b.RefreshTokenClientCreateTokenRequestBody, t.correlationId), a = t.correlationId, s = (o = this.performanceClient) === null || o === void 0 ? void 0 : o.startMeasurement(b.BaseClientCreateTokenRequestHeaders, a), u = new Xt(), u.addClientId(this.config.authOptions.clientId), u.addScopes(t.scopes), u.addGrantType(fn.REFRESH_TOKEN_GRANT), u.addClientInfo(), u.addLibraryInfo(this.config.libraryInfo), u.addApplicationTelemetry(this.config.telemetry.application), u.addThrottling(), this.serverTelemetryManager && u.addServerTelemetry(this.serverTelemetryManager), u.addCorrelationId(a), u.addRefreshToken(t.refreshToken), this.config.clientCredentials.clientSecret && u.addClientSecret(this.config.clientCredentials.clientSecret), this.config.clientCredentials.clientAssertion && (p = this.config.clientCredentials.clientAssertion, u.addClientAssertion(p.assertion), u.addClientAssertionType(p.assertionType)), t.authenticationScheme !== te.POP ? [3, 2] : (d = new Ut(this.cryptoUtils, this.performanceClient), (i = this.performanceClient) === null || i === void 0 || i.setPreQueueTime(b.PopTokenGenerateCnf, t.correlationId), [4, d.generateCnf(t)]);
|
|
8000
7997
|
case 1:
|
|
8001
|
-
return f = k.sent(),
|
|
7998
|
+
return f = k.sent(), u.addPopToken(f.reqCnfString), [3, 3];
|
|
8002
7999
|
case 2:
|
|
8003
8000
|
if (t.authenticationScheme === te.SSH)
|
|
8004
8001
|
if (t.sshJwk)
|
|
8005
|
-
|
|
8002
|
+
u.addSshJwk(t.sshJwk);
|
|
8006
8003
|
else
|
|
8007
8004
|
throw s == null || s.endMeasurement({
|
|
8008
8005
|
success: !1
|
|
8009
8006
|
}), ie.createMissingSshJwkError();
|
|
8010
8007
|
k.label = 3;
|
|
8011
8008
|
case 3:
|
|
8012
|
-
if ((!L.isEmptyObj(t.claims) || this.config.authOptions.clientCapabilities && this.config.authOptions.clientCapabilities.length > 0) &&
|
|
8009
|
+
if ((!L.isEmptyObj(t.claims) || this.config.authOptions.clientCapabilities && this.config.authOptions.clientCapabilities.length > 0) && u.addClaims(t.claims, this.config.authOptions.clientCapabilities), this.config.systemOptions.preventCorsPreflight && t.ccsCredential)
|
|
8013
8010
|
switch (t.ccsCredential.type) {
|
|
8014
8011
|
case Be.HOME_ACCOUNT_ID:
|
|
8015
8012
|
try {
|
|
8016
|
-
_ = Rt(t.ccsCredential.credential),
|
|
8013
|
+
_ = Rt(t.ccsCredential.credential), u.addCcsOid(_);
|
|
8017
8014
|
} catch (E) {
|
|
8018
8015
|
this.logger.verbose("Could not parse home account ID for CCS Header: " + E);
|
|
8019
8016
|
}
|
|
8020
8017
|
break;
|
|
8021
8018
|
case Be.UPN:
|
|
8022
|
-
|
|
8019
|
+
u.addCcsUpn(t.ccsCredential.credential);
|
|
8023
8020
|
break;
|
|
8024
8021
|
}
|
|
8025
8022
|
return s == null || s.endMeasurement({
|
|
8026
8023
|
success: !0
|
|
8027
|
-
}), [2,
|
|
8024
|
+
}), [2, u.createQueryString()];
|
|
8028
8025
|
}
|
|
8029
8026
|
});
|
|
8030
8027
|
});
|
|
@@ -8063,9 +8060,9 @@ var Oi = (
|
|
|
8063
8060
|
}, e.prototype.acquireCachedToken = function(t) {
|
|
8064
8061
|
var r, o, i, a, s;
|
|
8065
8062
|
return j(this, void 0, void 0, function() {
|
|
8066
|
-
var
|
|
8067
|
-
return K(this, function(
|
|
8068
|
-
switch (
|
|
8063
|
+
var u, p;
|
|
8064
|
+
return K(this, function(d) {
|
|
8065
|
+
switch (d.label) {
|
|
8069
8066
|
case 0:
|
|
8070
8067
|
if (!t)
|
|
8071
8068
|
throw ie.createEmptyTokenRequestError();
|
|
@@ -8075,7 +8072,7 @@ var Oi = (
|
|
|
8075
8072
|
throw (o = this.serverTelemetryManager) === null || o === void 0 || o.setCacheOutcome(ht.CLAIMS_REQUESTED_CACHE_SKIPPED), this.logger.info("SilentFlowClient:acquireCachedToken - Skipping cache because claims-based caching is disabled and claims were requested."), O.createRefreshRequiredError();
|
|
8076
8073
|
if (!t.account)
|
|
8077
8074
|
throw O.createNoAccountInSilentRequestError();
|
|
8078
|
-
if (
|
|
8075
|
+
if (u = t.authority || this.authority.getPreferredCache(), p = this.cacheManager.readCacheRecord(t.account, t, u), p.accessToken) {
|
|
8079
8076
|
if (Ke.wasClockTurnedBack(p.accessToken.cachedAt) || Ke.isTokenExpired(p.accessToken.expiresOn, this.config.systemOptions.tokenRenewalOffsetSeconds))
|
|
8080
8077
|
throw (a = this.serverTelemetryManager) === null || a === void 0 || a.setCacheOutcome(ht.CACHED_ACCESS_TOKEN_EXPIRED), this.logger.info("SilentFlowClient:acquireCachedToken - Cached access token is expired or will expire within " + this.config.systemOptions.tokenRenewalOffsetSeconds + " seconds."), O.createRefreshRequiredError();
|
|
8081
8078
|
if (p.accessToken.refreshOn && Ke.isTokenExpired(p.accessToken.refreshOn, 0))
|
|
@@ -8084,7 +8081,7 @@ var Oi = (
|
|
|
8084
8081
|
throw (i = this.serverTelemetryManager) === null || i === void 0 || i.setCacheOutcome(ht.NO_CACHED_ACCESS_TOKEN), this.logger.info("SilentFlowClient:acquireCachedToken - No access token found in cache for the given properties."), O.createRefreshRequiredError();
|
|
8085
8082
|
return this.config.serverTelemetryManager && this.config.serverTelemetryManager.incrementCacheHits(), [4, this.generateResultFromCacheRecord(p, t)];
|
|
8086
8083
|
case 1:
|
|
8087
|
-
return [2,
|
|
8084
|
+
return [2, d.sent()];
|
|
8088
8085
|
}
|
|
8089
8086
|
});
|
|
8090
8087
|
});
|
|
@@ -8159,31 +8156,31 @@ var Bi = (
|
|
|
8159
8156
|
return n.prototype.detectRegion = function(e, t) {
|
|
8160
8157
|
var r, o, i, a;
|
|
8161
8158
|
return j(this, void 0, void 0, function() {
|
|
8162
|
-
var s,
|
|
8159
|
+
var s, u, p, d, f;
|
|
8163
8160
|
return K(this, function(_) {
|
|
8164
8161
|
switch (_.label) {
|
|
8165
8162
|
case 0:
|
|
8166
8163
|
if ((r = this.performanceClient) === null || r === void 0 || r.addQueueMeasurement(b.RegionDiscoveryDetectRegion, this.correlationId), s = e, s)
|
|
8167
8164
|
return [3, 8];
|
|
8168
|
-
|
|
8165
|
+
u = n.IMDS_OPTIONS, _.label = 1;
|
|
8169
8166
|
case 1:
|
|
8170
|
-
return _.trys.push([1, 6, , 7]), (o = this.performanceClient) === null || o === void 0 || o.setPreQueueTime(b.RegionDiscoveryGetRegionFromIMDS, this.correlationId), [4, this.getRegionFromIMDS(g.IMDS_VERSION,
|
|
8167
|
+
return _.trys.push([1, 6, , 7]), (o = this.performanceClient) === null || o === void 0 || o.setPreQueueTime(b.RegionDiscoveryGetRegionFromIMDS, this.correlationId), [4, this.getRegionFromIMDS(g.IMDS_VERSION, u)];
|
|
8171
8168
|
case 2:
|
|
8172
|
-
return p = _.sent(), p.status === At.httpSuccess && (s = p.body, t.region_source =
|
|
8169
|
+
return p = _.sent(), p.status === At.httpSuccess && (s = p.body, t.region_source = dt.IMDS), p.status !== At.httpBadRequest ? [3, 5] : ((i = this.performanceClient) === null || i === void 0 || i.setPreQueueTime(b.RegionDiscoveryGetCurrentVersion, this.correlationId), [4, this.getCurrentVersion(u)]);
|
|
8173
8170
|
case 3:
|
|
8174
|
-
return
|
|
8171
|
+
return d = _.sent(), d ? ((a = this.performanceClient) === null || a === void 0 || a.setPreQueueTime(b.RegionDiscoveryGetRegionFromIMDS, this.correlationId), [4, this.getRegionFromIMDS(d, u)]) : (t.region_source = dt.FAILED_AUTO_DETECTION, [2, null]);
|
|
8175
8172
|
case 4:
|
|
8176
|
-
f = _.sent(), f.status === At.httpSuccess && (s = f.body, t.region_source =
|
|
8173
|
+
f = _.sent(), f.status === At.httpSuccess && (s = f.body, t.region_source = dt.IMDS), _.label = 5;
|
|
8177
8174
|
case 5:
|
|
8178
8175
|
return [3, 7];
|
|
8179
8176
|
case 6:
|
|
8180
|
-
return _.sent(), t.region_source =
|
|
8177
|
+
return _.sent(), t.region_source = dt.FAILED_AUTO_DETECTION, [2, null];
|
|
8181
8178
|
case 7:
|
|
8182
8179
|
return [3, 9];
|
|
8183
8180
|
case 8:
|
|
8184
|
-
t.region_source =
|
|
8181
|
+
t.region_source = dt.ENVIRONMENT_VARIABLE, _.label = 9;
|
|
8185
8182
|
case 9:
|
|
8186
|
-
return s || (t.region_source =
|
|
8183
|
+
return s || (t.region_source = dt.FAILED_AUTO_DETECTION), [2, s || null];
|
|
8187
8184
|
}
|
|
8188
8185
|
});
|
|
8189
8186
|
});
|
|
@@ -8381,13 +8378,13 @@ var rn = (
|
|
|
8381
8378
|
return e.replace(/{tenant}|{tenantid}/g, this.tenant);
|
|
8382
8379
|
}, n.prototype.replacePath = function(e) {
|
|
8383
8380
|
var t = this, r = e, o = new W(this.metadata.canonical_authority), i = o.getUrlComponents(), a = i.PathSegments, s = this.canonicalAuthorityUrlComponents.PathSegments;
|
|
8384
|
-
return s.forEach(function(
|
|
8385
|
-
var
|
|
8381
|
+
return s.forEach(function(u, p) {
|
|
8382
|
+
var d = a[p];
|
|
8386
8383
|
if (p === 0 && t.canReplaceTenant(i)) {
|
|
8387
8384
|
var f = new W(t.metadata.authorization_endpoint).getUrlComponents().PathSegments[0];
|
|
8388
|
-
|
|
8385
|
+
d !== f && (t.logger.verbose("Replacing tenant domain name " + d + " with id " + f), d = f);
|
|
8389
8386
|
}
|
|
8390
|
-
|
|
8387
|
+
u !== d && (r = r.replace("/" + d + "/", "/" + u + "/"));
|
|
8391
8388
|
}), this.replaceTenant(r);
|
|
8392
8389
|
}, Object.defineProperty(n.prototype, "defaultOpenIdConfigurationEndpoint", {
|
|
8393
8390
|
/**
|
|
@@ -8404,14 +8401,14 @@ var rn = (
|
|
|
8404
8401
|
var e, t, r;
|
|
8405
8402
|
return j(this, void 0, void 0, function() {
|
|
8406
8403
|
var o, i, a, s;
|
|
8407
|
-
return K(this, function(
|
|
8408
|
-
switch (
|
|
8404
|
+
return K(this, function(u) {
|
|
8405
|
+
switch (u.label) {
|
|
8409
8406
|
case 0:
|
|
8410
8407
|
return (e = this.performanceClient) === null || e === void 0 || e.addQueueMeasurement(b.AuthorityResolveEndpointsAsync, this.correlationId), o = this.cacheManager.getAuthorityMetadataByAlias(this.hostnameAndPort), o || (o = new Qn(), o.updateCanonicalAuthority(this.canonicalAuthority)), (t = this.performanceClient) === null || t === void 0 || t.setPreQueueTime(b.AuthorityUpdateCloudDiscoveryMetadata, this.correlationId), [4, this.updateCloudDiscoveryMetadata(o)];
|
|
8411
8408
|
case 1:
|
|
8412
|
-
return i =
|
|
8409
|
+
return i = u.sent(), this.canonicalAuthority = this.canonicalAuthority.replace(this.hostnameAndPort, o.preferred_network), (r = this.performanceClient) === null || r === void 0 || r.setPreQueueTime(b.AuthorityUpdateEndpointMetadata, this.correlationId), [4, this.updateEndpointMetadata(o)];
|
|
8413
8410
|
case 2:
|
|
8414
|
-
return a =
|
|
8411
|
+
return a = u.sent(), i !== Fe.CACHE && a !== Fe.CACHE && (o.resetExpiresAt(), o.updateCanonicalAuthority(this.canonicalAuthority)), s = this.cacheManager.generateAuthorityMetadataCacheKey(o.preferred_cache), this.cacheManager.setAuthorityMetadata(s, o), this.metadata = o, [
|
|
8415
8412
|
2
|
|
8416
8413
|
/*return*/
|
|
8417
8414
|
];
|
|
@@ -8421,21 +8418,21 @@ var rn = (
|
|
|
8421
8418
|
}, n.prototype.updateEndpointMetadata = function(e) {
|
|
8422
8419
|
var t, r, o, i, a, s;
|
|
8423
8420
|
return j(this, void 0, void 0, function() {
|
|
8424
|
-
var
|
|
8425
|
-
return K(this, function(
|
|
8426
|
-
switch (
|
|
8421
|
+
var u, p;
|
|
8422
|
+
return K(this, function(d) {
|
|
8423
|
+
switch (d.label) {
|
|
8427
8424
|
case 0:
|
|
8428
|
-
return (t = this.performanceClient) === null || t === void 0 || t.addQueueMeasurement(b.AuthorityUpdateEndpointMetadata, this.correlationId),
|
|
8425
|
+
return (t = this.performanceClient) === null || t === void 0 || t.addQueueMeasurement(b.AuthorityUpdateEndpointMetadata, this.correlationId), u = this.getEndpointMetadataFromConfig(), u ? (e.updateEndpointMetadata(u, !1), [2, Fe.CONFIG]) : this.isAuthoritySameType(e) && e.endpointsFromNetwork && !e.isExpired() ? [2, Fe.CACHE] : ((r = this.performanceClient) === null || r === void 0 || r.setPreQueueTime(b.AuthorityGetEndpointMetadataFromNetwork, this.correlationId), [4, this.getEndpointMetadataFromNetwork()]);
|
|
8429
8426
|
case 1:
|
|
8430
|
-
return
|
|
8427
|
+
return u = d.sent(), u ? !((o = this.authorityOptions.azureRegionConfiguration) === null || o === void 0) && o.azureRegion ? ((i = this.performanceClient) === null || i === void 0 || i.setPreQueueTime(b.AuthorityUpdateMetadataWithRegionalInformation, this.correlationId), [4, this.updateMetadataWithRegionalInformation(u)]) : [3, 3] : [3, 4];
|
|
8431
8428
|
case 2:
|
|
8432
|
-
|
|
8429
|
+
u = d.sent(), d.label = 3;
|
|
8433
8430
|
case 3:
|
|
8434
|
-
return e.updateEndpointMetadata(
|
|
8431
|
+
return e.updateEndpointMetadata(u, !0), [2, Fe.NETWORK];
|
|
8435
8432
|
case 4:
|
|
8436
8433
|
return p = this.getEndpointMetadataFromHardcodedValues(), p && !this.authorityOptions.skipAuthorityMetadataCache ? !((a = this.authorityOptions.azureRegionConfiguration) === null || a === void 0) && a.azureRegion ? ((s = this.performanceClient) === null || s === void 0 || s.setPreQueueTime(b.AuthorityUpdateMetadataWithRegionalInformation, this.correlationId), [4, this.updateMetadataWithRegionalInformation(p)]) : [3, 6] : [3, 7];
|
|
8437
8434
|
case 5:
|
|
8438
|
-
p =
|
|
8435
|
+
p = d.sent(), d.label = 6;
|
|
8439
8436
|
case 6:
|
|
8440
8437
|
return e.updateEndpointMetadata(p, !1), [2, Fe.HARDCODED_VALUES];
|
|
8441
8438
|
case 7:
|
|
@@ -8482,14 +8479,14 @@ var rn = (
|
|
|
8482
8479
|
var t, r, o, i;
|
|
8483
8480
|
return j(this, void 0, void 0, function() {
|
|
8484
8481
|
var a, s;
|
|
8485
|
-
return K(this, function(
|
|
8486
|
-
switch (
|
|
8482
|
+
return K(this, function(u) {
|
|
8483
|
+
switch (u.label) {
|
|
8487
8484
|
case 0:
|
|
8488
8485
|
return (t = this.performanceClient) === null || t === void 0 || t.addQueueMeasurement(b.AuthorityUpdateMetadataWithRegionalInformation, this.correlationId), a = (r = this.authorityOptions.azureRegionConfiguration) === null || r === void 0 ? void 0 : r.azureRegion, a ? a !== g.AZURE_REGION_AUTO_DISCOVER_FLAG ? (this.regionDiscoveryMetadata.region_outcome = Jt.CONFIGURED_NO_AUTO_DETECTION, this.regionDiscoveryMetadata.region_used = a, [2, n.replaceWithRegionalInformation(e, a)]) : ((o = this.performanceClient) === null || o === void 0 || o.setPreQueueTime(b.RegionDiscoveryDetectRegion, this.correlationId), [4, this.regionDiscovery.detectRegion((i = this.authorityOptions.azureRegionConfiguration) === null || i === void 0 ? void 0 : i.environmentRegion, this.regionDiscoveryMetadata)]) : [3, 2];
|
|
8489
8486
|
case 1:
|
|
8490
|
-
if (s =
|
|
8487
|
+
if (s = u.sent(), s)
|
|
8491
8488
|
return this.regionDiscoveryMetadata.region_outcome = Jt.AUTO_DETECTION_REQUESTED_SUCCESSFUL, this.regionDiscoveryMetadata.region_used = s, [2, n.replaceWithRegionalInformation(e, s)];
|
|
8492
|
-
this.regionDiscoveryMetadata.region_outcome = Jt.AUTO_DETECTION_REQUESTED_FAILED,
|
|
8489
|
+
this.regionDiscoveryMetadata.region_outcome = Jt.AUTO_DETECTION_REQUESTED_FAILED, u.label = 2;
|
|
8493
8490
|
case 2:
|
|
8494
8491
|
return [2, e];
|
|
8495
8492
|
}
|
|
@@ -8531,15 +8528,15 @@ var rn = (
|
|
|
8531
8528
|
}, n.prototype.getCloudDiscoveryMetadataFromNetwork = function() {
|
|
8532
8529
|
var e;
|
|
8533
8530
|
return j(this, void 0, void 0, function() {
|
|
8534
|
-
var t, r, o, i, a, s,
|
|
8535
|
-
return K(this, function(
|
|
8536
|
-
switch (
|
|
8531
|
+
var t, r, o, i, a, s, u, p;
|
|
8532
|
+
return K(this, function(d) {
|
|
8533
|
+
switch (d.label) {
|
|
8537
8534
|
case 0:
|
|
8538
|
-
(e = this.performanceClient) === null || e === void 0 || e.addQueueMeasurement(b.AuthorityGetCloudDiscoveryMetadataFromNetwork, this.correlationId), t = "" + g.AAD_INSTANCE_DISCOVERY_ENDPT + this.canonicalAuthority + "oauth2/v2.0/authorize", r = {}, o = null,
|
|
8535
|
+
(e = this.performanceClient) === null || e === void 0 || e.addQueueMeasurement(b.AuthorityGetCloudDiscoveryMetadataFromNetwork, this.correlationId), t = "" + g.AAD_INSTANCE_DISCOVERY_ENDPT + this.canonicalAuthority + "oauth2/v2.0/authorize", r = {}, o = null, d.label = 1;
|
|
8539
8536
|
case 1:
|
|
8540
|
-
return
|
|
8537
|
+
return d.trys.push([1, 3, , 4]), [4, this.networkInterface.sendGetRequestAsync(t, r)];
|
|
8541
8538
|
case 2:
|
|
8542
|
-
if (i =
|
|
8539
|
+
if (i = d.sent(), a = void 0, s = void 0, Ui(i.body))
|
|
8543
8540
|
a = i.body, s = a.metadata, this.logger.verbosePii("tenant_discovery_endpoint is: " + a.tenant_discovery_endpoint);
|
|
8544
8541
|
else if (xi(i.body)) {
|
|
8545
8542
|
if (this.logger.warning("A CloudInstanceDiscoveryErrorResponse was returned. The cloud instance discovery network request's status code is: " + i.status), a = i.body, a.error === g.INVALID_INSTANCE)
|
|
@@ -8549,9 +8546,9 @@ var rn = (
|
|
|
8549
8546
|
return this.logger.error("AAD did not return a CloudInstanceDiscoveryResponse or CloudInstanceDiscoveryErrorResponse"), [2, null];
|
|
8550
8547
|
return this.logger.verbose("Attempting to find a match between the developer's authority and the CloudInstanceDiscoveryMetadata returned from the network request."), o = n.getCloudDiscoveryMetadataFromNetworkResponse(s, this.hostnameAndPort), [3, 4];
|
|
8551
8548
|
case 3:
|
|
8552
|
-
return
|
|
8553
|
-
Error: ` +
|
|
8554
|
-
Error Description: ` +
|
|
8549
|
+
return u = d.sent(), u instanceof D ? this.logger.error(`There was a network error while attempting to get the cloud discovery instance metadata.
|
|
8550
|
+
Error: ` + u.errorCode + `
|
|
8551
|
+
Error Description: ` + u.errorMessage) : (p = u, this.logger.error(`A non-MSALJS error was thrown while attempting to get the cloud instance discovery metadata.
|
|
8555
8552
|
Error: ` + p.name + `
|
|
8556
8553
|
Error Description: ` + p.message)), [2, null];
|
|
8557
8554
|
case 4:
|
|
@@ -8627,17 +8624,17 @@ var bn = (
|
|
|
8627
8624
|
}
|
|
8628
8625
|
return n.createDiscoveredInstance = function(e, t, r, o, i, a, s) {
|
|
8629
8626
|
return j(this, void 0, void 0, function() {
|
|
8630
|
-
var
|
|
8627
|
+
var u, p, d;
|
|
8631
8628
|
return K(this, function(f) {
|
|
8632
8629
|
switch (f.label) {
|
|
8633
8630
|
case 0:
|
|
8634
|
-
a == null || a.addQueueMeasurement(b.AuthorityFactoryCreateDiscoveredInstance, s),
|
|
8631
|
+
a == null || a.addQueueMeasurement(b.AuthorityFactoryCreateDiscoveredInstance, s), u = rn.transformCIAMAuthority(e), p = n.createInstance(u, t, r, o, i, a, s), f.label = 1;
|
|
8635
8632
|
case 1:
|
|
8636
8633
|
return f.trys.push([1, 3, , 4]), a == null || a.setPreQueueTime(b.AuthorityResolveEndpointsAsync, s), [4, p.resolveEndpointsAsync()];
|
|
8637
8634
|
case 2:
|
|
8638
8635
|
return f.sent(), [2, p];
|
|
8639
8636
|
case 3:
|
|
8640
|
-
throw
|
|
8637
|
+
throw d = f.sent(), O.createEndpointDiscoveryIncompleteError(d);
|
|
8641
8638
|
case 4:
|
|
8642
8639
|
return [
|
|
8643
8640
|
2
|
|
@@ -8692,7 +8689,7 @@ var Di = {
|
|
|
8692
8689
|
}
|
|
8693
8690
|
};
|
|
8694
8691
|
/*! @azure/msal-common v13.3.1 2023-10-27 */
|
|
8695
|
-
var
|
|
8692
|
+
var un = {
|
|
8696
8693
|
missingKidError: {
|
|
8697
8694
|
code: "missing_kid_error",
|
|
8698
8695
|
desc: "The JOSE Header for the requested JWT, JWS or JWK object requires a keyId to be configured as the 'kid' header claim. No 'kid' value was provided."
|
|
@@ -8710,9 +8707,9 @@ var dn = {
|
|
|
8710
8707
|
return o.name = "JoseHeaderError", Object.setPrototypeOf(o, e.prototype), o;
|
|
8711
8708
|
}
|
|
8712
8709
|
return e.createMissingKidError = function() {
|
|
8713
|
-
return new e(
|
|
8710
|
+
return new e(un.missingKidError.code, un.missingKidError.desc);
|
|
8714
8711
|
}, e.createMissingAlgError = function() {
|
|
8715
|
-
return new e(
|
|
8712
|
+
return new e(un.missingAlgError.code, un.missingAlgError.desc);
|
|
8716
8713
|
}, e;
|
|
8717
8714
|
}(D)
|
|
8718
8715
|
);
|
|
@@ -8771,8 +8768,8 @@ var qi = (
|
|
|
8771
8768
|
}, n.maxErrorsToSend = function(e) {
|
|
8772
8769
|
var t, r = 0, o = 0, i = e.errors.length;
|
|
8773
8770
|
for (t = 0; t < i; t++) {
|
|
8774
|
-
var a = e.failedRequests[2 * t] || g.EMPTY_STRING, s = e.failedRequests[2 * t + 1] || g.EMPTY_STRING,
|
|
8775
|
-
if (o += a.toString().length + s.toString().length +
|
|
8771
|
+
var a = e.failedRequests[2 * t] || g.EMPTY_STRING, s = e.failedRequests[2 * t + 1] || g.EMPTY_STRING, u = e.errors[t] || g.EMPTY_STRING;
|
|
8772
|
+
if (o += a.toString().length + s.toString().length + u.length + 3, o < ye.MAX_LAST_HEADER_BYTES)
|
|
8776
8773
|
r += 1;
|
|
8777
8774
|
else
|
|
8778
8775
|
break;
|
|
@@ -8840,7 +8837,7 @@ var ao = (
|
|
|
8840
8837
|
t || this.logger.info("PerformanceClient: No correlation id provided for " + e + ", generating", a), this.logger.trace("PerformanceClient: Performance measurement started for " + e, a);
|
|
8841
8838
|
var s = this.startPerformanceMeasuremeant(e, a);
|
|
8842
8839
|
s.startMeasurement();
|
|
8843
|
-
var
|
|
8840
|
+
var u = {
|
|
8844
8841
|
eventId: this.generateId(),
|
|
8845
8842
|
status: kn.InProgress,
|
|
8846
8843
|
authority: this.authority,
|
|
@@ -8853,41 +8850,41 @@ var ao = (
|
|
|
8853
8850
|
appName: (o = this.applicationTelemetry) === null || o === void 0 ? void 0 : o.appName,
|
|
8854
8851
|
appVersion: (i = this.applicationTelemetry) === null || i === void 0 ? void 0 : i.appVersion
|
|
8855
8852
|
};
|
|
8856
|
-
return this.cacheEventByCorrelationId(
|
|
8853
|
+
return this.cacheEventByCorrelationId(u), {
|
|
8857
8854
|
endMeasurement: function(p) {
|
|
8858
|
-
return r.endMeasurement(Z(Z({},
|
|
8855
|
+
return r.endMeasurement(Z(Z({}, u), p), s);
|
|
8859
8856
|
},
|
|
8860
8857
|
discardMeasurement: function() {
|
|
8861
|
-
return r.discardMeasurements(
|
|
8858
|
+
return r.discardMeasurements(u.correlationId);
|
|
8862
8859
|
},
|
|
8863
8860
|
addStaticFields: function(p) {
|
|
8864
|
-
return r.addStaticFields(p,
|
|
8861
|
+
return r.addStaticFields(p, u.correlationId);
|
|
8865
8862
|
},
|
|
8866
8863
|
increment: function(p) {
|
|
8867
|
-
return r.increment(p,
|
|
8864
|
+
return r.increment(p, u.correlationId);
|
|
8868
8865
|
},
|
|
8869
8866
|
measurement: s,
|
|
8870
|
-
event:
|
|
8867
|
+
event: u
|
|
8871
8868
|
};
|
|
8872
8869
|
}, n.prototype.endMeasurement = function(e, t) {
|
|
8873
8870
|
var r = this, o, i, a = this.eventsByCorrelationId.get(e.correlationId);
|
|
8874
8871
|
if (!a)
|
|
8875
8872
|
return this.logger.trace("PerformanceClient: Measurement not found for " + e.eventId, e.correlationId), null;
|
|
8876
|
-
var s = e.eventId === a.eventId,
|
|
8873
|
+
var s = e.eventId === a.eventId, u = {
|
|
8877
8874
|
totalQueueTime: 0,
|
|
8878
8875
|
totalQueueCount: 0,
|
|
8879
8876
|
manuallyCompletedCount: 0
|
|
8880
8877
|
};
|
|
8881
|
-
s ? (
|
|
8878
|
+
s ? (u = this.getQueueInfo(e.correlationId), this.discardCache(a.correlationId)) : (o = a.incompleteSubMeasurements) === null || o === void 0 || o.delete(e.eventId), t == null || t.endMeasurement();
|
|
8882
8879
|
var p = t == null ? void 0 : t.flushMeasurement();
|
|
8883
8880
|
if (!p)
|
|
8884
8881
|
return this.logger.trace("PerformanceClient: Performance measurement not taken", a.correlationId), null;
|
|
8885
8882
|
if (this.logger.trace("PerformanceClient: Performance measurement ended for " + e.name + ": " + p + " ms", e.correlationId), !s)
|
|
8886
8883
|
return a[e.name + "DurationMs"] = Math.floor(p), Z({}, a);
|
|
8887
|
-
var
|
|
8888
|
-
return (i =
|
|
8889
|
-
r.logger.trace("PerformanceClient: Incomplete submeasurement " + _.name + " found for " + e.name,
|
|
8890
|
-
}),
|
|
8884
|
+
var d = Z(Z({}, a), e), f = 0;
|
|
8885
|
+
return (i = d.incompleteSubMeasurements) === null || i === void 0 || i.forEach(function(_) {
|
|
8886
|
+
r.logger.trace("PerformanceClient: Incomplete submeasurement " + _.name + " found for " + e.name, d.correlationId), f++;
|
|
8887
|
+
}), d.incompleteSubMeasurements = void 0, d = Z(Z({}, d), { durationMs: Math.round(p), queuedTimeMs: u.totalQueueTime, queuedCount: u.totalQueueCount, queuedManuallyCompletedCount: u.manuallyCompletedCount, status: kn.Completed, incompleteSubsCount: f }), this.truncateIntegralFields(d, this.getIntFields()), this.emitEvents([d], e.correlationId), d;
|
|
8891
8888
|
}, n.prototype.addStaticFields = function(e, t) {
|
|
8892
8889
|
this.logger.trace("PerformanceClient: Updating static fields");
|
|
8893
8890
|
var r = this.eventsByCorrelationId.get(t);
|
|
@@ -9500,7 +9497,7 @@ var $n = (
|
|
|
9500
9497
|
return this.internalStorage;
|
|
9501
9498
|
}
|
|
9502
9499
|
}, e.prototype.migrateCacheEntries = function() {
|
|
9503
|
-
var t = this, r = g.CACHE_PREFIX + "." + he.ID_TOKEN, o = g.CACHE_PREFIX + "." + he.CLIENT_INFO, i = g.CACHE_PREFIX + "." + he.ERROR, a = g.CACHE_PREFIX + "." + he.ERROR_DESC, s = this.browserStorage.getItem(r),
|
|
9500
|
+
var t = this, r = g.CACHE_PREFIX + "." + he.ID_TOKEN, o = g.CACHE_PREFIX + "." + he.CLIENT_INFO, i = g.CACHE_PREFIX + "." + he.ERROR, a = g.CACHE_PREFIX + "." + he.ERROR_DESC, s = this.browserStorage.getItem(r), u = this.browserStorage.getItem(o), p = this.browserStorage.getItem(i), d = this.browserStorage.getItem(a), f = [s, u, p, d], _ = [he.ID_TOKEN, he.CLIENT_INFO, he.ERROR, he.ERROR_DESC];
|
|
9504
9501
|
_.forEach(function(k, E) {
|
|
9505
9502
|
return t.migrateCacheEntry(k, f[E]);
|
|
9506
9503
|
});
|
|
@@ -9519,33 +9516,33 @@ var $n = (
|
|
|
9519
9516
|
if (t.isCredentialKey(a)) {
|
|
9520
9517
|
var s = t.getItem(a);
|
|
9521
9518
|
if (s) {
|
|
9522
|
-
var
|
|
9523
|
-
if (
|
|
9524
|
-
switch (
|
|
9519
|
+
var u = t.validateAndParseJson(s);
|
|
9520
|
+
if (u && u.hasOwnProperty("credentialType"))
|
|
9521
|
+
switch (u.credentialType) {
|
|
9525
9522
|
case H.ID_TOKEN:
|
|
9526
|
-
if (gt.isIdTokenEntity(
|
|
9523
|
+
if (gt.isIdTokenEntity(u)) {
|
|
9527
9524
|
t.logger.trace("BrowserCacheManager:createKeyMaps - idToken found, saving key to token key map"), t.logger.tracePii("BrowserCacheManager:createKeyMaps - idToken with key: " + a + " found, saving key to token key map");
|
|
9528
|
-
var p = Me.toObject(new gt(),
|
|
9529
|
-
t.addTokenKey(
|
|
9525
|
+
var p = Me.toObject(new gt(), u), d = t.updateCredentialCacheKey(a, p);
|
|
9526
|
+
t.addTokenKey(d, H.ID_TOKEN);
|
|
9530
9527
|
return;
|
|
9531
9528
|
} else
|
|
9532
9529
|
t.logger.trace("BrowserCacheManager:createKeyMaps - key found matching idToken schema with value containing idToken credentialType field but value failed IdTokenEntity validation, skipping."), t.logger.tracePii("BrowserCacheManager:createKeyMaps - failed idToken validation on key: " + a);
|
|
9533
9530
|
break;
|
|
9534
9531
|
case H.ACCESS_TOKEN:
|
|
9535
9532
|
case H.ACCESS_TOKEN_WITH_AUTH_SCHEME:
|
|
9536
|
-
if (_t.isAccessTokenEntity(
|
|
9533
|
+
if (_t.isAccessTokenEntity(u)) {
|
|
9537
9534
|
t.logger.trace("BrowserCacheManager:createKeyMaps - accessToken found, saving key to token key map"), t.logger.tracePii("BrowserCacheManager:createKeyMaps - accessToken with key: " + a + " found, saving key to token key map");
|
|
9538
|
-
var f = Me.toObject(new _t(),
|
|
9539
|
-
t.addTokenKey(
|
|
9535
|
+
var f = Me.toObject(new _t(), u), d = t.updateCredentialCacheKey(a, f);
|
|
9536
|
+
t.addTokenKey(d, H.ACCESS_TOKEN);
|
|
9540
9537
|
return;
|
|
9541
9538
|
} else
|
|
9542
9539
|
t.logger.trace("BrowserCacheManager:createKeyMaps - key found matching accessToken schema with value containing accessToken credentialType field but value failed AccessTokenEntity validation, skipping."), t.logger.tracePii("BrowserCacheManager:createKeyMaps - failed accessToken validation on key: " + a);
|
|
9543
9540
|
break;
|
|
9544
9541
|
case H.REFRESH_TOKEN:
|
|
9545
|
-
if (Pt.isRefreshTokenEntity(
|
|
9542
|
+
if (Pt.isRefreshTokenEntity(u)) {
|
|
9546
9543
|
t.logger.trace("BrowserCacheManager:createKeyMaps - refreshToken found, saving key to token key map"), t.logger.tracePii("BrowserCacheManager:createKeyMaps - refreshToken with key: " + a + " found, saving key to token key map");
|
|
9547
|
-
var _ = Me.toObject(new Pt(),
|
|
9548
|
-
t.addTokenKey(
|
|
9544
|
+
var _ = Me.toObject(new Pt(), u), d = t.updateCredentialCacheKey(a, _);
|
|
9545
|
+
t.addTokenKey(d, H.REFRESH_TOKEN);
|
|
9549
9546
|
return;
|
|
9550
9547
|
} else
|
|
9551
9548
|
t.logger.trace("BrowserCacheManager:createKeyMaps - key found matching refreshToken schema with value containing refreshToken credentialType field but value failed RefreshTokenEntity validation, skipping."), t.logger.tracePii("BrowserCacheManager:createKeyMaps - failed refreshToken validation on key: " + a);
|
|
@@ -9906,21 +9903,21 @@ var $n = (
|
|
|
9906
9903
|
this.logger.trace("BrowserCacheManager.updateCacheEntries called");
|
|
9907
9904
|
var s = this.generateStateKey(t);
|
|
9908
9905
|
this.setTemporaryCache(s, t, !1);
|
|
9909
|
-
var
|
|
9910
|
-
this.setTemporaryCache(
|
|
9906
|
+
var u = this.generateNonceKey(t);
|
|
9907
|
+
this.setTemporaryCache(u, r, !1);
|
|
9911
9908
|
var p = this.generateAuthorityKey(t);
|
|
9912
9909
|
if (this.setTemporaryCache(p, o, !1), a) {
|
|
9913
|
-
var
|
|
9910
|
+
var d = {
|
|
9914
9911
|
credential: a.homeAccountId,
|
|
9915
9912
|
type: Be.HOME_ACCOUNT_ID
|
|
9916
9913
|
};
|
|
9917
|
-
this.setTemporaryCache(J.CCS_CREDENTIAL, JSON.stringify(
|
|
9914
|
+
this.setTemporaryCache(J.CCS_CREDENTIAL, JSON.stringify(d), !0);
|
|
9918
9915
|
} else if (!L.isEmpty(i)) {
|
|
9919
|
-
var
|
|
9916
|
+
var d = {
|
|
9920
9917
|
credential: i,
|
|
9921
9918
|
type: Be.UPN
|
|
9922
9919
|
};
|
|
9923
|
-
this.setTemporaryCache(J.CCS_CREDENTIAL, JSON.stringify(
|
|
9920
|
+
this.setTemporaryCache(J.CCS_CREDENTIAL, JSON.stringify(d), !0);
|
|
9924
9921
|
}
|
|
9925
9922
|
}, e.prototype.resetRequestCache = function(t) {
|
|
9926
9923
|
var r = this;
|
|
@@ -10142,9 +10139,9 @@ var Qi = (
|
|
|
10142
10139
|
), o.setXhrHeaders(s, r), s.onload = function() {
|
|
10143
10140
|
(s.status < 200 || s.status >= 300) && (t === Ze.POST ? a(M.createPostRequestFailedError("Failed with status " + s.status, e)) : a(M.createGetRequestFailedError("Failed with status " + s.status, e)));
|
|
10144
10141
|
try {
|
|
10145
|
-
var
|
|
10142
|
+
var u = JSON.parse(s.responseText), p = {
|
|
10146
10143
|
headers: o.getHeaderDict(s),
|
|
10147
|
-
body:
|
|
10144
|
+
body: u,
|
|
10148
10145
|
status: s.status
|
|
10149
10146
|
};
|
|
10150
10147
|
i(p);
|
|
@@ -10170,14 +10167,14 @@ var Qi = (
|
|
|
10170
10167
|
}, n.prototype.getHeaderDict = function(e) {
|
|
10171
10168
|
var t = e.getAllResponseHeaders(), r = t.trim().split(/[\r\n]+/), o = {};
|
|
10172
10169
|
return r.forEach(function(i) {
|
|
10173
|
-
var a = i.split(": "), s = a.shift(),
|
|
10174
|
-
s &&
|
|
10170
|
+
var a = i.split(": "), s = a.shift(), u = a.join(": ");
|
|
10171
|
+
s && u && (o[s] = u);
|
|
10175
10172
|
}), o;
|
|
10176
10173
|
}, n;
|
|
10177
10174
|
}()
|
|
10178
10175
|
);
|
|
10179
10176
|
/*! @azure/msal-browser v2.38.3 2023-10-27 */
|
|
10180
|
-
var
|
|
10177
|
+
var de = (
|
|
10181
10178
|
/** @class */
|
|
10182
10179
|
function() {
|
|
10183
10180
|
function n() {
|
|
@@ -10225,8 +10222,8 @@ var ue = (
|
|
|
10225
10222
|
var co = (
|
|
10226
10223
|
/** @class */
|
|
10227
10224
|
function() {
|
|
10228
|
-
function n(e, t, r, o, i, a, s,
|
|
10229
|
-
this.config = e, this.browserStorage = t, this.browserCrypto = r, this.networkClient = this.config.system.networkClient, this.eventHandler = i, this.navigationClient = a, this.nativeMessageHandler =
|
|
10225
|
+
function n(e, t, r, o, i, a, s, u, p) {
|
|
10226
|
+
this.config = e, this.browserStorage = t, this.browserCrypto = r, this.networkClient = this.config.system.networkClient, this.eventHandler = i, this.navigationClient = a, this.nativeMessageHandler = u, this.correlationId = p || this.browserCrypto.createNewGuid(), this.logger = o.clone(Qe.MSAL_SKU, en, this.correlationId), this.performanceClient = s;
|
|
10230
10227
|
}
|
|
10231
10228
|
return n.prototype.clearCacheOnLogout = function(e) {
|
|
10232
10229
|
return T(this, void 0, void 0, function() {
|
|
@@ -10295,8 +10292,8 @@ var co = (
|
|
|
10295
10292
|
});
|
|
10296
10293
|
}, n.prototype.getRedirectUri = function(e) {
|
|
10297
10294
|
this.logger.verbose("getRedirectUri called");
|
|
10298
|
-
var t = e || this.config.auth.redirectUri ||
|
|
10299
|
-
return W.getAbsoluteUrl(t,
|
|
10295
|
+
var t = e || this.config.auth.redirectUri || de.getCurrentUri();
|
|
10296
|
+
return W.getAbsoluteUrl(t, de.getCurrentUri());
|
|
10300
10297
|
}, n.prototype.validateRequestAuthority = function(e, t) {
|
|
10301
10298
|
return T(this, void 0, void 0, function() {
|
|
10302
10299
|
var r;
|
|
@@ -10382,7 +10379,7 @@ var Ft = (
|
|
|
10382
10379
|
this.logger.verbose("logoutHint was not set and account was not passed into logout request, logoutHint will not be set");
|
|
10383
10380
|
else
|
|
10384
10381
|
this.logger.verbose("logoutHint will not be set since no logout request was configured");
|
|
10385
|
-
return !t || t.postLogoutRedirectUri !== null ? t && t.postLogoutRedirectUri ? (this.logger.verbose("Setting postLogoutRedirectUri to uri set on logout request", r.correlationId), r.postLogoutRedirectUri = W.getAbsoluteUrl(t.postLogoutRedirectUri,
|
|
10382
|
+
return !t || t.postLogoutRedirectUri !== null ? t && t.postLogoutRedirectUri ? (this.logger.verbose("Setting postLogoutRedirectUri to uri set on logout request", r.correlationId), r.postLogoutRedirectUri = W.getAbsoluteUrl(t.postLogoutRedirectUri, de.getCurrentUri())) : this.config.auth.postLogoutRedirectUri === null ? this.logger.verbose("postLogoutRedirectUri configured as null and no uri set on request, not passing post logout redirect", r.correlationId) : this.config.auth.postLogoutRedirectUri ? (this.logger.verbose("Setting postLogoutRedirectUri to configured uri", r.correlationId), r.postLogoutRedirectUri = W.getAbsoluteUrl(this.config.auth.postLogoutRedirectUri, de.getCurrentUri())) : (this.logger.verbose("Setting postLogoutRedirectUri to current page", r.correlationId), r.postLogoutRedirectUri = W.getAbsoluteUrl(de.getCurrentUri(), de.getCurrentUri())) : this.logger.verbose("postLogoutRedirectUri passed as null, not setting post logout redirect uri", r.correlationId), r;
|
|
10386
10383
|
}, e.prototype.getLogoutHintFromIdTokenClaims = function(t) {
|
|
10387
10384
|
var r = t.idTokenClaims;
|
|
10388
10385
|
if (r) {
|
|
@@ -10458,7 +10455,7 @@ var Ft = (
|
|
|
10458
10455
|
}, e.prototype.getDiscoveredAuthority = function(t, r) {
|
|
10459
10456
|
var o;
|
|
10460
10457
|
return T(this, void 0, void 0, function() {
|
|
10461
|
-
var i, a, s,
|
|
10458
|
+
var i, a, s, u;
|
|
10462
10459
|
return I(this, function(p) {
|
|
10463
10460
|
switch (p.label) {
|
|
10464
10461
|
case 0:
|
|
@@ -10468,16 +10465,16 @@ var Ft = (
|
|
|
10468
10465
|
cloudDiscoveryMetadata: this.config.auth.cloudDiscoveryMetadata,
|
|
10469
10466
|
authorityMetadata: this.config.auth.authorityMetadata,
|
|
10470
10467
|
skipAuthorityMetadataCache: this.config.auth.skipAuthorityMetadataCache
|
|
10471
|
-
}, s = t || this.config.auth.authority,
|
|
10468
|
+
}, s = t || this.config.auth.authority, u = rn.generateAuthority(s, r || this.config.auth.azureCloudOptions), this.logger.verbose("Creating discovered authority with configured authority", this.correlationId), this.performanceClient.setPreQueueTime(b.AuthorityFactoryCreateDiscoveredInstance, this.correlationId), [4, bn.createDiscoveredInstance(u, this.config.system.networkClient, this.browserStorage, a, this.logger, this.performanceClient, this.correlationId).then(function(d) {
|
|
10472
10469
|
return i.endMeasurement({
|
|
10473
10470
|
success: !0
|
|
10474
|
-
}),
|
|
10475
|
-
}).catch(function(
|
|
10471
|
+
}), d;
|
|
10472
|
+
}).catch(function(d) {
|
|
10476
10473
|
throw i.endMeasurement({
|
|
10477
|
-
errorCode:
|
|
10478
|
-
subErrorCode:
|
|
10474
|
+
errorCode: d.errorCode,
|
|
10475
|
+
subErrorCode: d.subError,
|
|
10479
10476
|
success: !1
|
|
10480
|
-
}),
|
|
10477
|
+
}), d;
|
|
10481
10478
|
})];
|
|
10482
10479
|
case 1:
|
|
10483
10480
|
return [2, p.sent()];
|
|
@@ -10486,15 +10483,15 @@ var Ft = (
|
|
|
10486
10483
|
});
|
|
10487
10484
|
}, e.prototype.initializeAuthorizationRequest = function(t, r) {
|
|
10488
10485
|
return T(this, void 0, void 0, function() {
|
|
10489
|
-
var o, i, a, s,
|
|
10486
|
+
var o, i, a, s, u, p, d;
|
|
10490
10487
|
return I(this, function(f) {
|
|
10491
10488
|
switch (f.label) {
|
|
10492
10489
|
case 0:
|
|
10493
10490
|
return this.performanceClient.addQueueMeasurement(b.StandardInteractionClientInitializeAuthorizationRequest, this.correlationId), this.logger.verbose("initializeAuthorizationRequest called", this.correlationId), o = this.getRedirectUri(t.redirectUri), i = {
|
|
10494
10491
|
interactionType: r
|
|
10495
|
-
}, a = st.setRequestState(this.browserCrypto, t && t.state || g.EMPTY_STRING, i), this.performanceClient.setPreQueueTime(b.InitializeBaseRequest, this.correlationId),
|
|
10492
|
+
}, a = st.setRequestState(this.browserCrypto, t && t.state || g.EMPTY_STRING, i), this.performanceClient.setPreQueueTime(b.InitializeBaseRequest, this.correlationId), u = [{}], [4, this.initializeBaseRequest(t)];
|
|
10496
10493
|
case 1:
|
|
10497
|
-
return s = B.apply(void 0, [B.apply(void 0,
|
|
10494
|
+
return s = B.apply(void 0, [B.apply(void 0, u.concat([f.sent()])), { redirectUri: o, state: a, nonce: t.nonce || this.browserCrypto.createNewGuid(), responseMode: mn.FRAGMENT }]), p = t.account || this.browserStorage.getActiveAccount(), p && (this.logger.verbose("Setting validated request account", this.correlationId), this.logger.verbosePii("Setting validated request account: " + p.homeAccountId, this.correlationId), s.account = p), L.isEmpty(s.loginHint) && !p && (d = this.browserStorage.getLegacyLoginHint(), d && (s.loginHint = d)), [2, s];
|
|
10498
10495
|
}
|
|
10499
10496
|
});
|
|
10500
10497
|
});
|
|
@@ -10511,7 +10508,7 @@ var or = (
|
|
|
10511
10508
|
return n.prototype.handleCodeResponseFromHash = function(e, t, r, o) {
|
|
10512
10509
|
return T(this, void 0, void 0, function() {
|
|
10513
10510
|
var i, a, s;
|
|
10514
|
-
return I(this, function(
|
|
10511
|
+
return I(this, function(u) {
|
|
10515
10512
|
if (this.performanceClient.addQueueMeasurement(b.HandleCodeResponseFromHash, this.authCodeRequest.correlationId), this.logger.verbose("InteractionHandler.handleCodeResponse called"), L.isEmpty(e))
|
|
10516
10513
|
throw M.createEmptyHashError(e);
|
|
10517
10514
|
if (i = this.browserStorage.generateStateKey(t), a = this.browserStorage.getTemporaryCache(i), !a)
|
|
@@ -10526,17 +10523,17 @@ var or = (
|
|
|
10526
10523
|
});
|
|
10527
10524
|
}, n.prototype.handleCodeResponseFromServer = function(e, t, r, o, i) {
|
|
10528
10525
|
return i === void 0 && (i = !0), T(this, void 0, void 0, function() {
|
|
10529
|
-
var a, s,
|
|
10526
|
+
var a, s, u, p, d, f;
|
|
10530
10527
|
return I(this, function(_) {
|
|
10531
10528
|
switch (_.label) {
|
|
10532
10529
|
case 0:
|
|
10533
10530
|
if (this.performanceClient.addQueueMeasurement(b.HandleCodeResponseFromServer, this.authCodeRequest.correlationId), this.logger.trace("InteractionHandler.handleCodeResponseFromServer called"), a = this.browserStorage.generateStateKey(t), s = this.browserStorage.getTemporaryCache(a), !s)
|
|
10534
10531
|
throw O.createStateNotFoundError("Cached State");
|
|
10535
|
-
return
|
|
10532
|
+
return u = this.browserStorage.generateNonceKey(s), p = this.browserStorage.getTemporaryCache(u), this.authCodeRequest.code = e.code, e.cloud_instance_host_name ? (this.performanceClient.setPreQueueTime(b.UpdateTokenEndpointAuthority, this.authCodeRequest.correlationId), [4, this.updateTokenEndpointAuthority(e.cloud_instance_host_name, r, o)]) : [3, 2];
|
|
10536
10533
|
case 1:
|
|
10537
10534
|
_.sent(), _.label = 2;
|
|
10538
10535
|
case 2:
|
|
10539
|
-
return i && (e.nonce = p || void 0), e.state = s, e.client_info ? this.authCodeRequest.clientInfo = e.client_info : (
|
|
10536
|
+
return i && (e.nonce = p || void 0), e.state = s, e.client_info ? this.authCodeRequest.clientInfo = e.client_info : (d = this.checkCcsCredentials(), d && (this.authCodeRequest.ccsCredential = d)), this.performanceClient.setPreQueueTime(b.AuthClientAcquireToken, this.authCodeRequest.correlationId), [4, this.authModule.acquireToken(this.authCodeRequest, e)];
|
|
10540
10537
|
case 3:
|
|
10541
10538
|
return f = _.sent(), this.browserStorage.cleanRequestByState(t), [2, f];
|
|
10542
10539
|
}
|
|
@@ -10575,8 +10572,8 @@ var Ur = (
|
|
|
10575
10572
|
function(n) {
|
|
10576
10573
|
be(e, n);
|
|
10577
10574
|
function e(t, r, o, i, a, s) {
|
|
10578
|
-
var
|
|
10579
|
-
return
|
|
10575
|
+
var u = n.call(this, t, r, o, i, s) || this;
|
|
10576
|
+
return u.browserCrypto = a, u;
|
|
10580
10577
|
}
|
|
10581
10578
|
return e.prototype.initiateAuthRequest = function(t, r) {
|
|
10582
10579
|
return T(this, void 0, void 0, function() {
|
|
@@ -10622,7 +10619,7 @@ var Ur = (
|
|
|
10622
10619
|
});
|
|
10623
10620
|
}, e.prototype.handleCodeResponseFromHash = function(t, r, o, i) {
|
|
10624
10621
|
return T(this, void 0, void 0, function() {
|
|
10625
|
-
var a, s,
|
|
10622
|
+
var a, s, u, p, d, f, _;
|
|
10626
10623
|
return I(this, function(k) {
|
|
10627
10624
|
switch (k.label) {
|
|
10628
10625
|
case 0:
|
|
@@ -10631,15 +10628,15 @@ var Ur = (
|
|
|
10631
10628
|
if (this.browserStorage.setInteractionInProgress(!1), a = this.browserStorage.generateStateKey(r), s = this.browserStorage.getTemporaryCache(a), !s)
|
|
10632
10629
|
throw O.createStateNotFoundError("Cached State");
|
|
10633
10630
|
try {
|
|
10634
|
-
|
|
10631
|
+
u = this.authModule.handleFragmentResponse(t, s);
|
|
10635
10632
|
} catch (E) {
|
|
10636
10633
|
throw E instanceof bt && E.subError === A.userCancelledError.code ? M.createUserCancelledError() : E;
|
|
10637
10634
|
}
|
|
10638
|
-
return p = this.browserStorage.generateNonceKey(s),
|
|
10635
|
+
return p = this.browserStorage.generateNonceKey(s), d = this.browserStorage.getTemporaryCache(p), this.authCodeRequest.code = u.code, u.cloud_instance_host_name ? [4, this.updateTokenEndpointAuthority(u.cloud_instance_host_name, o, i)] : [3, 2];
|
|
10639
10636
|
case 1:
|
|
10640
10637
|
k.sent(), k.label = 2;
|
|
10641
10638
|
case 2:
|
|
10642
|
-
return
|
|
10639
|
+
return u.nonce = d || void 0, u.state = s, u.client_info ? this.authCodeRequest.clientInfo = u.client_info : (f = this.checkCcsCredentials(), f && (this.authCodeRequest.ccsCredential = f)), [4, this.authModule.acquireToken(this.authCodeRequest, u)];
|
|
10643
10640
|
case 3:
|
|
10644
10641
|
return _ = k.sent(), this.browserStorage.cleanRequestByState(r), [2, _];
|
|
10645
10642
|
}
|
|
@@ -10718,21 +10715,21 @@ var lo = (
|
|
|
10718
10715
|
return e.prototype.acquireToken = function(t) {
|
|
10719
10716
|
return T(this, void 0, void 0, function() {
|
|
10720
10717
|
var r, o, i, a, s;
|
|
10721
|
-
return I(this, function(
|
|
10722
|
-
switch (
|
|
10718
|
+
return I(this, function(u) {
|
|
10719
|
+
switch (u.label) {
|
|
10723
10720
|
case 0:
|
|
10724
10721
|
return r = this.performanceClient.startMeasurement(b.SilentCacheClientAcquireToken, t.correlationId), o = this.initializeServerTelemetryManager(oe.acquireTokenSilent_silentFlow), [4, this.createSilentFlowClient(o, t.authority, t.azureCloudOptions)];
|
|
10725
10722
|
case 1:
|
|
10726
|
-
i =
|
|
10723
|
+
i = u.sent(), this.logger.verbose("Silent auth client created"), u.label = 2;
|
|
10727
10724
|
case 2:
|
|
10728
|
-
return
|
|
10725
|
+
return u.trys.push([2, 4, , 5]), [4, i.acquireCachedToken(t)];
|
|
10729
10726
|
case 3:
|
|
10730
|
-
return a =
|
|
10727
|
+
return a = u.sent(), r.endMeasurement({
|
|
10731
10728
|
success: !0,
|
|
10732
10729
|
fromCache: !0
|
|
10733
10730
|
}), [2, a];
|
|
10734
10731
|
case 4:
|
|
10735
|
-
throw s =
|
|
10732
|
+
throw s = u.sent(), s instanceof M && s.errorCode === A.signingKeyNotFoundInStorage.code && this.logger.verbose("Signing keypair for bound access token not found. Refreshing bound access token and generating a new crypto keypair."), r.endMeasurement({
|
|
10736
10733
|
errorCode: s instanceof D && s.errorCode || void 0,
|
|
10737
10734
|
subErrorCode: s instanceof D && s.subError || void 0,
|
|
10738
10735
|
success: !1
|
|
@@ -10779,36 +10776,36 @@ var Ot = (
|
|
|
10779
10776
|
/** @class */
|
|
10780
10777
|
function(n) {
|
|
10781
10778
|
be(e, n);
|
|
10782
|
-
function e(t, r, o, i, a, s,
|
|
10783
|
-
var E = n.call(this, t, r, o, i, a, s, p,
|
|
10784
|
-
return E.apiId =
|
|
10779
|
+
function e(t, r, o, i, a, s, u, p, d, f, _, k) {
|
|
10780
|
+
var E = n.call(this, t, r, o, i, a, s, p, d, k) || this;
|
|
10781
|
+
return E.apiId = u, E.accountId = f, E.nativeMessageHandler = d, E.nativeStorageManager = _, E.silentCacheClient = new lo(t, E.nativeStorageManager, o, i, a, s, p, d, k), E;
|
|
10785
10782
|
}
|
|
10786
10783
|
return e.prototype.acquireToken = function(t) {
|
|
10787
10784
|
return T(this, void 0, void 0, function() {
|
|
10788
|
-
var r, o, i, a, s,
|
|
10789
|
-
return I(this, function(
|
|
10790
|
-
switch (
|
|
10785
|
+
var r, o, i, a, s, u, p;
|
|
10786
|
+
return I(this, function(d) {
|
|
10787
|
+
switch (d.label) {
|
|
10791
10788
|
case 0:
|
|
10792
10789
|
return this.logger.trace("NativeInteractionClient - acquireToken called."), r = this.performanceClient.startMeasurement(b.NativeInteractionClientAcquireToken, t.correlationId), o = Ke.nowSeconds(), [4, this.initializeNativeRequest(t)];
|
|
10793
10790
|
case 1:
|
|
10794
|
-
i =
|
|
10791
|
+
i = d.sent(), d.label = 2;
|
|
10795
10792
|
case 2:
|
|
10796
|
-
return
|
|
10793
|
+
return d.trys.push([2, 4, , 5]), [4, this.acquireTokensFromCache(this.accountId, i)];
|
|
10797
10794
|
case 3:
|
|
10798
|
-
return a =
|
|
10795
|
+
return a = d.sent(), r.endMeasurement({
|
|
10799
10796
|
success: !0,
|
|
10800
10797
|
isNativeBroker: !1,
|
|
10801
10798
|
fromCache: !0
|
|
10802
10799
|
}), [2, a];
|
|
10803
10800
|
case 4:
|
|
10804
|
-
return
|
|
10801
|
+
return d.sent(), this.logger.info("MSAL internal Cache does not contain tokens, proceed to make a native call"), [3, 5];
|
|
10805
10802
|
case 5:
|
|
10806
10803
|
return s = {
|
|
10807
10804
|
method: at.GetToken,
|
|
10808
10805
|
request: i
|
|
10809
10806
|
}, [4, this.nativeMessageHandler.sendMessage(s)];
|
|
10810
10807
|
case 6:
|
|
10811
|
-
return
|
|
10808
|
+
return u = d.sent(), p = this.validateNativeResponse(u), [2, this.handleNativeResponse(p, i, o).then(function(f) {
|
|
10812
10809
|
return r.endMeasurement({
|
|
10813
10810
|
success: !0,
|
|
10814
10811
|
isNativeBroker: !0,
|
|
@@ -10836,20 +10833,20 @@ var Ot = (
|
|
|
10836
10833
|
}, e.prototype.acquireTokensFromCache = function(t, r) {
|
|
10837
10834
|
return T(this, void 0, void 0, function() {
|
|
10838
10835
|
var o, i, a, s;
|
|
10839
|
-
return I(this, function(
|
|
10840
|
-
switch (
|
|
10836
|
+
return I(this, function(u) {
|
|
10837
|
+
switch (u.label) {
|
|
10841
10838
|
case 0:
|
|
10842
10839
|
if (!t)
|
|
10843
10840
|
throw this.logger.warning("NativeInteractionClient:acquireTokensFromCache - No nativeAccountId provided"), O.createNoAccountFoundError();
|
|
10844
10841
|
if (o = this.browserStorage.getAccountInfoFilteredBy({ nativeAccountId: t }), !o)
|
|
10845
10842
|
throw O.createNoAccountFoundError();
|
|
10846
|
-
|
|
10843
|
+
u.label = 1;
|
|
10847
10844
|
case 1:
|
|
10848
|
-
return
|
|
10845
|
+
return u.trys.push([1, 3, , 4]), i = this.createSilentCacheRequest(r, o), [4, this.silentCacheClient.acquireToken(i)];
|
|
10849
10846
|
case 2:
|
|
10850
|
-
return a =
|
|
10847
|
+
return a = u.sent(), [2, a];
|
|
10851
10848
|
case 3:
|
|
10852
|
-
throw s =
|
|
10849
|
+
throw s = u.sent(), s;
|
|
10853
10850
|
case 4:
|
|
10854
10851
|
return [
|
|
10855
10852
|
2
|
|
@@ -10860,7 +10857,7 @@ var Ot = (
|
|
|
10860
10857
|
});
|
|
10861
10858
|
}, e.prototype.acquireTokenRedirect = function(t) {
|
|
10862
10859
|
return T(this, void 0, void 0, function() {
|
|
10863
|
-
var r, o, i, a, s,
|
|
10860
|
+
var r, o, i, a, s, u;
|
|
10864
10861
|
return I(this, function(p) {
|
|
10865
10862
|
switch (p.label) {
|
|
10866
10863
|
case 0:
|
|
@@ -10883,7 +10880,7 @@ var Ot = (
|
|
|
10883
10880
|
apiId: oe.acquireTokenRedirect,
|
|
10884
10881
|
timeout: this.config.system.redirectNavigationTimeout,
|
|
10885
10882
|
noHistory: !1
|
|
10886
|
-
},
|
|
10883
|
+
}, u = this.config.auth.navigateToLoginRequestUrl ? window.location.href : this.getRedirectUri(t.redirectUri), [4, this.navigationClient.navigateExternal(u, s)];
|
|
10887
10884
|
case 6:
|
|
10888
10885
|
return p.sent(), [
|
|
10889
10886
|
2
|
|
@@ -10894,9 +10891,9 @@ var Ot = (
|
|
|
10894
10891
|
});
|
|
10895
10892
|
}, e.prototype.handleRedirectPromise = function() {
|
|
10896
10893
|
return T(this, void 0, void 0, function() {
|
|
10897
|
-
var t, r, o, i, a, s,
|
|
10898
|
-
return I(this, function(
|
|
10899
|
-
switch (
|
|
10894
|
+
var t, r, o, i, a, s, u, p;
|
|
10895
|
+
return I(this, function(d) {
|
|
10896
|
+
switch (d.label) {
|
|
10900
10897
|
case 0:
|
|
10901
10898
|
if (this.logger.trace("NativeInteractionClient - handleRedirectPromise called."), !this.browserStorage.isInteractionInProgress(!0))
|
|
10902
10899
|
return this.logger.info("handleRedirectPromise called but there is no interaction in progress, returning null."), [2, null];
|
|
@@ -10905,13 +10902,13 @@ var Ot = (
|
|
|
10905
10902
|
r = t.prompt, o = br(t, ["prompt"]), r && this.logger.verbose("NativeInteractionClient - handleRedirectPromise called and prompt was included in the original request, removing prompt from cached request to prevent second interaction with native broker window."), this.browserStorage.removeItem(this.browserStorage.generateCacheKey(J.NATIVE_REQUEST)), i = {
|
|
10906
10903
|
method: at.GetToken,
|
|
10907
10904
|
request: o
|
|
10908
|
-
}, a = Ke.nowSeconds(),
|
|
10905
|
+
}, a = Ke.nowSeconds(), d.label = 1;
|
|
10909
10906
|
case 1:
|
|
10910
|
-
return
|
|
10907
|
+
return d.trys.push([1, 3, , 4]), this.logger.verbose("NativeInteractionClient - handleRedirectPromise sending message to native broker."), [4, this.nativeMessageHandler.sendMessage(i)];
|
|
10911
10908
|
case 2:
|
|
10912
|
-
return s =
|
|
10909
|
+
return s = d.sent(), this.validateNativeResponse(s), u = this.handleNativeResponse(s, o, a), this.browserStorage.setInteractionInProgress(!1), [2, u];
|
|
10913
10910
|
case 3:
|
|
10914
|
-
throw p =
|
|
10911
|
+
throw p = d.sent(), this.browserStorage.setInteractionInProgress(!1), p;
|
|
10915
10912
|
case 4:
|
|
10916
10913
|
return [
|
|
10917
10914
|
2
|
|
@@ -10924,7 +10921,7 @@ var Ot = (
|
|
|
10924
10921
|
return this.logger.trace("NativeInteractionClient - logout called."), Promise.reject("Logout not implemented yet");
|
|
10925
10922
|
}, e.prototype.handleNativeResponse = function(t, r, o) {
|
|
10926
10923
|
return T(this, void 0, void 0, function() {
|
|
10927
|
-
var i, a, s,
|
|
10924
|
+
var i, a, s, u, p, d;
|
|
10928
10925
|
return I(this, function(f) {
|
|
10929
10926
|
switch (f.label) {
|
|
10930
10927
|
case 0:
|
|
@@ -10932,9 +10929,9 @@ var Ot = (
|
|
|
10932
10929
|
throw tt.createUserSwitchError();
|
|
10933
10930
|
return [4, this.getDiscoveredAuthority(r.authority)];
|
|
10934
10931
|
case 1:
|
|
10935
|
-
return i = f.sent(), a = i.getPreferredCache(), s = this.createIdTokenObj(t),
|
|
10932
|
+
return i = f.sent(), a = i.getPreferredCache(), s = this.createIdTokenObj(t), u = this.createHomeAccountIdentifier(t, s), p = this.createAccountEntity(t, u, s, a), [4, this.generateAuthenticationResult(t, r, s, p, i.canonicalAuthority, o)];
|
|
10936
10933
|
case 2:
|
|
10937
|
-
return
|
|
10934
|
+
return d = f.sent(), this.cacheAccount(p), this.cacheNativeTokens(t, r, u, p, s, d.accessToken, d.tenantId, o), [2, d];
|
|
10938
10935
|
}
|
|
10939
10936
|
});
|
|
10940
10937
|
});
|
|
@@ -10974,11 +10971,11 @@ var Ot = (
|
|
|
10974
10971
|
});
|
|
10975
10972
|
}, e.prototype.generateAuthenticationResult = function(t, r, o, i, a, s) {
|
|
10976
10973
|
return T(this, void 0, void 0, function() {
|
|
10977
|
-
var
|
|
10974
|
+
var u, p, d, f, _, k, E, N;
|
|
10978
10975
|
return I(this, function(Q) {
|
|
10979
10976
|
switch (Q.label) {
|
|
10980
10977
|
case 0:
|
|
10981
|
-
return
|
|
10978
|
+
return u = this.addTelemetryFromNativeResponse(t), p = t.scope ? Ee.fromString(t.scope) : Ee.fromString(r.scope), d = t.account.properties || {}, f = d.UID || o.claims.oid || o.claims.sub || g.EMPTY_STRING, _ = d.TenantId || o.claims.tid || g.EMPTY_STRING, [4, this.generatePopAccessToken(t, r)];
|
|
10982
10979
|
case 1:
|
|
10983
10980
|
return k = Q.sent(), E = r.tokenType === te.POP ? te.POP : te.BEARER, N = {
|
|
10984
10981
|
authority: a,
|
|
@@ -10989,7 +10986,7 @@ var Ot = (
|
|
|
10989
10986
|
idToken: t.id_token,
|
|
10990
10987
|
idTokenClaims: o.claims,
|
|
10991
10988
|
accessToken: k,
|
|
10992
|
-
fromCache:
|
|
10989
|
+
fromCache: u ? this.isResponseFromCache(u) : !1,
|
|
10993
10990
|
expiresOn: new Date(Number(s + t.expires_in) * 1e3),
|
|
10994
10991
|
tokenType: E,
|
|
10995
10992
|
correlationId: this.correlationId,
|
|
@@ -11004,8 +11001,8 @@ var Ot = (
|
|
|
11004
11001
|
this.browserStorage.setAccount(t), this.browserStorage.removeAccountContext(t).catch(function(o) {
|
|
11005
11002
|
r.logger.error("Error occurred while removing account context from browser storage. " + o);
|
|
11006
11003
|
});
|
|
11007
|
-
}, e.prototype.cacheNativeTokens = function(t, r, o, i, a, s,
|
|
11008
|
-
var
|
|
11004
|
+
}, e.prototype.cacheNativeTokens = function(t, r, o, i, a, s, u, p) {
|
|
11005
|
+
var d = gt.createIdTokenEntity(o, r.authority, t.id_token || g.EMPTY_STRING, r.clientId, a.claims.tid || g.EMPTY_STRING), f = r.tokenType === te.POP ? g.SHR_NONCE_VALIDITY : (typeof t.expires_in == "string" ? parseInt(t.expires_in, 10) : t.expires_in) || 0, _ = p + f, k = this.generateScopes(t, r), E = _t.createAccessTokenEntity(o, r.authority, s, r.clientId, a ? a.claims.tid || g.EMPTY_STRING : u, k.printScopes(), _, 0, this.browserCrypto), N = new Zt(i, d, E);
|
|
11009
11006
|
this.nativeStorageManager.saveCacheRecord(N);
|
|
11010
11007
|
}, e.prototype.addTelemetryFromNativeResponse = function(t) {
|
|
11011
11008
|
var r = this.getMATSFromResponse(t);
|
|
@@ -11042,7 +11039,7 @@ var Ot = (
|
|
|
11042
11039
|
return typeof t.is_cached > "u" ? (this.logger.verbose("NativeInteractionClient - MATS telemetry does not contain field indicating if response was served from cache. Returning false."), !1) : !!t.is_cached;
|
|
11043
11040
|
}, e.prototype.initializeNativeRequest = function(t) {
|
|
11044
11041
|
return T(this, void 0, void 0, function() {
|
|
11045
|
-
var r, o, i, a, s,
|
|
11042
|
+
var r, o, i, a, s, u, p, d, f, _, k = this;
|
|
11046
11043
|
return I(this, function(E) {
|
|
11047
11044
|
switch (E.label) {
|
|
11048
11045
|
case 0:
|
|
@@ -11050,7 +11047,7 @@ var Ot = (
|
|
|
11050
11047
|
case 1:
|
|
11051
11048
|
E.sent(), E.label = 2;
|
|
11052
11049
|
case 2:
|
|
11053
|
-
return o = new W(r), o.validateAsUri(), i = t.scopes, a = br(t, ["scopes"]), s = new Ee(i || []), s.appendScopes(on),
|
|
11050
|
+
return o = new W(r), o.validateAsUri(), i = t.scopes, a = br(t, ["scopes"]), s = new Ee(i || []), s.appendScopes(on), u = function() {
|
|
11054
11051
|
switch (k.apiId) {
|
|
11055
11052
|
case oe.ssoSilent:
|
|
11056
11053
|
case oe.acquireTokenSilent_silentFlow:
|
|
@@ -11074,19 +11071,19 @@ var Ot = (
|
|
|
11074
11071
|
authority: o.urlString,
|
|
11075
11072
|
scope: s.printScopes(),
|
|
11076
11073
|
redirectUri: this.getRedirectUri(t.redirectUri),
|
|
11077
|
-
prompt:
|
|
11074
|
+
prompt: u(),
|
|
11078
11075
|
correlationId: this.correlationId,
|
|
11079
11076
|
tokenType: t.authenticationScheme,
|
|
11080
11077
|
windowTitleSubstring: document.title,
|
|
11081
11078
|
extraParameters: B(B(B({}, t.extraQueryParameters), t.tokenQueryParameters), { telemetry: Gt.MATS_TELEMETRY }),
|
|
11082
11079
|
extendedExpiryToken: !1
|
|
11083
11080
|
// Make this configurable?
|
|
11084
|
-
}), t.authenticationScheme !== te.POP ? [3, 4] : (
|
|
11081
|
+
}), t.authenticationScheme !== te.POP ? [3, 4] : (d = {
|
|
11085
11082
|
resourceRequestUri: t.resourceRequestUri,
|
|
11086
11083
|
resourceRequestMethod: t.resourceRequestMethod,
|
|
11087
11084
|
shrClaims: t.shrClaims,
|
|
11088
11085
|
shrNonce: t.shrNonce
|
|
11089
|
-
}, f = new Ut(this.browserCrypto), [4, f.generateCnf(
|
|
11086
|
+
}, f = new Ut(this.browserCrypto), [4, f.generateCnf(d)]);
|
|
11090
11087
|
case 3:
|
|
11091
11088
|
_ = E.sent(), p.reqCnf = _.reqCnfString, p.keyId = _.kid, E.label = 4;
|
|
11092
11089
|
case 4:
|
|
@@ -11223,13 +11220,13 @@ var Yi = (
|
|
|
11223
11220
|
/** @class */
|
|
11224
11221
|
function(n) {
|
|
11225
11222
|
be(e, n);
|
|
11226
|
-
function e(t, r, o, i, a, s,
|
|
11227
|
-
var _ = n.call(this, t, r, o, i, a, s,
|
|
11223
|
+
function e(t, r, o, i, a, s, u, p, d, f) {
|
|
11224
|
+
var _ = n.call(this, t, r, o, i, a, s, u, d, f) || this;
|
|
11228
11225
|
return _.nativeStorage = p, _;
|
|
11229
11226
|
}
|
|
11230
11227
|
return e.prototype.acquireToken = function(t) {
|
|
11231
11228
|
return T(this, void 0, void 0, function() {
|
|
11232
|
-
var r, o, i, a, s,
|
|
11229
|
+
var r, o, i, a, s, u, p, d, f, _ = this;
|
|
11233
11230
|
return I(this, function(k) {
|
|
11234
11231
|
switch (k.label) {
|
|
11235
11232
|
case 0:
|
|
@@ -11243,12 +11240,12 @@ var Yi = (
|
|
|
11243
11240
|
case 3:
|
|
11244
11241
|
return a = k.sent(), this.performanceClient.setPreQueueTime(b.StandardInteractionClientCreateAuthCodeClient, t.correlationId), [4, this.createAuthCodeClient(o, r.authority, r.azureCloudOptions)];
|
|
11245
11242
|
case 4:
|
|
11246
|
-
return s = k.sent(), this.logger.verbose("Auth code client created"),
|
|
11243
|
+
return s = k.sent(), this.logger.verbose("Auth code client created"), u = new Ur(s, this.browserStorage, a, this.logger, this.browserCrypto, this.performanceClient), [4, s.getAuthCodeUrl(B(B({}, r), { nativeBroker: yt.isNativeAvailable(this.config, this.logger, this.nativeMessageHandler, t.authenticationScheme) }))];
|
|
11247
11244
|
case 5:
|
|
11248
|
-
return p = k.sent(),
|
|
11245
|
+
return p = k.sent(), d = this.getRedirectStartPage(t.redirectStartPage), this.logger.verbosePii("Redirect start page: " + d), window.addEventListener("pageshow", i), [4, u.initiateAuthRequest(p, {
|
|
11249
11246
|
navigationClient: this.navigationClient,
|
|
11250
11247
|
redirectTimeout: this.config.system.redirectNavigationTimeout,
|
|
11251
|
-
redirectStartPage:
|
|
11248
|
+
redirectStartPage: d,
|
|
11252
11249
|
onRedirectNavigate: t.onRedirectNavigate
|
|
11253
11250
|
})];
|
|
11254
11251
|
case 6:
|
|
@@ -11265,7 +11262,7 @@ var Yi = (
|
|
|
11265
11262
|
});
|
|
11266
11263
|
}, e.prototype.handleRedirectPromise = function(t) {
|
|
11267
11264
|
return T(this, void 0, void 0, function() {
|
|
11268
|
-
var r, o, i, a, s,
|
|
11265
|
+
var r, o, i, a, s, u, p, d, f, _, k, E;
|
|
11269
11266
|
return I(this, function(N) {
|
|
11270
11267
|
switch (N.label) {
|
|
11271
11268
|
case 0:
|
|
@@ -11281,17 +11278,17 @@ var Yi = (
|
|
|
11281
11278
|
} catch (Q) {
|
|
11282
11279
|
return this.logger.info("handleRedirectPromise was unable to extract state due to: " + Q), this.browserStorage.cleanRequestByInteractionType(x.Redirect), [2, null];
|
|
11283
11280
|
}
|
|
11284
|
-
return s = this.browserStorage.getTemporaryCache(J.ORIGIN_URI, !0) || g.EMPTY_STRING,
|
|
11281
|
+
return s = this.browserStorage.getTemporaryCache(J.ORIGIN_URI, !0) || g.EMPTY_STRING, u = W.removeHashFromUrl(s), p = W.removeHashFromUrl(window.location.href), u === p && this.config.auth.navigateToLoginRequestUrl ? (this.logger.verbose("Current page is loginRequestUrl, handling hash"), [4, this.handleHash(o, i, r)]) : [3, 3];
|
|
11285
11282
|
case 2:
|
|
11286
|
-
return
|
|
11283
|
+
return d = N.sent(), s.indexOf("#") > -1 && de.replaceHash(s), [2, d];
|
|
11287
11284
|
case 3:
|
|
11288
11285
|
return this.config.auth.navigateToLoginRequestUrl ? [3, 4] : (this.logger.verbose("NavigateToLoginRequestUrl set to false, handling hash"), [2, this.handleHash(o, i, r)]);
|
|
11289
11286
|
case 4:
|
|
11290
|
-
return !
|
|
11287
|
+
return !de.isInIframe() || this.config.system.allowRedirectInIframe ? (this.browserStorage.setTemporaryCache(J.URL_HASH, o, !0), f = {
|
|
11291
11288
|
apiId: oe.handleRedirectPromise,
|
|
11292
11289
|
timeout: this.config.system.redirectNavigationTimeout,
|
|
11293
11290
|
noHistory: !0
|
|
11294
|
-
}, _ = !0, !s || s === "null" ? (k =
|
|
11291
|
+
}, _ = !0, !s || s === "null" ? (k = de.getHomepage(), this.browserStorage.setTemporaryCache(J.ORIGIN_URI, k, !0), this.logger.warning("Unable to get valid login request url from cache, redirecting to home page"), [4, this.navigationClient.navigateInternal(k, f)]) : [3, 6]) : [3, 9];
|
|
11295
11292
|
case 5:
|
|
11296
11293
|
return _ = N.sent(), [3, 8];
|
|
11297
11294
|
case 6:
|
|
@@ -11318,20 +11315,20 @@ var Yi = (
|
|
|
11318
11315
|
this.logger.verbose("getRedirectResponseHash called");
|
|
11319
11316
|
var r = W.hashContainsKnownProperties(t);
|
|
11320
11317
|
if (r)
|
|
11321
|
-
return
|
|
11318
|
+
return de.clearHash(window), this.logger.verbose("Hash contains known properties, returning response hash"), t;
|
|
11322
11319
|
var o = this.browserStorage.getTemporaryCache(J.URL_HASH, !0);
|
|
11323
11320
|
return this.browserStorage.removeItem(this.browserStorage.generateCacheKey(J.URL_HASH)), this.logger.verbose("Hash does not contain known properties, returning cached hash"), o;
|
|
11324
11321
|
}, e.prototype.handleHash = function(t, r, o) {
|
|
11325
11322
|
return T(this, void 0, void 0, function() {
|
|
11326
|
-
var i, a, s,
|
|
11323
|
+
var i, a, s, u, p, d, f, _ = this;
|
|
11327
11324
|
return I(this, function(k) {
|
|
11328
11325
|
switch (k.label) {
|
|
11329
11326
|
case 0:
|
|
11330
11327
|
if (i = this.browserStorage.getCachedRequest(r, this.browserCrypto), this.logger.verbose("handleHash called, retrieved cached request"), a = W.getDeserializedHash(t), a.accountId) {
|
|
11331
11328
|
if (this.logger.verbose("Account id found in hash, calling WAM for token"), !this.nativeMessageHandler)
|
|
11332
11329
|
throw M.createNativeConnectionNotEstablishedError();
|
|
11333
|
-
return s = new Ot(this.config, this.browserStorage, this.browserCrypto, this.logger, this.eventHandler, this.navigationClient, oe.acquireTokenPopup, this.performanceClient, this.nativeMessageHandler, a.accountId, this.nativeStorage, i.correlationId),
|
|
11334
|
-
state:
|
|
11330
|
+
return s = new Ot(this.config, this.browserStorage, this.browserCrypto, this.logger, this.eventHandler, this.navigationClient, oe.acquireTokenPopup, this.performanceClient, this.nativeMessageHandler, a.accountId, this.nativeStorage, i.correlationId), u = st.parseRequestState(this.browserCrypto, r).userRequestState, [2, s.acquireToken(B(B({}, i), {
|
|
11331
|
+
state: u,
|
|
11335
11332
|
prompt: void 0
|
|
11336
11333
|
// Server should handle the prompt, ideally native broker can do this part silently
|
|
11337
11334
|
})).finally(function() {
|
|
@@ -11342,7 +11339,7 @@ var Yi = (
|
|
|
11342
11339
|
throw M.createNoCachedAuthorityError();
|
|
11343
11340
|
return this.performanceClient.setPreQueueTime(b.StandardInteractionClientCreateAuthCodeClient, i.correlationId), [4, this.createAuthCodeClient(o, p)];
|
|
11344
11341
|
case 1:
|
|
11345
|
-
return
|
|
11342
|
+
return d = k.sent(), this.logger.verbose("Auth code client created"), yn.removeThrottle(this.browserStorage, this.config.auth.clientId, i), f = new Ur(d, this.browserStorage, i, this.logger, this.browserCrypto, this.performanceClient), [4, f.handleCodeResponseFromHash(t, r, d.authority, this.networkClient)];
|
|
11346
11343
|
case 2:
|
|
11347
11344
|
return [2, k.sent()];
|
|
11348
11345
|
}
|
|
@@ -11350,41 +11347,41 @@ var Yi = (
|
|
|
11350
11347
|
});
|
|
11351
11348
|
}, e.prototype.logout = function(t) {
|
|
11352
11349
|
return T(this, void 0, void 0, function() {
|
|
11353
|
-
var r, o, i, a, s,
|
|
11354
|
-
return I(this, function(
|
|
11355
|
-
switch (
|
|
11350
|
+
var r, o, i, a, s, u, p;
|
|
11351
|
+
return I(this, function(d) {
|
|
11352
|
+
switch (d.label) {
|
|
11356
11353
|
case 0:
|
|
11357
|
-
this.logger.verbose("logoutRedirect called"), r = this.initializeLogoutRequest(t), o = this.initializeServerTelemetryManager(oe.logout),
|
|
11354
|
+
this.logger.verbose("logoutRedirect called"), r = this.initializeLogoutRequest(t), o = this.initializeServerTelemetryManager(oe.logout), d.label = 1;
|
|
11358
11355
|
case 1:
|
|
11359
|
-
return
|
|
11356
|
+
return d.trys.push([1, 10, , 11]), this.eventHandler.emitEvent(q.LOGOUT_START, x.Redirect, t), [4, this.clearCacheOnLogout(r.account)];
|
|
11360
11357
|
case 2:
|
|
11361
|
-
return
|
|
11358
|
+
return d.sent(), i = {
|
|
11362
11359
|
apiId: oe.logout,
|
|
11363
11360
|
timeout: this.config.system.redirectNavigationTimeout,
|
|
11364
11361
|
noHistory: !1
|
|
11365
11362
|
}, this.performanceClient.setPreQueueTime(b.StandardInteractionClientCreateAuthCodeClient, r.correlationId), [4, this.createAuthCodeClient(o, t && t.authority)];
|
|
11366
11363
|
case 3:
|
|
11367
|
-
return a =
|
|
11364
|
+
return a = d.sent(), this.logger.verbose("Auth code client created"), s = a.getLogoutUri(r), this.eventHandler.emitEvent(q.LOGOUT_SUCCESS, x.Redirect, r), t && typeof t.onRedirectNavigate == "function" ? (u = t.onRedirectNavigate(s), u === !1 ? [3, 5] : (this.logger.verbose("Logout onRedirectNavigate did not return false, navigating"), this.browserStorage.getInteractionInProgress() || this.browserStorage.setInteractionInProgress(!0), [4, this.navigationClient.navigateExternal(s, i)])) : [3, 7];
|
|
11368
11365
|
case 4:
|
|
11369
|
-
return
|
|
11366
|
+
return d.sent(), [
|
|
11370
11367
|
2
|
|
11371
11368
|
/*return*/
|
|
11372
11369
|
];
|
|
11373
11370
|
case 5:
|
|
11374
|
-
this.browserStorage.setInteractionInProgress(!1), this.logger.verbose("Logout onRedirectNavigate returned false, stopping navigation"),
|
|
11371
|
+
this.browserStorage.setInteractionInProgress(!1), this.logger.verbose("Logout onRedirectNavigate returned false, stopping navigation"), d.label = 6;
|
|
11375
11372
|
case 6:
|
|
11376
11373
|
return [3, 9];
|
|
11377
11374
|
case 7:
|
|
11378
11375
|
return this.browserStorage.getInteractionInProgress() || this.browserStorage.setInteractionInProgress(!0), [4, this.navigationClient.navigateExternal(s, i)];
|
|
11379
11376
|
case 8:
|
|
11380
|
-
return
|
|
11377
|
+
return d.sent(), [
|
|
11381
11378
|
2
|
|
11382
11379
|
/*return*/
|
|
11383
11380
|
];
|
|
11384
11381
|
case 9:
|
|
11385
11382
|
return [3, 11];
|
|
11386
11383
|
case 10:
|
|
11387
|
-
throw p =
|
|
11384
|
+
throw p = d.sent(), p instanceof D && p.setCorrelationId(this.correlationId), o.cacheFailedRequest(p), this.eventHandler.emitEvent(q.LOGOUT_FAILURE, x.Redirect, null, p), this.eventHandler.emitEvent(q.LOGOUT_END, x.Redirect), p;
|
|
11388
11385
|
case 11:
|
|
11389
11386
|
return this.eventHandler.emitEvent(q.LOGOUT_END, x.Redirect), [
|
|
11390
11387
|
2
|
|
@@ -11395,7 +11392,7 @@ var Yi = (
|
|
|
11395
11392
|
});
|
|
11396
11393
|
}, e.prototype.getRedirectStartPage = function(t) {
|
|
11397
11394
|
var r = t || window.location.href;
|
|
11398
|
-
return W.getAbsoluteUrl(r,
|
|
11395
|
+
return W.getAbsoluteUrl(r, de.getCurrentUri());
|
|
11399
11396
|
}, e;
|
|
11400
11397
|
}(Ft)
|
|
11401
11398
|
);
|
|
@@ -11404,8 +11401,8 @@ var Wi = (
|
|
|
11404
11401
|
/** @class */
|
|
11405
11402
|
function(n) {
|
|
11406
11403
|
be(e, n);
|
|
11407
|
-
function e(t, r, o, i, a, s,
|
|
11408
|
-
var _ = n.call(this, t, r, o, i, a, s,
|
|
11404
|
+
function e(t, r, o, i, a, s, u, p, d, f) {
|
|
11405
|
+
var _ = n.call(this, t, r, o, i, a, s, u, d, f) || this;
|
|
11409
11406
|
return _.unloadWindow = _.unloadWindow.bind(_), _.nativeStorage = p, _;
|
|
11410
11407
|
}
|
|
11411
11408
|
return e.prototype.acquireToken = function(t) {
|
|
@@ -11426,14 +11423,14 @@ var Wi = (
|
|
|
11426
11423
|
if (this.config.system.asyncPopups)
|
|
11427
11424
|
return this.logger.verbose("asyncPopups set to true"), this.logoutPopupAsync(r, o, s, i, void 0, a);
|
|
11428
11425
|
this.logger.verbose("asyncPopup set to false, opening popup");
|
|
11429
|
-
var
|
|
11430
|
-
return this.logoutPopupAsync(r, o, s, i,
|
|
11426
|
+
var u = this.openSizedPopup("about:blank", o, s);
|
|
11427
|
+
return this.logoutPopupAsync(r, o, s, i, u, a);
|
|
11431
11428
|
} catch (p) {
|
|
11432
11429
|
return Promise.reject(p);
|
|
11433
11430
|
}
|
|
11434
11431
|
}, e.prototype.acquireTokenPopupAsync = function(t, r, o, i) {
|
|
11435
11432
|
return T(this, void 0, void 0, function() {
|
|
11436
|
-
var a, s,
|
|
11433
|
+
var a, s, u, p, d, f, _, k, E, N, Q, X, G, $, Ae, xe, Ve, Ct = this;
|
|
11437
11434
|
return I(this, function(ce) {
|
|
11438
11435
|
switch (ce.label) {
|
|
11439
11436
|
case 0:
|
|
@@ -11443,17 +11440,17 @@ var Wi = (
|
|
|
11443
11440
|
case 2:
|
|
11444
11441
|
return ce.trys.push([2, 8, , 9]), this.performanceClient.setPreQueueTime(b.StandardInteractionClientInitializeAuthorizationCodeRequest, t.correlationId), [4, this.initializeAuthorizationCodeRequest(s)];
|
|
11445
11442
|
case 3:
|
|
11446
|
-
return
|
|
11443
|
+
return u = ce.sent(), this.performanceClient.setPreQueueTime(b.StandardInteractionClientCreateAuthCodeClient, t.correlationId), [4, this.createAuthCodeClient(a, s.authority, s.azureCloudOptions)];
|
|
11447
11444
|
case 4:
|
|
11448
|
-
return p = ce.sent(), this.logger.verbose("Auth code client created"),
|
|
11445
|
+
return p = ce.sent(), this.logger.verbose("Auth code client created"), d = yt.isNativeAvailable(this.config, this.logger, this.nativeMessageHandler, t.authenticationScheme), f = void 0, d && (f = this.performanceClient.startMeasurement(b.FetchAccountIdWithNativeBroker, t.correlationId)), [4, p.getAuthCodeUrl(B(B({}, s), { nativeBroker: d }))];
|
|
11449
11446
|
case 5:
|
|
11450
|
-
return _ = ce.sent(), k = new or(p, this.browserStorage,
|
|
11447
|
+
return _ = ce.sent(), k = new or(p, this.browserStorage, u, this.logger, this.performanceClient), E = {
|
|
11451
11448
|
popup: i,
|
|
11452
11449
|
popupName: r,
|
|
11453
11450
|
popupWindowAttributes: o
|
|
11454
11451
|
}, N = this.initiateAuthRequest(_, E), this.eventHandler.emitEvent(q.POPUP_OPENED, x.Popup, { popupWindow: N }, null), [4, this.monitorPopupForHash(N)];
|
|
11455
11452
|
case 6:
|
|
11456
|
-
if (Q = ce.sent(), X = W.getDeserializedHash(Q), G = this.validateAndExtractStateFromHash(X, x.Popup, s.correlationId), yn.removeThrottle(this.browserStorage, this.config.auth.clientId,
|
|
11453
|
+
if (Q = ce.sent(), X = W.getDeserializedHash(Q), G = this.validateAndExtractStateFromHash(X, x.Popup, s.correlationId), yn.removeThrottle(this.browserStorage, this.config.auth.clientId, u), X.accountId) {
|
|
11457
11454
|
if (this.logger.verbose("Account id found in hash, calling WAM for token"), f && f.endMeasurement({
|
|
11458
11455
|
success: !0,
|
|
11459
11456
|
isNativeBroker: !0
|
|
@@ -11482,25 +11479,25 @@ var Wi = (
|
|
|
11482
11479
|
});
|
|
11483
11480
|
}, e.prototype.logoutPopupAsync = function(t, r, o, i, a, s) {
|
|
11484
11481
|
return T(this, void 0, void 0, function() {
|
|
11485
|
-
var
|
|
11482
|
+
var u, p, d, f, _, k, E;
|
|
11486
11483
|
return I(this, function(N) {
|
|
11487
11484
|
switch (N.label) {
|
|
11488
11485
|
case 0:
|
|
11489
|
-
this.logger.verbose("logoutPopupAsync called"), this.eventHandler.emitEvent(q.LOGOUT_START, x.Popup, t),
|
|
11486
|
+
this.logger.verbose("logoutPopupAsync called"), this.eventHandler.emitEvent(q.LOGOUT_START, x.Popup, t), u = this.initializeServerTelemetryManager(oe.logoutPopup), N.label = 1;
|
|
11490
11487
|
case 1:
|
|
11491
11488
|
return N.trys.push([1, 5, , 6]), [4, this.clearCacheOnLogout(t.account)];
|
|
11492
11489
|
case 2:
|
|
11493
|
-
return N.sent(), this.performanceClient.setPreQueueTime(b.StandardInteractionClientCreateAuthCodeClient, t.correlationId), [4, this.createAuthCodeClient(
|
|
11490
|
+
return N.sent(), this.performanceClient.setPreQueueTime(b.StandardInteractionClientCreateAuthCodeClient, t.correlationId), [4, this.createAuthCodeClient(u, i)];
|
|
11494
11491
|
case 3:
|
|
11495
|
-
return p = N.sent(), this.logger.verbose("Auth code client created"),
|
|
11492
|
+
return p = N.sent(), this.logger.verbose("Auth code client created"), d = p.getLogoutUri(t), this.eventHandler.emitEvent(q.LOGOUT_SUCCESS, x.Popup, t), f = this.openPopup(d, { popupName: r, popupWindowAttributes: o, popup: a }), this.eventHandler.emitEvent(q.POPUP_OPENED, x.Popup, { popupWindow: f }, null), [4, this.waitForLogoutPopup(f)];
|
|
11496
11493
|
case 4:
|
|
11497
11494
|
return N.sent(), s ? (_ = {
|
|
11498
11495
|
apiId: oe.logoutPopup,
|
|
11499
11496
|
timeout: this.config.system.redirectNavigationTimeout,
|
|
11500
11497
|
noHistory: !1
|
|
11501
|
-
}, k = W.getAbsoluteUrl(s,
|
|
11498
|
+
}, k = W.getAbsoluteUrl(s, de.getCurrentUri()), this.logger.verbose("Redirecting main window to url specified in the request"), this.logger.verbosePii("Redirecting main window to: " + k), this.navigationClient.navigateInternal(k, _)) : this.logger.verbose("No main window navigation requested"), [3, 6];
|
|
11502
11499
|
case 5:
|
|
11503
|
-
throw E = N.sent(), a && a.close(), E instanceof D && E.setCorrelationId(this.correlationId), this.browserStorage.setInteractionInProgress(!1), this.eventHandler.emitEvent(q.LOGOUT_FAILURE, x.Popup, null, E), this.eventHandler.emitEvent(q.LOGOUT_END, x.Popup),
|
|
11500
|
+
throw E = N.sent(), a && a.close(), E instanceof D && E.setCorrelationId(this.correlationId), this.browserStorage.setInteractionInProgress(!1), this.eventHandler.emitEvent(q.LOGOUT_FAILURE, x.Popup, null, E), this.eventHandler.emitEvent(q.LOGOUT_END, x.Popup), u.cacheFailedRequest(E), E;
|
|
11504
11501
|
case 6:
|
|
11505
11502
|
return this.eventHandler.emitEvent(q.LOGOUT_END, x.Popup), [
|
|
11506
11503
|
2
|
|
@@ -11518,17 +11515,17 @@ var Wi = (
|
|
|
11518
11515
|
return new Promise(function(o, i) {
|
|
11519
11516
|
var a = r.config.system.windowHashTimeout / r.config.system.pollIntervalMilliseconds, s = 0;
|
|
11520
11517
|
r.logger.verbose("PopupHandler.monitorPopupForHash - polling started");
|
|
11521
|
-
var
|
|
11518
|
+
var u = setInterval(function() {
|
|
11522
11519
|
if (t.closed) {
|
|
11523
|
-
r.logger.error("PopupHandler.monitorPopupForHash - window closed"), r.cleanPopup(), clearInterval(
|
|
11520
|
+
r.logger.error("PopupHandler.monitorPopupForHash - window closed"), r.cleanPopup(), clearInterval(u), i(M.createUserCancelledError());
|
|
11524
11521
|
return;
|
|
11525
11522
|
}
|
|
11526
|
-
var p = g.EMPTY_STRING,
|
|
11523
|
+
var p = g.EMPTY_STRING, d = g.EMPTY_STRING;
|
|
11527
11524
|
try {
|
|
11528
|
-
p = t.location.href,
|
|
11525
|
+
p = t.location.href, d = t.location.hash;
|
|
11529
11526
|
} catch {
|
|
11530
11527
|
}
|
|
11531
|
-
L.isEmpty(p) || p === "about:blank" || (r.logger.verbose("PopupHandler.monitorPopupForHash - popup window is on same origin as caller"), s++,
|
|
11528
|
+
L.isEmpty(p) || p === "about:blank" || (r.logger.verbose("PopupHandler.monitorPopupForHash - popup window is on same origin as caller"), s++, d ? (r.logger.verbose("PopupHandler.monitorPopupForHash - found hash in url"), clearInterval(u), r.cleanPopup(t), W.hashContainsKnownProperties(d) ? (r.logger.verbose("PopupHandler.monitorPopupForHash - hash contains known properties, returning."), o(d)) : (r.logger.error("PopupHandler.monitorPopupForHash - found hash in url but it does not contain known properties. Check that your router is not changing the hash prematurely."), r.logger.errorPii("PopupHandler.monitorPopupForHash - hash found: " + d), i(M.createHashDoesNotContainKnownPropertiesError()))) : s > a && (r.logger.error("PopupHandler.monitorPopupForHash - unable to find hash in url, timing out"), clearInterval(u), i(M.createMonitorPopupTimeoutError())));
|
|
11532
11529
|
}, r.config.system.pollIntervalMilliseconds);
|
|
11533
11530
|
});
|
|
11534
11531
|
}, e.prototype.waitForLogoutPopup = function(t) {
|
|
@@ -11555,8 +11552,8 @@ var Wi = (
|
|
|
11555
11552
|
throw this.logger.error("error opening popup " + i.message), this.browserStorage.setInteractionInProgress(!1), M.createPopupWindowError(i.toString());
|
|
11556
11553
|
}
|
|
11557
11554
|
}, e.prototype.openSizedPopup = function(t, r, o) {
|
|
11558
|
-
var i, a, s,
|
|
11559
|
-
return (!k || k < 0 || k > f) && (this.logger.verbose("Default popup window width used. Window width not configured or invalid."), k = Qe.POPUP_WIDTH), (!E || E < 0 || E > _) && (this.logger.verbose("Default popup window height used. Window height not configured or invalid."), E = Qe.POPUP_HEIGHT), (!N || N < 0 || N > _) && (this.logger.verbose("Default popup window top position used. Window top not configured or invalid."), N = Math.max(0, _ / 2 - Qe.POPUP_HEIGHT / 2 +
|
|
11555
|
+
var i, a, s, u, p = window.screenLeft ? window.screenLeft : window.screenX, d = window.screenTop ? window.screenTop : window.screenY, f = window.innerWidth || document.documentElement.clientWidth || document.body.clientWidth, _ = window.innerHeight || document.documentElement.clientHeight || document.body.clientHeight, k = (i = o.popupSize) === null || i === void 0 ? void 0 : i.width, E = (a = o.popupSize) === null || a === void 0 ? void 0 : a.height, N = (s = o.popupPosition) === null || s === void 0 ? void 0 : s.top, Q = (u = o.popupPosition) === null || u === void 0 ? void 0 : u.left;
|
|
11556
|
+
return (!k || k < 0 || k > f) && (this.logger.verbose("Default popup window width used. Window width not configured or invalid."), k = Qe.POPUP_WIDTH), (!E || E < 0 || E > _) && (this.logger.verbose("Default popup window height used. Window height not configured or invalid."), E = Qe.POPUP_HEIGHT), (!N || N < 0 || N > _) && (this.logger.verbose("Default popup window top position used. Window top not configured or invalid."), N = Math.max(0, _ / 2 - Qe.POPUP_HEIGHT / 2 + d)), (!Q || Q < 0 || Q > f) && (this.logger.verbose("Default popup window left position used. Window left not configured or invalid."), Q = Math.max(0, f / 2 - Qe.POPUP_WIDTH / 2 + p)), window.open(t, r, "width=" + k + ", height=" + E + ", top=" + N + ", left=" + Q + ", scrollbars=yes");
|
|
11560
11557
|
}, e.prototype.unloadWindow = function(t) {
|
|
11561
11558
|
this.browserStorage.cleanRequestByInteractionType(x.Popup), this.currentWindow && this.currentWindow.close(), t.preventDefault();
|
|
11562
11559
|
}, e.prototype.cleanPopup = function(t) {
|
|
@@ -11615,21 +11612,21 @@ function ea(n, e) {
|
|
|
11615
11612
|
// Default cache migration to true if cache location is localStorage since entries are preserved across tabs/windows. Migration has little to no benefit in sessionStorage and memoryStorage
|
|
11616
11613
|
cacheMigrationEnabled: !!(r && r.cacheLocation === pe.LocalStorage),
|
|
11617
11614
|
claimsBasedCachingEnabled: !0
|
|
11618
|
-
},
|
|
11615
|
+
}, u = {
|
|
11619
11616
|
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
|
11620
11617
|
loggerCallback: function() {
|
|
11621
11618
|
},
|
|
11622
11619
|
logLevel: ve.Info,
|
|
11623
11620
|
piiLoggingEnabled: !1
|
|
11624
11621
|
}, p = B(B({}, no), {
|
|
11625
|
-
loggerOptions:
|
|
11626
|
-
networkClient: e ?
|
|
11622
|
+
loggerOptions: u,
|
|
11623
|
+
networkClient: e ? de.getBrowserNetworkClient() : Di,
|
|
11627
11624
|
navigationClient: new $i(),
|
|
11628
11625
|
loadFrameTimeout: 0,
|
|
11629
11626
|
// If loadFrameTimeout is provided, use that as default.
|
|
11630
11627
|
windowHashTimeout: (o == null ? void 0 : o.loadFrameTimeout) || Ji,
|
|
11631
11628
|
iframeHashTimeout: (o == null ? void 0 : o.loadFrameTimeout) || Jn,
|
|
11632
|
-
navigateFrameWait: e &&
|
|
11629
|
+
navigateFrameWait: e && de.detectIEOrEdge() ? 500 : 0,
|
|
11633
11630
|
redirectNavigationTimeout: Xi,
|
|
11634
11631
|
asyncPopups: !1,
|
|
11635
11632
|
allowRedirectInIframe: !1,
|
|
@@ -11640,7 +11637,7 @@ function ea(n, e) {
|
|
|
11640
11637
|
useMsrCrypto: !1,
|
|
11641
11638
|
entropy: void 0
|
|
11642
11639
|
}
|
|
11643
|
-
}),
|
|
11640
|
+
}), d = B(B({}, o), { loggerOptions: (o == null ? void 0 : o.loggerOptions) || u }), f = {
|
|
11644
11641
|
application: {
|
|
11645
11642
|
appName: g.EMPTY_STRING,
|
|
11646
11643
|
appVersion: g.EMPTY_STRING
|
|
@@ -11648,7 +11645,7 @@ function ea(n, e) {
|
|
|
11648
11645
|
}, _ = {
|
|
11649
11646
|
auth: B(B({}, a), t),
|
|
11650
11647
|
cache: B(B({}, s), r),
|
|
11651
|
-
system: B(B({}, p),
|
|
11648
|
+
system: B(B({}, p), d),
|
|
11652
11649
|
telemetry: B(B({}, f), i)
|
|
11653
11650
|
};
|
|
11654
11651
|
return _;
|
|
@@ -11659,8 +11656,8 @@ var uo = (
|
|
|
11659
11656
|
function(n) {
|
|
11660
11657
|
be(e, n);
|
|
11661
11658
|
function e(t, r, o, i, a, s) {
|
|
11662
|
-
var
|
|
11663
|
-
return
|
|
11659
|
+
var u = n.call(this, t, r, o, i, s) || this;
|
|
11660
|
+
return u.navigateFrameWait = a.navigateFrameWait, u.pollIntervalMilliseconds = a.pollIntervalMilliseconds, u;
|
|
11664
11661
|
}
|
|
11665
11662
|
return e.prototype.initiateAuthRequest = function(t) {
|
|
11666
11663
|
return T(this, void 0, void 0, function() {
|
|
@@ -11681,17 +11678,17 @@ var uo = (
|
|
|
11681
11678
|
var o = this;
|
|
11682
11679
|
return this.performanceClient.addQueueMeasurement(b.SilentHandlerMonitorIframeForHash, this.authCodeRequest.correlationId), new Promise(function(i, a) {
|
|
11683
11680
|
r < Jn && o.logger.warning("system.loadFrameTimeout or system.iframeHashTimeout set to lower (" + r + "ms) than the default (" + Jn + "ms). This may result in timeouts.");
|
|
11684
|
-
var s = window.performance.now(),
|
|
11685
|
-
if (window.performance.now() >
|
|
11681
|
+
var s = window.performance.now(), u = s + r, p = setInterval(function() {
|
|
11682
|
+
if (window.performance.now() > u) {
|
|
11686
11683
|
o.removeHiddenIframe(t), clearInterval(p), a(M.createMonitorIframeTimeoutError());
|
|
11687
11684
|
return;
|
|
11688
11685
|
}
|
|
11689
|
-
var
|
|
11686
|
+
var d = g.EMPTY_STRING, f = t.contentWindow;
|
|
11690
11687
|
try {
|
|
11691
|
-
|
|
11688
|
+
d = f ? f.location.href : g.EMPTY_STRING;
|
|
11692
11689
|
} catch {
|
|
11693
11690
|
}
|
|
11694
|
-
if (!L.isEmpty(
|
|
11691
|
+
if (!L.isEmpty(d)) {
|
|
11695
11692
|
var _ = f ? f.location.hash : g.EMPTY_STRING;
|
|
11696
11693
|
if (W.hashContainsKnownProperties(_)) {
|
|
11697
11694
|
o.removeHiddenIframe(t), clearInterval(p), i(_);
|
|
@@ -11728,15 +11725,15 @@ var ta = (
|
|
|
11728
11725
|
/** @class */
|
|
11729
11726
|
function(n) {
|
|
11730
11727
|
be(e, n);
|
|
11731
|
-
function e(t, r, o, i, a, s,
|
|
11728
|
+
function e(t, r, o, i, a, s, u, p, d, f, _) {
|
|
11732
11729
|
var k = n.call(this, t, r, o, i, a, s, p, f, _) || this;
|
|
11733
|
-
return k.apiId =
|
|
11730
|
+
return k.apiId = u, k.nativeStorage = d, k;
|
|
11734
11731
|
}
|
|
11735
11732
|
return e.prototype.acquireToken = function(t) {
|
|
11736
11733
|
return T(this, void 0, void 0, function() {
|
|
11737
11734
|
var r, o, i, a, s;
|
|
11738
|
-
return I(this, function(
|
|
11739
|
-
switch (
|
|
11735
|
+
return I(this, function(u) {
|
|
11736
|
+
switch (u.label) {
|
|
11740
11737
|
case 0:
|
|
11741
11738
|
if (this.performanceClient.addQueueMeasurement(b.SilentIframeClientAcquireToken, t.correlationId), this.logger.verbose("acquireTokenByIframe called"), r = this.performanceClient.startMeasurement(b.SilentIframeClientAcquireToken, t.correlationId), L.isEmpty(t.loginHint) && L.isEmpty(t.sid) && (!t.account || L.isEmpty(t.account.username)) && this.logger.warning("No user hint provided. The authorization server may need more information to complete this request."), t.prompt && t.prompt !== Te.NONE && t.prompt !== Te.NO_SESSION)
|
|
11742
11739
|
throw r.endMeasurement({
|
|
@@ -11744,11 +11741,11 @@ var ta = (
|
|
|
11744
11741
|
}), M.createSilentPromptValueError(t.prompt);
|
|
11745
11742
|
return this.performanceClient.setPreQueueTime(b.StandardInteractionClientInitializeAuthorizationRequest, t.correlationId), [4, this.initializeAuthorizationRequest(B(B({}, t), { prompt: t.prompt || Te.NONE }), x.Silent)];
|
|
11746
11743
|
case 1:
|
|
11747
|
-
o =
|
|
11744
|
+
o = u.sent(), this.browserStorage.updateCacheEntries(o.state, o.nonce, o.authority, o.loginHint || g.EMPTY_STRING, o.account || null), i = this.initializeServerTelemetryManager(this.apiId), u.label = 2;
|
|
11748
11745
|
case 2:
|
|
11749
|
-
return
|
|
11746
|
+
return u.trys.push([2, 5, , 6]), this.performanceClient.setPreQueueTime(b.StandardInteractionClientCreateAuthCodeClient, t.correlationId), [4, this.createAuthCodeClient(i, o.authority, o.azureCloudOptions)];
|
|
11750
11747
|
case 3:
|
|
11751
|
-
return a =
|
|
11748
|
+
return a = u.sent(), this.logger.verbose("Auth code client created"), this.performanceClient.setPreQueueTime(b.SilentIframeClientTokenHelper, t.correlationId), [4, this.silentTokenHelper(a, o).then(function(p) {
|
|
11752
11749
|
return r.endMeasurement({
|
|
11753
11750
|
success: !0,
|
|
11754
11751
|
fromCache: !1,
|
|
@@ -11756,9 +11753,9 @@ var ta = (
|
|
|
11756
11753
|
}), p;
|
|
11757
11754
|
})];
|
|
11758
11755
|
case 4:
|
|
11759
|
-
return [2,
|
|
11756
|
+
return [2, u.sent()];
|
|
11760
11757
|
case 5:
|
|
11761
|
-
throw s =
|
|
11758
|
+
throw s = u.sent(), s instanceof D && s.setCorrelationId(this.correlationId), i.cacheFailedRequest(s), this.browserStorage.cleanRequestByState(o.state), r.endMeasurement({
|
|
11762
11759
|
errorCode: s instanceof D && s.errorCode || void 0,
|
|
11763
11760
|
subErrorCode: s instanceof D && s.subError || void 0,
|
|
11764
11761
|
success: !1
|
|
@@ -11775,7 +11772,7 @@ var ta = (
|
|
|
11775
11772
|
return Promise.reject(M.createSilentLogoutUnsupportedError());
|
|
11776
11773
|
}, e.prototype.silentTokenHelper = function(t, r) {
|
|
11777
11774
|
return T(this, void 0, void 0, function() {
|
|
11778
|
-
var o, i, a, s,
|
|
11775
|
+
var o, i, a, s, u, p, d, f, _, k = this;
|
|
11779
11776
|
return I(this, function(E) {
|
|
11780
11777
|
switch (E.label) {
|
|
11781
11778
|
case 0:
|
|
@@ -11787,14 +11784,14 @@ var ta = (
|
|
|
11787
11784
|
case 3:
|
|
11788
11785
|
return s = E.sent(), this.performanceClient.setPreQueueTime(b.SilentHandlerMonitorIframeForHash, r.correlationId), [4, a.monitorIframeForHash(s, this.config.system.iframeHashTimeout)];
|
|
11789
11786
|
case 4:
|
|
11790
|
-
if (
|
|
11787
|
+
if (u = E.sent(), p = W.getDeserializedHash(u), d = this.validateAndExtractStateFromHash(p, x.Silent, o.correlationId), p.accountId) {
|
|
11791
11788
|
if (this.logger.verbose("Account id found in hash, calling WAM for token"), !this.nativeMessageHandler)
|
|
11792
11789
|
throw M.createNativeConnectionNotEstablishedError();
|
|
11793
|
-
return f = new Ot(this.config, this.browserStorage, this.browserCrypto, this.logger, this.eventHandler, this.navigationClient, this.apiId, this.performanceClient, this.nativeMessageHandler, p.accountId, this.browserStorage, this.correlationId), _ = st.parseRequestState(this.browserCrypto,
|
|
11794
|
-
k.browserStorage.cleanRequestByState(
|
|
11790
|
+
return f = new Ot(this.config, this.browserStorage, this.browserCrypto, this.logger, this.eventHandler, this.navigationClient, this.apiId, this.performanceClient, this.nativeMessageHandler, p.accountId, this.browserStorage, this.correlationId), _ = st.parseRequestState(this.browserCrypto, d).userRequestState, [2, f.acquireToken(B(B({}, r), { state: _, prompt: r.prompt || Te.NONE })).finally(function() {
|
|
11791
|
+
k.browserStorage.cleanRequestByState(d);
|
|
11795
11792
|
})];
|
|
11796
11793
|
}
|
|
11797
|
-
return this.performanceClient.setPreQueueTime(b.HandleCodeResponseFromHash, r.correlationId), [2, a.handleCodeResponseFromHash(
|
|
11794
|
+
return this.performanceClient.setPreQueueTime(b.HandleCodeResponseFromHash, r.correlationId), [2, a.handleCodeResponseFromHash(u, d, t.authority, this.networkClient)];
|
|
11798
11795
|
}
|
|
11799
11796
|
});
|
|
11800
11797
|
});
|
|
@@ -11811,7 +11808,7 @@ var na = (
|
|
|
11811
11808
|
}
|
|
11812
11809
|
return e.prototype.acquireToken = function(t) {
|
|
11813
11810
|
return T(this, void 0, void 0, function() {
|
|
11814
|
-
var r, o, i, a, s,
|
|
11811
|
+
var r, o, i, a, s, u = this;
|
|
11815
11812
|
return I(this, function(p) {
|
|
11816
11813
|
switch (p.label) {
|
|
11817
11814
|
case 0:
|
|
@@ -11819,18 +11816,18 @@ var na = (
|
|
|
11819
11816
|
case 1:
|
|
11820
11817
|
return r = B.apply(void 0, o.concat([p.sent()])), i = this.performanceClient.startMeasurement(b.SilentRefreshClientAcquireToken, r.correlationId), a = this.initializeServerTelemetryManager(oe.acquireTokenSilent_silentFlow), [4, this.createRefreshTokenClient(a, r.authority, r.azureCloudOptions)];
|
|
11821
11818
|
case 2:
|
|
11822
|
-
return s = p.sent(), this.logger.verbose("Refresh token client created"), this.performanceClient.setPreQueueTime(b.RefreshTokenClientAcquireTokenByRefreshToken, t.correlationId), [2, s.acquireTokenByRefreshToken(r).then(function(
|
|
11819
|
+
return s = p.sent(), this.logger.verbose("Refresh token client created"), this.performanceClient.setPreQueueTime(b.RefreshTokenClientAcquireTokenByRefreshToken, t.correlationId), [2, s.acquireTokenByRefreshToken(r).then(function(d) {
|
|
11823
11820
|
return i.endMeasurement({
|
|
11824
11821
|
success: !0,
|
|
11825
|
-
fromCache:
|
|
11826
|
-
requestId:
|
|
11827
|
-
}),
|
|
11828
|
-
}).catch(function(
|
|
11829
|
-
throw
|
|
11830
|
-
errorCode:
|
|
11831
|
-
subErrorCode:
|
|
11822
|
+
fromCache: d.fromCache,
|
|
11823
|
+
requestId: d.requestId
|
|
11824
|
+
}), d;
|
|
11825
|
+
}).catch(function(d) {
|
|
11826
|
+
throw d instanceof D && d.setCorrelationId(u.correlationId), a.cacheFailedRequest(d), i.endMeasurement({
|
|
11827
|
+
errorCode: d.errorCode,
|
|
11828
|
+
subErrorCode: d.subError,
|
|
11832
11829
|
success: !1
|
|
11833
|
-
}),
|
|
11830
|
+
}), d;
|
|
11834
11831
|
})];
|
|
11835
11832
|
}
|
|
11836
11833
|
});
|
|
@@ -11881,8 +11878,8 @@ var ra = (
|
|
|
11881
11878
|
error: o || null,
|
|
11882
11879
|
timestamp: Date.now()
|
|
11883
11880
|
};
|
|
11884
|
-
this.logger.info("Emitting event: " + e), this.eventCallbacks.forEach(function(s,
|
|
11885
|
-
i.logger.verbose("Emitting event to callback " +
|
|
11881
|
+
this.logger.info("Emitting event: " + e), this.eventCallbacks.forEach(function(s, u) {
|
|
11882
|
+
i.logger.verbose("Emitting event to callback " + u + ": " + e), s.apply(null, [a]);
|
|
11886
11883
|
});
|
|
11887
11884
|
}
|
|
11888
11885
|
}, n.prototype.handleAccountCacheChange = function(e) {
|
|
@@ -11945,8 +11942,8 @@ var ct = (
|
|
|
11945
11942
|
return n.stringToUtf8Arr = function(e) {
|
|
11946
11943
|
for (var t, r = 0, o = e.length, i = 0; i < o; i++)
|
|
11947
11944
|
t = e.charCodeAt(i), r += t < 128 ? 1 : t < 2048 ? 2 : t < 65536 ? 3 : t < 2097152 ? 4 : t < 67108864 ? 5 : 6;
|
|
11948
|
-
for (var a = new Uint8Array(r), s = 0,
|
|
11949
|
-
t = e.charCodeAt(
|
|
11945
|
+
for (var a = new Uint8Array(r), s = 0, u = 0; s < r; u++)
|
|
11946
|
+
t = e.charCodeAt(u), t < 128 ? a[s++] = t : t < 2048 ? (a[s++] = 192 + (t >>> 6), a[s++] = 128 + (t & 63)) : t < 65536 ? (a[s++] = 224 + (t >>> 12), a[s++] = 128 + (t >>> 6 & 63), a[s++] = 128 + (t & 63)) : t < 2097152 ? (a[s++] = 240 + (t >>> 18), a[s++] = 128 + (t >>> 12 & 63), a[s++] = 128 + (t >>> 6 & 63), a[s++] = 128 + (t & 63)) : t < 67108864 ? (a[s++] = 248 + (t >>> 24), a[s++] = 128 + (t >>> 18 & 63), a[s++] = 128 + (t >>> 12 & 63), a[s++] = 128 + (t >>> 6 & 63), a[s++] = 128 + (t & 63)) : (a[s++] = 252 + (t >>> 30), a[s++] = 128 + (t >>> 24 & 63), a[s++] = 128 + (t >>> 18 & 63), a[s++] = 128 + (t >>> 12 & 63), a[s++] = 128 + (t >>> 6 & 63), a[s++] = 128 + (t & 63));
|
|
11950
11947
|
return a;
|
|
11951
11948
|
}, n.stringToArrayBuffer = function(e) {
|
|
11952
11949
|
for (var t = new ArrayBuffer(e.length), r = new Uint8Array(t), o = 0; o < e.length; o++)
|
|
@@ -12026,10 +12023,10 @@ var oa = (
|
|
|
12026
12023
|
var r = this.base64DecToArr(t);
|
|
12027
12024
|
return ct.utf8ArrToString(r);
|
|
12028
12025
|
}, n.prototype.base64DecToArr = function(e, t) {
|
|
12029
|
-
for (var r = e.replace(/[^A-Za-z0-9\+\/]/g, g.EMPTY_STRING), o = r.length, i = t ? Math.ceil((o * 3 + 1 >>> 2) / t) * t : o * 3 + 1 >>> 2, a = new Uint8Array(i), s = void 0,
|
|
12030
|
-
if (
|
|
12031
|
-
for (s = 0; s < 3 &&
|
|
12032
|
-
a[
|
|
12026
|
+
for (var r = e.replace(/[^A-Za-z0-9\+\/]/g, g.EMPTY_STRING), o = r.length, i = t ? Math.ceil((o * 3 + 1 >>> 2) / t) * t : o * 3 + 1 >>> 2, a = new Uint8Array(i), s = void 0, u = void 0, p = 0, d = 0, f = 0; f < o; f++)
|
|
12027
|
+
if (u = f & 3, p |= this.b64ToUint6(r.charCodeAt(f)) << 18 - 6 * u, u === 3 || o - f === 1) {
|
|
12028
|
+
for (s = 0; s < 3 && d < i; s++, d++)
|
|
12029
|
+
a[d] = p >>> (16 >>> s & 24) & 255;
|
|
12033
12030
|
p = 0;
|
|
12034
12031
|
}
|
|
12035
12032
|
return a;
|
|
@@ -12188,10 +12185,10 @@ var la = (
|
|
|
12188
12185
|
return I(this, function(o) {
|
|
12189
12186
|
return [2, new Promise(function(i, a) {
|
|
12190
12187
|
var s = window.msCrypto.subtle.generateKey(e, t, r);
|
|
12191
|
-
s.addEventListener("complete", function(
|
|
12192
|
-
i(
|
|
12193
|
-
}), s.addEventListener("error", function(
|
|
12194
|
-
a(
|
|
12188
|
+
s.addEventListener("complete", function(u) {
|
|
12189
|
+
i(u.target.result);
|
|
12190
|
+
}), s.addEventListener("error", function(u) {
|
|
12191
|
+
a(u);
|
|
12195
12192
|
});
|
|
12196
12193
|
})];
|
|
12197
12194
|
});
|
|
@@ -12202,9 +12199,9 @@ var la = (
|
|
|
12202
12199
|
return [2, new Promise(function(r, o) {
|
|
12203
12200
|
var i = window.msCrypto.subtle.exportKey(xt, e);
|
|
12204
12201
|
i.addEventListener("complete", function(a) {
|
|
12205
|
-
var s = a.target.result,
|
|
12202
|
+
var s = a.target.result, u = ct.utf8ArrToString(new Uint8Array(s)).replace(/\r/g, g.EMPTY_STRING).replace(/\n/g, g.EMPTY_STRING).replace(/\t/g, g.EMPTY_STRING).split(" ").join(g.EMPTY_STRING).replace("\0", g.EMPTY_STRING);
|
|
12206
12203
|
try {
|
|
12207
|
-
r(JSON.parse(
|
|
12204
|
+
r(JSON.parse(u));
|
|
12208
12205
|
} catch (p) {
|
|
12209
12206
|
o(p);
|
|
12210
12207
|
}
|
|
@@ -12218,11 +12215,11 @@ var la = (
|
|
|
12218
12215
|
return T(this, void 0, void 0, function() {
|
|
12219
12216
|
var i, a;
|
|
12220
12217
|
return I(this, function(s) {
|
|
12221
|
-
return i = ct.getSortedObjectString(e), a = ct.stringToArrayBuffer(i), [2, new Promise(function(
|
|
12222
|
-
var
|
|
12223
|
-
|
|
12224
|
-
|
|
12225
|
-
}),
|
|
12218
|
+
return i = ct.getSortedObjectString(e), a = ct.stringToArrayBuffer(i), [2, new Promise(function(u, p) {
|
|
12219
|
+
var d = window.msCrypto.subtle.importKey(xt, a, t, r, o);
|
|
12220
|
+
d.addEventListener("complete", function(f) {
|
|
12221
|
+
u(f.target.result);
|
|
12222
|
+
}), d.addEventListener("error", function(f) {
|
|
12226
12223
|
p(f);
|
|
12227
12224
|
});
|
|
12228
12225
|
})];
|
|
@@ -12233,10 +12230,10 @@ var la = (
|
|
|
12233
12230
|
return I(this, function(o) {
|
|
12234
12231
|
return [2, new Promise(function(i, a) {
|
|
12235
12232
|
var s = window.msCrypto.subtle.sign(e, t, r);
|
|
12236
|
-
s.addEventListener("complete", function(
|
|
12237
|
-
i(
|
|
12238
|
-
}), s.addEventListener("error", function(
|
|
12239
|
-
a(
|
|
12233
|
+
s.addEventListener("complete", function(u) {
|
|
12234
|
+
i(u.target.result);
|
|
12235
|
+
}), s.addEventListener("error", function(u) {
|
|
12236
|
+
a(u);
|
|
12240
12237
|
});
|
|
12241
12238
|
})];
|
|
12242
12239
|
});
|
|
@@ -12258,7 +12255,7 @@ var la = (
|
|
|
12258
12255
|
}()
|
|
12259
12256
|
);
|
|
12260
12257
|
/*! @azure/msal-browser v2.38.3 2023-10-27 */
|
|
12261
|
-
var
|
|
12258
|
+
var ua = "RSASSA-PKCS1-v1_5", xr = "SHA-256", da = 2048, pa = new Uint8Array([1, 0, 1]), mo = (
|
|
12262
12259
|
/** @class */
|
|
12263
12260
|
function() {
|
|
12264
12261
|
function n(e, t) {
|
|
@@ -12277,9 +12274,9 @@ var da = "RSASSA-PKCS1-v1_5", xr = "SHA-256", ua = 2048, pa = new Uint8Array([1,
|
|
|
12277
12274
|
this.logger.verbose("BrowserCrypto: Entropy provided"), this.subtleCrypto.initPrng(this.cryptoOptions.entropy);
|
|
12278
12275
|
}
|
|
12279
12276
|
this.keygenAlgorithmOptions = {
|
|
12280
|
-
name:
|
|
12277
|
+
name: ua,
|
|
12281
12278
|
hash: xr,
|
|
12282
|
-
modulusLength:
|
|
12279
|
+
modulusLength: da,
|
|
12283
12280
|
publicExponent: pa
|
|
12284
12281
|
};
|
|
12285
12282
|
}
|
|
@@ -12380,11 +12377,11 @@ var ha = (
|
|
|
12380
12377
|
return r.sent(), [2, new Promise(function(o, i) {
|
|
12381
12378
|
if (!t.db)
|
|
12382
12379
|
return i(M.createDatabaseNotOpenError());
|
|
12383
|
-
var a = t.db.transaction([t.tableName], "readonly"), s = a.objectStore(t.tableName),
|
|
12384
|
-
|
|
12385
|
-
var
|
|
12386
|
-
t.closeConnection(), o(
|
|
12387
|
-
}),
|
|
12380
|
+
var a = t.db.transaction([t.tableName], "readonly"), s = a.objectStore(t.tableName), u = s.get(e);
|
|
12381
|
+
u.addEventListener("success", function(p) {
|
|
12382
|
+
var d = p;
|
|
12383
|
+
t.closeConnection(), o(d.target.result);
|
|
12384
|
+
}), u.addEventListener("error", function(p) {
|
|
12388
12385
|
t.closeConnection(), i(p);
|
|
12389
12386
|
});
|
|
12390
12387
|
})];
|
|
@@ -12402,11 +12399,11 @@ var ha = (
|
|
|
12402
12399
|
return o.sent(), [2, new Promise(function(i, a) {
|
|
12403
12400
|
if (!r.db)
|
|
12404
12401
|
return a(M.createDatabaseNotOpenError());
|
|
12405
|
-
var s = r.db.transaction([r.tableName], "readwrite"),
|
|
12402
|
+
var s = r.db.transaction([r.tableName], "readwrite"), u = s.objectStore(r.tableName), p = u.put(t, e);
|
|
12406
12403
|
p.addEventListener("success", function() {
|
|
12407
12404
|
r.closeConnection(), i();
|
|
12408
|
-
}), p.addEventListener("error", function(
|
|
12409
|
-
r.closeConnection(), a(
|
|
12405
|
+
}), p.addEventListener("error", function(d) {
|
|
12406
|
+
r.closeConnection(), a(d);
|
|
12410
12407
|
});
|
|
12411
12408
|
})];
|
|
12412
12409
|
}
|
|
@@ -12423,10 +12420,10 @@ var ha = (
|
|
|
12423
12420
|
return r.sent(), [2, new Promise(function(o, i) {
|
|
12424
12421
|
if (!t.db)
|
|
12425
12422
|
return i(M.createDatabaseNotOpenError());
|
|
12426
|
-
var a = t.db.transaction([t.tableName], "readwrite"), s = a.objectStore(t.tableName),
|
|
12427
|
-
|
|
12423
|
+
var a = t.db.transaction([t.tableName], "readwrite"), s = a.objectStore(t.tableName), u = s.delete(e);
|
|
12424
|
+
u.addEventListener("success", function() {
|
|
12428
12425
|
t.closeConnection(), o();
|
|
12429
|
-
}),
|
|
12426
|
+
}), u.addEventListener("error", function(p) {
|
|
12430
12427
|
t.closeConnection(), i(p);
|
|
12431
12428
|
});
|
|
12432
12429
|
})];
|
|
@@ -12445,11 +12442,11 @@ var ha = (
|
|
|
12445
12442
|
if (!e.db)
|
|
12446
12443
|
return o(M.createDatabaseNotOpenError());
|
|
12447
12444
|
var i = e.db.transaction([e.tableName], "readonly"), a = i.objectStore(e.tableName), s = a.getAllKeys();
|
|
12448
|
-
s.addEventListener("success", function(
|
|
12449
|
-
var p =
|
|
12445
|
+
s.addEventListener("success", function(u) {
|
|
12446
|
+
var p = u;
|
|
12450
12447
|
e.closeConnection(), r(p.target.result);
|
|
12451
|
-
}), s.addEventListener("error", function(
|
|
12452
|
-
e.closeConnection(), o(
|
|
12448
|
+
}), s.addEventListener("error", function(u) {
|
|
12449
|
+
e.closeConnection(), o(u);
|
|
12453
12450
|
});
|
|
12454
12451
|
})];
|
|
12455
12452
|
}
|
|
@@ -12466,11 +12463,11 @@ var ha = (
|
|
|
12466
12463
|
return r.sent(), [2, new Promise(function(o, i) {
|
|
12467
12464
|
if (!t.db)
|
|
12468
12465
|
return i(M.createDatabaseNotOpenError());
|
|
12469
|
-
var a = t.db.transaction([t.tableName], "readonly"), s = a.objectStore(t.tableName),
|
|
12470
|
-
|
|
12471
|
-
var
|
|
12472
|
-
t.closeConnection(), o(
|
|
12473
|
-
}),
|
|
12466
|
+
var a = t.db.transaction([t.tableName], "readonly"), s = a.objectStore(t.tableName), u = s.count(e);
|
|
12467
|
+
u.addEventListener("success", function(p) {
|
|
12468
|
+
var d = p;
|
|
12469
|
+
t.closeConnection(), o(d.target.result === 1);
|
|
12470
|
+
}), u.addEventListener("error", function(p) {
|
|
12474
12471
|
t.closeConnection(), i(p);
|
|
12475
12472
|
});
|
|
12476
12473
|
})];
|
|
@@ -12690,7 +12687,7 @@ var fa = (
|
|
|
12690
12687
|
}, n.prototype.getPublicKeyThumbprint = function(e) {
|
|
12691
12688
|
var t;
|
|
12692
12689
|
return T(this, void 0, void 0, function() {
|
|
12693
|
-
var r, o, i, a, s,
|
|
12690
|
+
var r, o, i, a, s, u, p, d;
|
|
12694
12691
|
return I(this, function(f) {
|
|
12695
12692
|
switch (f.label) {
|
|
12696
12693
|
case 0:
|
|
@@ -12704,12 +12701,12 @@ var fa = (
|
|
|
12704
12701
|
n: i.n
|
|
12705
12702
|
}, s = ct.getSortedObjectString(a), [4, this.hashString(s)];
|
|
12706
12703
|
case 3:
|
|
12707
|
-
return
|
|
12704
|
+
return u = f.sent(), [4, this.browserCrypto.exportJwk(o.privateKey)];
|
|
12708
12705
|
case 4:
|
|
12709
12706
|
return p = f.sent(), [4, this.browserCrypto.importJwk(p, !1, ["sign"])];
|
|
12710
12707
|
case 5:
|
|
12711
|
-
return
|
|
12712
|
-
privateKey:
|
|
12708
|
+
return d = f.sent(), [4, this.cache.asymmetricKeys.setItem(u, {
|
|
12709
|
+
privateKey: d,
|
|
12713
12710
|
publicKey: o.publicKey,
|
|
12714
12711
|
requestMethod: e.resourceRequestMethod,
|
|
12715
12712
|
requestUri: e.resourceRequestUri
|
|
@@ -12717,7 +12714,7 @@ var fa = (
|
|
|
12717
12714
|
case 6:
|
|
12718
12715
|
return f.sent(), r && r.endMeasurement({
|
|
12719
12716
|
success: !0
|
|
12720
|
-
}), [2,
|
|
12717
|
+
}), [2, u];
|
|
12721
12718
|
}
|
|
12722
12719
|
});
|
|
12723
12720
|
});
|
|
@@ -12749,7 +12746,7 @@ var fa = (
|
|
|
12749
12746
|
}, n.prototype.signJwt = function(e, t, r) {
|
|
12750
12747
|
var o;
|
|
12751
12748
|
return T(this, void 0, void 0, function() {
|
|
12752
|
-
var i, a, s,
|
|
12749
|
+
var i, a, s, u, p, d, f, _, k, E, N, Q, X;
|
|
12753
12750
|
return I(this, function(G) {
|
|
12754
12751
|
switch (G.label) {
|
|
12755
12752
|
case 0:
|
|
@@ -12759,8 +12756,8 @@ var fa = (
|
|
|
12759
12756
|
throw M.createSigningKeyNotFoundInStorageError(t);
|
|
12760
12757
|
return [4, this.browserCrypto.exportJwk(a.publicKey)];
|
|
12761
12758
|
case 2:
|
|
12762
|
-
return s = G.sent(),
|
|
12763
|
-
jwk: JSON.parse(
|
|
12759
|
+
return s = G.sent(), u = ct.getSortedObjectString(s), p = this.b64Encode.urlEncode(JSON.stringify({ kid: t })), d = Hi.getShrHeaderString({ kid: p, alg: s.alg }), f = this.b64Encode.urlEncode(d), e.cnf = {
|
|
12760
|
+
jwk: JSON.parse(u)
|
|
12764
12761
|
}, _ = this.b64Encode.urlEncode(JSON.stringify(e)), k = f + "." + _, E = ct.stringToArrayBuffer(k), [4, this.browserCrypto.sign(a.privateKey, E)];
|
|
12765
12762
|
case 3:
|
|
12766
12763
|
return N = G.sent(), Q = this.b64Encode.urlEncodeArr(new Uint8Array(N)), X = k + "." + Q, i && i.endMeasurement({
|
|
@@ -12839,9 +12836,9 @@ var ga = (
|
|
|
12839
12836
|
/** @class */
|
|
12840
12837
|
function(n) {
|
|
12841
12838
|
be(e, n);
|
|
12842
|
-
function e(t, r, o, i, a, s,
|
|
12839
|
+
function e(t, r, o, i, a, s, u) {
|
|
12843
12840
|
var p = n.call(this, t, r, o, i, a, s) || this;
|
|
12844
|
-
return p.browserCrypto = new mo(p.logger,
|
|
12841
|
+
return p.browserCrypto = new mo(p.logger, u), p.guidGenerator = new po(p.browserCrypto), p;
|
|
12845
12842
|
}
|
|
12846
12843
|
return e.prototype.startPerformanceMeasuremeant = function(t, r) {
|
|
12847
12844
|
return new Dr(t, r);
|
|
@@ -12860,8 +12857,8 @@ var ga = (
|
|
|
12860
12857
|
}, e.prototype.startMeasurement = function(t, r) {
|
|
12861
12858
|
var o = this, i = this.getPageVisibility(), a = n.prototype.startMeasurement.call(this, t, r);
|
|
12862
12859
|
return B(B({}, a), { endMeasurement: function(s) {
|
|
12863
|
-
var
|
|
12864
|
-
return o.deleteIncompleteSubMeasurements(a),
|
|
12860
|
+
var u = a.endMeasurement(B({ startPageVisibility: i, endPageVisibility: o.getPageVisibility() }, s));
|
|
12861
|
+
return o.deleteIncompleteSubMeasurements(a), u;
|
|
12865
12862
|
}, discardMeasurement: function() {
|
|
12866
12863
|
a.discardMeasurement(), o.deleteIncompleteSubMeasurements(a), a.measurement.flushMeasurement();
|
|
12867
12864
|
} });
|
|
@@ -12887,8 +12884,8 @@ var ga = (
|
|
|
12887
12884
|
}
|
|
12888
12885
|
var a = n.prototype.getPreQueueTime.call(this, t, r);
|
|
12889
12886
|
if (a) {
|
|
12890
|
-
var s = window.performance.now(),
|
|
12891
|
-
return n.prototype.addQueueMeasurement.call(this, t, r,
|
|
12887
|
+
var s = window.performance.now(), u = o || n.prototype.calculateQueuedTime.call(this, a, s);
|
|
12888
|
+
return n.prototype.addQueueMeasurement.call(this, t, r, u, i);
|
|
12892
12889
|
}
|
|
12893
12890
|
}, e;
|
|
12894
12891
|
}(ao)
|
|
@@ -12908,14 +12905,14 @@ var _a = (
|
|
|
12908
12905
|
var s = this.loadAccount(o, e.account.environment, void 0, void 0, e.account.homeAccountId);
|
|
12909
12906
|
i = new Zt(s, this.loadIdToken(o, s.homeAccountId, e.account.environment, e.account.tenantId), this.loadAccessToken(e, t, s.homeAccountId, e.account.environment, e.account.tenantId, r), this.loadRefreshToken(e, t, s.homeAccountId, e.account.environment));
|
|
12910
12907
|
} else if (e.authority) {
|
|
12911
|
-
var
|
|
12908
|
+
var u = rn.generateAuthority(e.authority, e.azureCloudOptions), p = {
|
|
12912
12909
|
protocolMode: this.config.auth.protocolMode,
|
|
12913
12910
|
knownAuthorities: this.config.auth.knownAuthorities,
|
|
12914
12911
|
cloudDiscoveryMetadata: this.config.auth.cloudDiscoveryMetadata,
|
|
12915
12912
|
authorityMetadata: this.config.auth.authorityMetadata,
|
|
12916
12913
|
skipAuthorityMetadataCache: this.config.auth.skipAuthorityMetadataCache
|
|
12917
12914
|
};
|
|
12918
|
-
if (a = new rn(
|
|
12915
|
+
if (a = new rn(u, this.config.system.networkClient, this.storage, p, this.logger), r.clientInfo) {
|
|
12919
12916
|
this.logger.trace("TokenCache - homeAccountId from options");
|
|
12920
12917
|
var s = this.loadAccount(o, a.hostnameAndPort, r.clientInfo, a.authorityType);
|
|
12921
12918
|
i = new Zt(s, this.loadIdToken(o, s.homeAccountId, a.hostnameAndPort, a.tenant), this.loadAccessToken(e, t, s.homeAccountId, a.hostnameAndPort, a.tenant, r), this.loadRefreshToken(e, t, s.homeAccountId, a.hostnameAndPort));
|
|
@@ -12948,9 +12945,9 @@ var _a = (
|
|
|
12948
12945
|
throw M.createUnableToLoadTokenError("Please ensure server response includes expires_in value.");
|
|
12949
12946
|
if (!a.extendedExpiresOn)
|
|
12950
12947
|
throw M.createUnableToLoadTokenError("Please provide an extendedExpiresOn value in the options.");
|
|
12951
|
-
var s = new Ee(e.scopes).printScopes(),
|
|
12948
|
+
var s = new Ee(e.scopes).printScopes(), u = a.expiresOn || t.expires_in + (/* @__PURE__ */ new Date()).getTime() / 1e3, p = a.extendedExpiresOn, d = _t.createAccessTokenEntity(r, o, t.access_token, this.config.auth.clientId, i, s, u, p, this.cryptoObj);
|
|
12952
12949
|
if (this.isBrowserEnvironment)
|
|
12953
|
-
return this.logger.verbose("TokenCache - loading access token"), this.storage.setAccessTokenCredential(
|
|
12950
|
+
return this.logger.verbose("TokenCache - loading access token"), this.storage.setAccessTokenCredential(d), d;
|
|
12954
12951
|
throw M.createUnableToLoadTokenError("loadExternalTokens is designed to work in browser environments only.");
|
|
12955
12952
|
}, n.prototype.loadRefreshToken = function(e, t, r, o) {
|
|
12956
12953
|
if (!t.refresh_token)
|
|
@@ -12960,8 +12957,8 @@ var _a = (
|
|
|
12960
12957
|
return this.logger.verbose("TokenCache - loading refresh token"), this.storage.setRefreshTokenCredential(i), i;
|
|
12961
12958
|
throw M.createUnableToLoadTokenError("loadExternalTokens is designed to work in browser environments only.");
|
|
12962
12959
|
}, n.prototype.generateAuthenticationResult = function(e, t, r, o) {
|
|
12963
|
-
var i, a, s,
|
|
12964
|
-
r != null && r.accessToken && (
|
|
12960
|
+
var i, a, s, u = g.EMPTY_STRING, p = [], d = null, f;
|
|
12961
|
+
r != null && r.accessToken && (u = r.accessToken.secret, p = Ee.fromString(r.accessToken.target).asArray(), d = new Date(Number(r.accessToken.expiresOn) * 1e3), f = new Date(Number(r.accessToken.extendedExpiresOn) * 1e3));
|
|
12965
12962
|
var _ = (t == null ? void 0 : t.claims.oid) || (t == null ? void 0 : t.claims.sub) || g.EMPTY_STRING, k = (t == null ? void 0 : t.claims.tid) || g.EMPTY_STRING;
|
|
12966
12963
|
return {
|
|
12967
12964
|
authority: o ? o.canonicalAuthority : g.EMPTY_STRING,
|
|
@@ -12971,9 +12968,9 @@ var _a = (
|
|
|
12971
12968
|
account: r != null && r.account ? r.account.getAccountInfo() : null,
|
|
12972
12969
|
idToken: t ? t.rawToken : g.EMPTY_STRING,
|
|
12973
12970
|
idTokenClaims: t ? t.claims : {},
|
|
12974
|
-
accessToken:
|
|
12971
|
+
accessToken: u,
|
|
12975
12972
|
fromCache: !0,
|
|
12976
|
-
expiresOn:
|
|
12973
|
+
expiresOn: d,
|
|
12977
12974
|
correlationId: e.correlationId || g.EMPTY_STRING,
|
|
12978
12975
|
requestId: g.EMPTY_STRING,
|
|
12979
12976
|
extExpiresOn: f,
|
|
@@ -13005,32 +13002,32 @@ var ya = (
|
|
|
13005
13002
|
/** @class */
|
|
13006
13003
|
function(n) {
|
|
13007
13004
|
be(e, n);
|
|
13008
|
-
function e(t, r, o, i, a, s,
|
|
13009
|
-
var _ = n.call(this, t, r, o, i, a, s, p,
|
|
13010
|
-
return _.apiId =
|
|
13005
|
+
function e(t, r, o, i, a, s, u, p, d, f) {
|
|
13006
|
+
var _ = n.call(this, t, r, o, i, a, s, p, d, f) || this;
|
|
13007
|
+
return _.apiId = u, _;
|
|
13011
13008
|
}
|
|
13012
13009
|
return e.prototype.acquireToken = function(t) {
|
|
13013
13010
|
return T(this, void 0, void 0, function() {
|
|
13014
|
-
var r, o, i, a, s,
|
|
13015
|
-
return I(this, function(
|
|
13016
|
-
switch (
|
|
13011
|
+
var r, o, i, a, s, u, p;
|
|
13012
|
+
return I(this, function(d) {
|
|
13013
|
+
switch (d.label) {
|
|
13017
13014
|
case 0:
|
|
13018
13015
|
if (this.logger.trace("SilentAuthCodeClient.acquireToken called"), !t.code)
|
|
13019
13016
|
throw M.createAuthCodeRequiredError();
|
|
13020
13017
|
return this.performanceClient.setPreQueueTime(b.StandardInteractionClientInitializeAuthorizationRequest, t.correlationId), [4, this.initializeAuthorizationRequest(t, x.Silent)];
|
|
13021
13018
|
case 1:
|
|
13022
|
-
r =
|
|
13019
|
+
r = d.sent(), this.browserStorage.updateCacheEntries(r.state, r.nonce, r.authority, r.loginHint || g.EMPTY_STRING, r.account || null), o = this.initializeServerTelemetryManager(this.apiId), d.label = 2;
|
|
13023
13020
|
case 2:
|
|
13024
|
-
return
|
|
13021
|
+
return d.trys.push([2, 4, , 5]), i = B(B({}, r), { code: t.code }), this.performanceClient.setPreQueueTime(b.StandardInteractionClientGetClientConfiguration, t.correlationId), [4, this.getClientConfiguration(o, r.authority)];
|
|
13025
13022
|
case 3:
|
|
13026
|
-
return a =
|
|
13023
|
+
return a = d.sent(), s = new va(a), this.logger.verbose("Auth code client created"), u = new uo(s, this.browserStorage, i, this.logger, this.config.system, this.performanceClient), [2, u.handleCodeResponseFromServer({
|
|
13027
13024
|
code: t.code,
|
|
13028
13025
|
msgraph_host: t.msGraphHost,
|
|
13029
13026
|
cloud_graph_host_name: t.cloudGraphHostName,
|
|
13030
13027
|
cloud_instance_host_name: t.cloudInstanceHostName
|
|
13031
13028
|
}, r.state, s.authority, this.networkClient, !1)];
|
|
13032
13029
|
case 4:
|
|
13033
|
-
throw p =
|
|
13030
|
+
throw p = d.sent(), p instanceof D && p.setCorrelationId(this.correlationId), o.cacheFailedRequest(p), this.browserStorage.cleanRequestByState(r.state), p;
|
|
13034
13031
|
case 5:
|
|
13035
13032
|
return [
|
|
13036
13033
|
2
|
|
@@ -13094,32 +13091,32 @@ var ka = (
|
|
|
13094
13091
|
});
|
|
13095
13092
|
}, n.prototype.handleRedirectPromise = function(e) {
|
|
13096
13093
|
return T(this, void 0, void 0, function() {
|
|
13097
|
-
var t, r, o, i, a, s,
|
|
13094
|
+
var t, r, o, i, a, s, u, p, d = this;
|
|
13098
13095
|
return I(this, function(f) {
|
|
13099
|
-
return this.logger.verbose("handleRedirectPromise called"),
|
|
13096
|
+
return this.logger.verbose("handleRedirectPromise called"), de.blockNativeBrokerCalledBeforeInitialized(this.config.system.allowNativeBroker, this.initialized), t = this.getAllAccounts(), this.isBrowserEnvironment ? (r = e || g.EMPTY_STRING, o = this.redirectResponse.get(r), typeof o > "u" ? (this.eventHandler.emitEvent(q.HANDLE_REDIRECT_START, x.Redirect), this.logger.verbose("handleRedirectPromise has been called for the first time, storing the promise"), i = this.browserStorage.getCachedNativeRequest(), a = void 0, i && yt.isNativeAvailable(this.config, this.logger, this.nativeExtensionProvider) && this.nativeExtensionProvider && !e ? (this.logger.trace("handleRedirectPromise - acquiring token from native platform"), s = new Ot(this.config, this.browserStorage, this.browserCrypto, this.logger, this.eventHandler, this.navigationClient, oe.handleRedirectPromise, this.performanceClient, this.nativeExtensionProvider, i.accountId, this.nativeInternalStorage, i.correlationId), a = s.handleRedirectPromise()) : (this.logger.trace("handleRedirectPromise - acquiring token from web flow"), u = this.browserStorage.getTemporaryCache(J.CORRELATION_ID, !0) || g.EMPTY_STRING, p = this.createRedirectClient(u), a = p.handleRedirectPromise(e)), o = a.then(function(_) {
|
|
13100
13097
|
if (_) {
|
|
13101
|
-
var k = t.length <
|
|
13102
|
-
k ? (
|
|
13098
|
+
var k = t.length < d.getAllAccounts().length;
|
|
13099
|
+
k ? (d.eventHandler.emitEvent(q.LOGIN_SUCCESS, x.Redirect, _), d.logger.verbose("handleRedirectResponse returned result, login success")) : (d.eventHandler.emitEvent(q.ACQUIRE_TOKEN_SUCCESS, x.Redirect, _), d.logger.verbose("handleRedirectResponse returned result, acquire token success"));
|
|
13103
13100
|
}
|
|
13104
|
-
return
|
|
13101
|
+
return d.eventHandler.emitEvent(q.HANDLE_REDIRECT_END, x.Redirect), _;
|
|
13105
13102
|
}).catch(function(_) {
|
|
13106
|
-
throw t.length > 0 ?
|
|
13103
|
+
throw t.length > 0 ? d.eventHandler.emitEvent(q.ACQUIRE_TOKEN_FAILURE, x.Redirect, null, _) : d.eventHandler.emitEvent(q.LOGIN_FAILURE, x.Redirect, null, _), d.eventHandler.emitEvent(q.HANDLE_REDIRECT_END, x.Redirect), _;
|
|
13107
13104
|
}), this.redirectResponse.set(r, o)) : this.logger.verbose("handleRedirectPromise has been called previously, returning the result from the first call"), [2, o]) : (this.logger.verbose("handleRedirectPromise returns null, not browser environment"), [2, null]);
|
|
13108
13105
|
});
|
|
13109
13106
|
});
|
|
13110
13107
|
}, n.prototype.acquireTokenRedirect = function(e) {
|
|
13111
13108
|
return T(this, void 0, void 0, function() {
|
|
13112
13109
|
var t, r, o, i, a, s = this;
|
|
13113
|
-
return I(this, function(
|
|
13110
|
+
return I(this, function(u) {
|
|
13114
13111
|
return t = this.getRequestCorrelationId(e), this.logger.verbose("acquireTokenRedirect called", t), this.preflightBrowserEnvironmentCheck(x.Redirect), r = this.getAllAccounts().length > 0, r ? this.eventHandler.emitEvent(q.ACQUIRE_TOKEN_START, x.Redirect, e) : this.eventHandler.emitEvent(q.LOGIN_START, x.Redirect, e), this.nativeExtensionProvider && this.canUseNative(e) ? (i = new Ot(this.config, this.browserStorage, this.browserCrypto, this.logger, this.eventHandler, this.navigationClient, oe.acquireTokenRedirect, this.performanceClient, this.nativeExtensionProvider, this.getNativeAccountId(e), this.nativeInternalStorage, e.correlationId), o = i.acquireTokenRedirect(e).catch(function(p) {
|
|
13115
13112
|
if (p instanceof tt && p.isFatal()) {
|
|
13116
13113
|
s.nativeExtensionProvider = void 0;
|
|
13117
|
-
var
|
|
13118
|
-
return
|
|
13114
|
+
var d = s.createRedirectClient(e.correlationId);
|
|
13115
|
+
return d.acquireToken(e);
|
|
13119
13116
|
} else if (p instanceof Ye) {
|
|
13120
13117
|
s.logger.verbose("acquireTokenRedirect - Resolving interaction required error thrown by native broker by falling back to web flow");
|
|
13121
|
-
var
|
|
13122
|
-
return
|
|
13118
|
+
var d = s.createRedirectClient(e.correlationId);
|
|
13119
|
+
return d.acquireToken(e);
|
|
13123
13120
|
}
|
|
13124
13121
|
throw s.browserStorage.setInteractionInProgress(!1), p;
|
|
13125
13122
|
})) : (a = this.createRedirectClient(e.correlationId), o = a.acquireToken(e)), [2, o.catch(function(p) {
|
|
@@ -13131,50 +13128,50 @@ var ka = (
|
|
|
13131
13128
|
var t = this, r = this.getRequestCorrelationId(e), o = this.performanceClient.startMeasurement(b.AcquireTokenPopup, r);
|
|
13132
13129
|
try {
|
|
13133
13130
|
this.logger.verbose("acquireTokenPopup called", r), this.preflightBrowserEnvironmentCheck(x.Popup);
|
|
13134
|
-
} catch (
|
|
13135
|
-
return Promise.reject(
|
|
13131
|
+
} catch (u) {
|
|
13132
|
+
return Promise.reject(u);
|
|
13136
13133
|
}
|
|
13137
13134
|
var i = this.getAllAccounts();
|
|
13138
13135
|
i.length > 0 ? this.eventHandler.emitEvent(q.ACQUIRE_TOKEN_START, x.Popup, e) : this.eventHandler.emitEvent(q.LOGIN_START, x.Popup, e);
|
|
13139
13136
|
var a;
|
|
13140
13137
|
if (this.canUseNative(e))
|
|
13141
|
-
a = this.acquireTokenNative(e, oe.acquireTokenPopup).then(function(
|
|
13138
|
+
a = this.acquireTokenNative(e, oe.acquireTokenPopup).then(function(u) {
|
|
13142
13139
|
return t.browserStorage.setInteractionInProgress(!1), o.endMeasurement({
|
|
13143
13140
|
success: !0,
|
|
13144
13141
|
isNativeBroker: !0,
|
|
13145
|
-
requestId:
|
|
13146
|
-
}),
|
|
13147
|
-
}).catch(function(
|
|
13148
|
-
if (
|
|
13142
|
+
requestId: u.requestId
|
|
13143
|
+
}), u;
|
|
13144
|
+
}).catch(function(u) {
|
|
13145
|
+
if (u instanceof tt && u.isFatal()) {
|
|
13149
13146
|
t.nativeExtensionProvider = void 0;
|
|
13150
13147
|
var p = t.createPopupClient(e.correlationId);
|
|
13151
13148
|
return p.acquireToken(e);
|
|
13152
|
-
} else if (
|
|
13149
|
+
} else if (u instanceof Ye) {
|
|
13153
13150
|
t.logger.verbose("acquireTokenPopup - Resolving interaction required error thrown by native broker by falling back to web flow");
|
|
13154
13151
|
var p = t.createPopupClient(e.correlationId);
|
|
13155
13152
|
return p.acquireToken(e);
|
|
13156
13153
|
}
|
|
13157
|
-
throw t.browserStorage.setInteractionInProgress(!1),
|
|
13154
|
+
throw t.browserStorage.setInteractionInProgress(!1), u;
|
|
13158
13155
|
});
|
|
13159
13156
|
else {
|
|
13160
13157
|
var s = this.createPopupClient(e.correlationId);
|
|
13161
13158
|
a = s.acquireToken(e);
|
|
13162
13159
|
}
|
|
13163
|
-
return a.then(function(
|
|
13160
|
+
return a.then(function(u) {
|
|
13164
13161
|
var p = i.length < t.getAllAccounts().length;
|
|
13165
|
-
return p ? t.eventHandler.emitEvent(q.LOGIN_SUCCESS, x.Popup,
|
|
13166
|
-
accessTokenSize:
|
|
13167
|
-
idTokenSize:
|
|
13162
|
+
return p ? t.eventHandler.emitEvent(q.LOGIN_SUCCESS, x.Popup, u) : t.eventHandler.emitEvent(q.ACQUIRE_TOKEN_SUCCESS, x.Popup, u), o.addStaticFields({
|
|
13163
|
+
accessTokenSize: u.accessToken.length,
|
|
13164
|
+
idTokenSize: u.idToken.length
|
|
13168
13165
|
}), o.endMeasurement({
|
|
13169
13166
|
success: !0,
|
|
13170
|
-
requestId:
|
|
13171
|
-
}),
|
|
13172
|
-
}).catch(function(
|
|
13173
|
-
return i.length > 0 ? t.eventHandler.emitEvent(q.ACQUIRE_TOKEN_FAILURE, x.Popup, null,
|
|
13174
|
-
errorCode:
|
|
13175
|
-
subErrorCode:
|
|
13167
|
+
requestId: u.requestId
|
|
13168
|
+
}), u;
|
|
13169
|
+
}).catch(function(u) {
|
|
13170
|
+
return i.length > 0 ? t.eventHandler.emitEvent(q.ACQUIRE_TOKEN_FAILURE, x.Popup, null, u) : t.eventHandler.emitEvent(q.LOGIN_FAILURE, x.Popup, null, u), o.endMeasurement({
|
|
13171
|
+
errorCode: u.errorCode,
|
|
13172
|
+
subErrorCode: u.subError,
|
|
13176
13173
|
success: !1
|
|
13177
|
-
}), Promise.reject(
|
|
13174
|
+
}), Promise.reject(u);
|
|
13178
13175
|
});
|
|
13179
13176
|
}, n.prototype.trackPageVisibilityWithMeasurement = function() {
|
|
13180
13177
|
var e = this.ssoSilentMeasurement || this.acquireTokenByCodeAsyncMeasurement;
|
|
@@ -13185,7 +13182,7 @@ var ka = (
|
|
|
13185
13182
|
var t;
|
|
13186
13183
|
return T(this, void 0, void 0, function() {
|
|
13187
13184
|
var r, o, i, a, s = this;
|
|
13188
|
-
return I(this, function(
|
|
13185
|
+
return I(this, function(u) {
|
|
13189
13186
|
return r = this.getRequestCorrelationId(e), o = B(B({}, e), {
|
|
13190
13187
|
// will be PromptValue.NONE or PromptValue.NO_SESSION
|
|
13191
13188
|
prompt: e.prompt,
|
|
@@ -13195,13 +13192,13 @@ var ka = (
|
|
|
13195
13192
|
}), document.addEventListener("visibilitychange", this.trackPageVisibilityWithMeasurement), this.logger.verbose("ssoSilent called", r), this.eventHandler.emitEvent(q.SSO_SILENT_START, x.Silent, o), this.canUseNative(o) ? i = this.acquireTokenNative(o, oe.ssoSilent).catch(function(p) {
|
|
13196
13193
|
if (p instanceof tt && p.isFatal()) {
|
|
13197
13194
|
s.nativeExtensionProvider = void 0;
|
|
13198
|
-
var
|
|
13199
|
-
return
|
|
13195
|
+
var d = s.createSilentIframeClient(o.correlationId);
|
|
13196
|
+
return d.acquireToken(o);
|
|
13200
13197
|
}
|
|
13201
13198
|
throw p;
|
|
13202
13199
|
}) : (a = this.createSilentIframeClient(o.correlationId), i = a.acquireToken(o)), [2, i.then(function(p) {
|
|
13203
|
-
var
|
|
13204
|
-
return s.eventHandler.emitEvent(q.SSO_SILENT_SUCCESS, x.Silent, p), (
|
|
13200
|
+
var d, f;
|
|
13201
|
+
return s.eventHandler.emitEvent(q.SSO_SILENT_SUCCESS, x.Silent, p), (d = s.ssoSilentMeasurement) === null || d === void 0 || d.addStaticFields({
|
|
13205
13202
|
accessTokenSize: p.accessToken.length,
|
|
13206
13203
|
idTokenSize: p.idToken.length
|
|
13207
13204
|
}), (f = s.ssoSilentMeasurement) === null || f === void 0 || f.endMeasurement({
|
|
@@ -13210,8 +13207,8 @@ var ka = (
|
|
|
13210
13207
|
requestId: p.requestId
|
|
13211
13208
|
}), p;
|
|
13212
13209
|
}).catch(function(p) {
|
|
13213
|
-
var
|
|
13214
|
-
throw s.eventHandler.emitEvent(q.SSO_SILENT_FAILURE, x.Silent, null, p), (
|
|
13210
|
+
var d;
|
|
13211
|
+
throw s.eventHandler.emitEvent(q.SSO_SILENT_FAILURE, x.Silent, null, p), (d = s.ssoSilentMeasurement) === null || d === void 0 || d.endMeasurement({
|
|
13215
13212
|
errorCode: p.errorCode,
|
|
13216
13213
|
subErrorCode: p.subError,
|
|
13217
13214
|
success: !1
|
|
@@ -13230,36 +13227,36 @@ var ka = (
|
|
|
13230
13227
|
if (e.code && e.nativeAccountId)
|
|
13231
13228
|
throw M.createSpaCodeAndNativeAccountIdPresentError();
|
|
13232
13229
|
if (e.code)
|
|
13233
|
-
return o = e.code, i = this.hybridAuthCodeResponses.get(o), i ? (this.logger.verbose("Existing acquireTokenByCode request found", e.correlationId), r.discardMeasurement()) : (this.logger.verbose("Initiating new acquireTokenByCode request", t), i = this.acquireTokenByCodeAsync(B(B({}, e), { correlationId: t })).then(function(
|
|
13234
|
-
return a.eventHandler.emitEvent(q.ACQUIRE_TOKEN_BY_CODE_SUCCESS, x.Silent,
|
|
13235
|
-
accessTokenSize:
|
|
13236
|
-
idTokenSize:
|
|
13230
|
+
return o = e.code, i = this.hybridAuthCodeResponses.get(o), i ? (this.logger.verbose("Existing acquireTokenByCode request found", e.correlationId), r.discardMeasurement()) : (this.logger.verbose("Initiating new acquireTokenByCode request", t), i = this.acquireTokenByCodeAsync(B(B({}, e), { correlationId: t })).then(function(u) {
|
|
13231
|
+
return a.eventHandler.emitEvent(q.ACQUIRE_TOKEN_BY_CODE_SUCCESS, x.Silent, u), a.hybridAuthCodeResponses.delete(o), r.addStaticFields({
|
|
13232
|
+
accessTokenSize: u.accessToken.length,
|
|
13233
|
+
idTokenSize: u.idToken.length
|
|
13237
13234
|
}), r.endMeasurement({
|
|
13238
13235
|
success: !0,
|
|
13239
|
-
isNativeBroker:
|
|
13240
|
-
requestId:
|
|
13241
|
-
}),
|
|
13242
|
-
}).catch(function(
|
|
13243
|
-
throw a.hybridAuthCodeResponses.delete(o), a.eventHandler.emitEvent(q.ACQUIRE_TOKEN_BY_CODE_FAILURE, x.Silent, null,
|
|
13244
|
-
errorCode:
|
|
13245
|
-
subErrorCode:
|
|
13236
|
+
isNativeBroker: u.fromNativeBroker,
|
|
13237
|
+
requestId: u.requestId
|
|
13238
|
+
}), u;
|
|
13239
|
+
}).catch(function(u) {
|
|
13240
|
+
throw a.hybridAuthCodeResponses.delete(o), a.eventHandler.emitEvent(q.ACQUIRE_TOKEN_BY_CODE_FAILURE, x.Silent, null, u), r.endMeasurement({
|
|
13241
|
+
errorCode: u.errorCode,
|
|
13242
|
+
subErrorCode: u.subError,
|
|
13246
13243
|
success: !1
|
|
13247
|
-
}),
|
|
13244
|
+
}), u;
|
|
13248
13245
|
}), this.hybridAuthCodeResponses.set(o, i)), [2, i];
|
|
13249
13246
|
if (e.nativeAccountId) {
|
|
13250
13247
|
if (this.canUseNative(e, e.nativeAccountId))
|
|
13251
|
-
return [2, this.acquireTokenNative(e, oe.acquireTokenByCode, e.nativeAccountId).catch(function(
|
|
13252
|
-
throw
|
|
13248
|
+
return [2, this.acquireTokenNative(e, oe.acquireTokenByCode, e.nativeAccountId).catch(function(u) {
|
|
13249
|
+
throw u instanceof tt && u.isFatal() && (a.nativeExtensionProvider = void 0), u;
|
|
13253
13250
|
})];
|
|
13254
13251
|
throw M.createUnableToAcquireTokenFromNativePlatformError();
|
|
13255
13252
|
} else
|
|
13256
13253
|
throw M.createAuthCodeOrNativeAccountIdRequiredError();
|
|
13257
|
-
} catch (
|
|
13258
|
-
throw this.eventHandler.emitEvent(q.ACQUIRE_TOKEN_BY_CODE_FAILURE, x.Silent, null,
|
|
13259
|
-
errorCode:
|
|
13260
|
-
subErrorCode:
|
|
13254
|
+
} catch (u) {
|
|
13255
|
+
throw this.eventHandler.emitEvent(q.ACQUIRE_TOKEN_BY_CODE_FAILURE, x.Silent, null, u), r.endMeasurement({
|
|
13256
|
+
errorCode: u instanceof D && u.errorCode || void 0,
|
|
13257
|
+
subErrorCode: u instanceof D && u.subError || void 0,
|
|
13261
13258
|
success: !1
|
|
13262
|
-
}),
|
|
13259
|
+
}), u;
|
|
13263
13260
|
}
|
|
13264
13261
|
return [
|
|
13265
13262
|
2
|
|
@@ -13277,16 +13274,16 @@ var ka = (
|
|
|
13277
13274
|
return this.logger.trace("acquireTokenByCodeAsync called", e.correlationId), this.acquireTokenByCodeAsyncMeasurement = this.performanceClient.startMeasurement(b.AcquireTokenByCodeAsync, e.correlationId), (t = this.acquireTokenByCodeAsyncMeasurement) === null || t === void 0 || t.increment({
|
|
13278
13275
|
visibilityChangeCount: 0
|
|
13279
13276
|
}), document.addEventListener("visibilitychange", this.trackPageVisibilityWithMeasurement), r = this.createSilentAuthCodeClient(e.correlationId), [4, r.acquireToken(e).then(function(s) {
|
|
13280
|
-
var
|
|
13281
|
-
return (
|
|
13277
|
+
var u;
|
|
13278
|
+
return (u = i.acquireTokenByCodeAsyncMeasurement) === null || u === void 0 || u.endMeasurement({
|
|
13282
13279
|
success: !0,
|
|
13283
13280
|
fromCache: s.fromCache,
|
|
13284
13281
|
isNativeBroker: s.fromNativeBroker,
|
|
13285
13282
|
requestId: s.requestId
|
|
13286
13283
|
}), s;
|
|
13287
13284
|
}).catch(function(s) {
|
|
13288
|
-
var
|
|
13289
|
-
throw (
|
|
13285
|
+
var u;
|
|
13286
|
+
throw (u = i.acquireTokenByCodeAsyncMeasurement) === null || u === void 0 || u.endMeasurement({
|
|
13290
13287
|
errorCode: s.errorCode,
|
|
13291
13288
|
subErrorCode: s.subError,
|
|
13292
13289
|
success: !1
|
|
@@ -13387,11 +13384,11 @@ var ka = (
|
|
|
13387
13384
|
}, n.prototype.getActiveAccount = function() {
|
|
13388
13385
|
return this.browserStorage.getActiveAccount();
|
|
13389
13386
|
}, n.prototype.preflightBrowserEnvironmentCheck = function(e, t) {
|
|
13390
|
-
if (t === void 0 && (t = !0), this.logger.verbose("preflightBrowserEnvironmentCheck started"),
|
|
13387
|
+
if (t === void 0 && (t = !0), this.logger.verbose("preflightBrowserEnvironmentCheck started"), de.blockNonBrowserEnvironment(this.isBrowserEnvironment), de.blockRedirectInIframe(e, this.config.system.allowRedirectInIframe), de.blockReloadInHiddenIframes(), de.blockAcquireTokenInPopups(), de.blockNativeBrokerCalledBeforeInitialized(this.config.system.allowNativeBroker, this.initialized), e === x.Redirect && this.config.cache.cacheLocation === pe.MemoryStorage && !this.config.cache.storeAuthStateInCookie)
|
|
13391
13388
|
throw En.createInMemoryRedirectUnavailableError();
|
|
13392
13389
|
(e === x.Redirect || e === x.Popup) && this.preflightInteractiveRequest(t);
|
|
13393
13390
|
}, n.prototype.preflightInteractiveRequest = function(e) {
|
|
13394
|
-
this.logger.verbose("preflightInteractiveRequest called, validating app environment"),
|
|
13391
|
+
this.logger.verbose("preflightInteractiveRequest called, validating app environment"), de.blockReloadInHiddenIframes(), e && this.browserStorage.setInteractionInProgress(!0);
|
|
13395
13392
|
}, n.prototype.acquireTokenNative = function(e, t, r) {
|
|
13396
13393
|
return T(this, void 0, void 0, function() {
|
|
13397
13394
|
var o;
|
|
@@ -13480,7 +13477,7 @@ var wa = (
|
|
|
13480
13477
|
return this.logger.verbose("loginPopup called", r), this.acquireTokenPopup(B({ correlationId: r }, t || Lr));
|
|
13481
13478
|
}, e.prototype.acquireTokenSilent = function(t) {
|
|
13482
13479
|
return T(this, void 0, void 0, function() {
|
|
13483
|
-
var r, o, i, a, s,
|
|
13480
|
+
var r, o, i, a, s, u, p, d = this;
|
|
13484
13481
|
return I(this, function(f) {
|
|
13485
13482
|
if (r = this.getRequestCorrelationId(t), o = this.performanceClient.startMeasurement(b.AcquireTokenSilent, r), o.addStaticFields({
|
|
13486
13483
|
cacheLookupPolicy: t.cacheLookupPolicy
|
|
@@ -13497,8 +13494,8 @@ var wa = (
|
|
|
13497
13494
|
resourceRequestUri: t.resourceRequestUri,
|
|
13498
13495
|
shrClaims: t.shrClaims,
|
|
13499
13496
|
sshKid: t.sshKid
|
|
13500
|
-
}, s = JSON.stringify(a),
|
|
13501
|
-
return
|
|
13497
|
+
}, s = JSON.stringify(a), u = this.activeSilentTokenRequests.get(s), typeof u > "u" ? (this.logger.verbose("acquireTokenSilent called for the first time, storing active request", r), this.performanceClient.setPreQueueTime(b.AcquireTokenSilentAsync, r), p = this.acquireTokenSilentAsync(B(B({}, t), { correlationId: r }), i).then(function(_) {
|
|
13498
|
+
return d.activeSilentTokenRequests.delete(s), o.addStaticFields({
|
|
13502
13499
|
accessTokenSize: _.accessToken.length,
|
|
13503
13500
|
idTokenSize: _.idToken.length
|
|
13504
13501
|
}), o.endMeasurement({
|
|
@@ -13509,12 +13506,12 @@ var wa = (
|
|
|
13509
13506
|
requestId: _.requestId
|
|
13510
13507
|
}), _;
|
|
13511
13508
|
}).catch(function(_) {
|
|
13512
|
-
throw
|
|
13509
|
+
throw d.activeSilentTokenRequests.delete(s), o.endMeasurement({
|
|
13513
13510
|
errorCode: _.errorCode,
|
|
13514
13511
|
subErrorCode: _.subError,
|
|
13515
13512
|
success: !1
|
|
13516
13513
|
}), _;
|
|
13517
|
-
}), this.activeSilentTokenRequests.set(s, p), [2, p]) : (this.logger.verbose("acquireTokenSilent has been called previously, returning the result from the first call", r), o.discardMeasurement(), [2,
|
|
13514
|
+
}), this.activeSilentTokenRequests.set(s, p), [2, p]) : (this.logger.verbose("acquireTokenSilent has been called previously, returning the result from the first call", r), o.discardMeasurement(), [2, u]);
|
|
13518
13515
|
});
|
|
13519
13516
|
});
|
|
13520
13517
|
}, e.prototype.trackPageVisibility = function() {
|
|
@@ -13524,14 +13521,14 @@ var wa = (
|
|
|
13524
13521
|
}, e.prototype.acquireTokenSilentAsync = function(t, r) {
|
|
13525
13522
|
var o;
|
|
13526
13523
|
return T(this, void 0, void 0, function() {
|
|
13527
|
-
var i, a, s,
|
|
13524
|
+
var i, a, s, u, p, d = this;
|
|
13528
13525
|
return I(this, function(f) {
|
|
13529
13526
|
switch (f.label) {
|
|
13530
13527
|
case 0:
|
|
13531
13528
|
return this.performanceClient.addQueueMeasurement(b.AcquireTokenSilentAsync, t.correlationId), this.eventHandler.emitEvent(q.ACQUIRE_TOKEN_START, x.Silent, t), this.astsAsyncMeasurement = this.performanceClient.startMeasurement(b.AcquireTokenSilentAsync, t.correlationId), (o = this.astsAsyncMeasurement) === null || o === void 0 || o.increment({
|
|
13532
13529
|
visibilityChangeCount: 0
|
|
13533
13530
|
}), document.addEventListener("visibilitychange", this.trackPageVisibility), yt.isNativeAvailable(this.config, this.logger, this.nativeExtensionProvider, t.authenticationScheme) && r.nativeAccountId ? (this.logger.verbose("acquireTokenSilent - attempting to acquire token from native platform"), a = B(B({}, t), { account: r }), i = this.acquireTokenNative(a, oe.acquireTokenSilent_silentFlow).catch(function(_) {
|
|
13534
|
-
return T(
|
|
13531
|
+
return T(d, void 0, void 0, function() {
|
|
13535
13532
|
var k;
|
|
13536
13533
|
return I(this, function(E) {
|
|
13537
13534
|
if (_ instanceof tt && _.isFatal())
|
|
@@ -13543,23 +13540,23 @@ var wa = (
|
|
|
13543
13540
|
case 1:
|
|
13544
13541
|
return this.logger.verbose("acquireTokenSilent - attempting to acquire token from web flow"), s = this.createSilentCacheClient(t.correlationId), this.performanceClient.setPreQueueTime(b.InitializeSilentRequest, t.correlationId), [4, s.initializeSilentRequest(t, r)];
|
|
13545
13542
|
case 2:
|
|
13546
|
-
|
|
13543
|
+
u = f.sent(), p = B(B({}, t), {
|
|
13547
13544
|
// set the request's CacheLookupPolicy to Default if it was not optionally passed in
|
|
13548
13545
|
cacheLookupPolicy: t.cacheLookupPolicy || Le.Default
|
|
13549
|
-
}), this.performanceClient.setPreQueueTime(b.AcquireTokenFromCache,
|
|
13546
|
+
}), this.performanceClient.setPreQueueTime(b.AcquireTokenFromCache, u.correlationId), i = this.acquireTokenFromCache(s, u, p).catch(function(_) {
|
|
13550
13547
|
if (p.cacheLookupPolicy === Le.AccessToken)
|
|
13551
13548
|
throw _;
|
|
13552
|
-
return
|
|
13549
|
+
return de.blockReloadInHiddenIframes(), d.eventHandler.emitEvent(q.ACQUIRE_TOKEN_NETWORK_START, x.Silent, u), d.performanceClient.setPreQueueTime(b.AcquireTokenByRefreshToken, u.correlationId), d.acquireTokenByRefreshToken(u, p).catch(function(k) {
|
|
13553
13550
|
var E = k instanceof bt, N = k instanceof Ye, Q = k.errorCode === Mt.noTokensFoundError.code, X = k.errorCode === Qe.INVALID_GRANT_ERROR;
|
|
13554
13551
|
if ((!E || !X || N || p.cacheLookupPolicy === Le.AccessTokenAndRefreshToken || p.cacheLookupPolicy === Le.RefreshToken) && p.cacheLookupPolicy !== Le.Skip && !Q)
|
|
13555
13552
|
throw k;
|
|
13556
|
-
return
|
|
13553
|
+
return d.logger.verbose("Refresh token expired/invalid or CacheLookupPolicy is set to Skip, attempting acquire token by iframe.", t.correlationId), d.performanceClient.setPreQueueTime(b.AcquireTokenBySilentIframe, u.correlationId), d.acquireTokenBySilentIframe(u);
|
|
13557
13554
|
});
|
|
13558
13555
|
}), f.label = 3;
|
|
13559
13556
|
case 3:
|
|
13560
13557
|
return [2, i.then(function(_) {
|
|
13561
13558
|
var k;
|
|
13562
|
-
return
|
|
13559
|
+
return d.eventHandler.emitEvent(q.ACQUIRE_TOKEN_SUCCESS, x.Silent, _), (k = d.astsAsyncMeasurement) === null || k === void 0 || k.endMeasurement({
|
|
13563
13560
|
success: !0,
|
|
13564
13561
|
fromCache: _.fromCache,
|
|
13565
13562
|
isNativeBroker: _.fromNativeBroker,
|
|
@@ -13567,13 +13564,13 @@ var wa = (
|
|
|
13567
13564
|
}), _;
|
|
13568
13565
|
}).catch(function(_) {
|
|
13569
13566
|
var k;
|
|
13570
|
-
throw
|
|
13567
|
+
throw d.eventHandler.emitEvent(q.ACQUIRE_TOKEN_FAILURE, x.Silent, null, _), (k = d.astsAsyncMeasurement) === null || k === void 0 || k.endMeasurement({
|
|
13571
13568
|
errorCode: _.errorCode,
|
|
13572
13569
|
subErrorCode: _.subError,
|
|
13573
13570
|
success: !1
|
|
13574
13571
|
}), _;
|
|
13575
13572
|
}).finally(function() {
|
|
13576
|
-
document.removeEventListener("visibilitychange",
|
|
13573
|
+
document.removeEventListener("visibilitychange", d.trackPageVisibility);
|
|
13577
13574
|
})];
|
|
13578
13575
|
}
|
|
13579
13576
|
});
|
|
@@ -13666,18 +13663,18 @@ const An = {
|
|
|
13666
13663
|
if (t)
|
|
13667
13664
|
return console.log("Error: " + JSON.stringify(t)), this.microsoftLoad = !1;
|
|
13668
13665
|
if (this.referral && (r.ref = this.referral), this.display === "popup" && (r.response_type = "code"), r && (r.accessToken || r.idToken)) {
|
|
13669
|
-
const [s,
|
|
13666
|
+
const [s, u] = await ne(
|
|
13670
13667
|
Ne.microsoftSDK(r, this.$storage)
|
|
13671
13668
|
);
|
|
13672
13669
|
if (s)
|
|
13673
13670
|
return this.microsoftLoad = !1, this.microsoftSSOLoad = !1, z.$emit("ssoEvent", { name: "setLoading", data: !1 }), this.errorHandler(s);
|
|
13674
|
-
if (
|
|
13671
|
+
if (u.data.success) {
|
|
13675
13672
|
if (this.display === "popup")
|
|
13676
13673
|
return (a = window.parent) == null ? void 0 : a.postMessage(
|
|
13677
|
-
{ code:
|
|
13674
|
+
{ code: u.data.auth_code, state: this.$route.query.state },
|
|
13678
13675
|
"*"
|
|
13679
13676
|
);
|
|
13680
|
-
await this.loginSetup(
|
|
13677
|
+
await this.loginSetup(u), await this.getLoggedInAccounts(), this.loginSuccess({ ...u, isModal: this.isModal }), setTimeout(() => {
|
|
13681
13678
|
this.microsoftLoad = !1, this.microsoftSSOLoad = !1;
|
|
13682
13679
|
}, 1e3);
|
|
13683
13680
|
} else
|
|
@@ -13704,7 +13701,7 @@ const An = {
|
|
|
13704
13701
|
},
|
|
13705
13702
|
compareLangKeys() {
|
|
13706
13703
|
const n = Object.keys(Fr.default.state), e = Object.keys(jr.default.state), t = Object.keys(Kr.default.state), r = Object.keys(Wr.default.state), o = Object.keys(Vr.default.state), i = Object.keys(Gr.default.state), a = Object.keys(Qr.default.state), s = Object.keys(Yr.default.state);
|
|
13707
|
-
console.log("In en but not in de", n.filter((
|
|
13704
|
+
console.log("In en but not in de", n.filter((u) => !e.includes(u))), console.log("In de but not in en", e.filter((u) => !n.includes(u))), console.log(), console.log("In en but not in es", n.filter((u) => !t.includes(u))), console.log("In es but not in en", t.filter((u) => !n.includes(u))), console.log(), console.log("In en but not in kr", n.filter((u) => !r.includes(u))), console.log("In kr but not in en", r.filter((u) => !n.includes(u))), console.log(), console.log("In en but not in it", n.filter((u) => !o.includes(u))), console.log("In it but not in en", o.filter((u) => !n.includes(u))), console.log(), console.log("In en but not in fr", n.filter((u) => !i.includes(u))), console.log("In fr but not in en", i.filter((u) => !n.includes(u))), console.log(), console.log("In en but not in sr", n.filter((u) => !a.includes(u))), console.log("In sr but not in en", a.filter((u) => !n.includes(u))), console.log(), console.log("In en but not in tr", n.filter((u) => !s.includes(u))), console.log("In tr but not in en", s.filter((u) => !n.includes(u))), console.log();
|
|
13708
13705
|
},
|
|
13709
13706
|
base64ImageToBlob(n) {
|
|
13710
13707
|
const e = n.split(";base64,"), t = e[0].split(":")[1], r = window.atob(e[1]), o = new Uint8Array(r.length);
|
|
@@ -13738,8 +13735,8 @@ const An = {
|
|
|
13738
13735
|
cropCardScan(n, e) {
|
|
13739
13736
|
const t = new window.Image(), r = document.createElement("canvas"), o = r.getContext("2d");
|
|
13740
13737
|
t.src = "data:image/jpeg;base64," + n, t.onload = () => {
|
|
13741
|
-
const i = t.width, a = t.width / 1.65, s = 0,
|
|
13742
|
-
r.width = p, r.height =
|
|
13738
|
+
const i = t.width, a = t.width / 1.65, s = 0, u = t.height / 2 - a / 2, p = i, d = a;
|
|
13739
|
+
r.width = p, r.height = d, o.drawImage(t, s, u, i, a, 0, 0, p, d);
|
|
13743
13740
|
const f = r.toDataURL();
|
|
13744
13741
|
return e(f), f;
|
|
13745
13742
|
};
|
|
@@ -13765,7 +13762,7 @@ const An = {
|
|
|
13765
13762
|
},
|
|
13766
13763
|
async decryptAES(n, e, t) {
|
|
13767
13764
|
try {
|
|
13768
|
-
const r = (
|
|
13765
|
+
const r = (u) => Uint8Array.from(atob(u), (p) => p.charCodeAt(0));
|
|
13769
13766
|
t = t.replace(/ /g, "+");
|
|
13770
13767
|
const o = new TextEncoder(), i = new TextDecoder();
|
|
13771
13768
|
n = o.encode(n), e = o.encode(e), t = r(t, storage);
|
|
@@ -13815,11 +13812,11 @@ const An = {
|
|
|
13815
13812
|
localStorage.setItem("pkce_code_verifier", r);
|
|
13816
13813
|
let o = await zt.pkceChallengeFromVerifier(r), i = n.domain + "/v1/authorize", a;
|
|
13817
13814
|
this.isNative ? a = "tapni://t.link/callback/okta" : a = location.origin + "/callback/okta";
|
|
13818
|
-
let s = i + "?response_type=code&client_id=" + encodeURIComponent(n.clientID) + "&state=" + encodeURIComponent(t) + "&scope=" + encodeURIComponent("openid email profile") + "&redirect_uri=" + encodeURIComponent(a) + "&code_challenge=" + encodeURIComponent(o) + "&code_challenge_method=S256",
|
|
13819
|
-
window.addEventListener("message", async (
|
|
13820
|
-
if (!this.allowedOrigins.includes(
|
|
13815
|
+
let s = i + "?response_type=code&client_id=" + encodeURIComponent(n.clientID) + "&state=" + encodeURIComponent(t) + "&scope=" + encodeURIComponent("openid email profile") + "&redirect_uri=" + encodeURIComponent(a) + "&code_challenge=" + encodeURIComponent(o) + "&code_challenge_method=S256", u = this, p;
|
|
13816
|
+
window.addEventListener("message", async (d) => {
|
|
13817
|
+
if (!this.allowedOrigins.includes(d.origin))
|
|
13821
13818
|
return console.log("Origin is not allowed!");
|
|
13822
|
-
|
|
13819
|
+
d.data.type === "okta" && (p = d.data.code, await u.exchangeCode({ domain: n.domain, code: p, clientID: n.clientID }));
|
|
13823
13820
|
}, { once: !0 }), this.isNative ? await hn.open({ url: s, presentationStyle: "popover" }) : window.open(s, "popup", "width=600,height=600");
|
|
13824
13821
|
},
|
|
13825
13822
|
async handleOktaRedirect() {
|
|
@@ -13859,10 +13856,10 @@ function Aa(n, e, t) {
|
|
|
13859
13856
|
return (e + t) * 3 / 4 - t;
|
|
13860
13857
|
}
|
|
13861
13858
|
function Ra(n) {
|
|
13862
|
-
var e, t = go(n), r = t[0], o = t[1], i = new Ta(Aa(n, r, o)), a = 0, s = o > 0 ? r - 4 : r,
|
|
13863
|
-
for (
|
|
13864
|
-
e = je[n.charCodeAt(
|
|
13865
|
-
return o === 2 && (e = je[n.charCodeAt(
|
|
13859
|
+
var e, t = go(n), r = t[0], o = t[1], i = new Ta(Aa(n, r, o)), a = 0, s = o > 0 ? r - 4 : r, u;
|
|
13860
|
+
for (u = 0; u < s; u += 4)
|
|
13861
|
+
e = je[n.charCodeAt(u)] << 18 | je[n.charCodeAt(u + 1)] << 12 | je[n.charCodeAt(u + 2)] << 6 | je[n.charCodeAt(u + 3)], i[a++] = e >> 16 & 255, i[a++] = e >> 8 & 255, i[a++] = e & 255;
|
|
13862
|
+
return o === 2 && (e = je[n.charCodeAt(u)] << 2 | je[n.charCodeAt(u + 1)] >> 4, i[a++] = e & 255), o === 1 && (e = je[n.charCodeAt(u)] << 10 | je[n.charCodeAt(u + 1)] << 4 | je[n.charCodeAt(u + 2)] >> 2, i[a++] = e >> 8 & 255, i[a++] = e & 255), i;
|
|
13866
13863
|
}
|
|
13867
13864
|
function Pa(n) {
|
|
13868
13865
|
return et[n >> 18 & 63] + et[n >> 12 & 63] + et[n >> 6 & 63] + et[n & 63];
|
|
@@ -13884,23 +13881,23 @@ function Na(n) {
|
|
|
13884
13881
|
var ir = {};
|
|
13885
13882
|
/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
|
|
13886
13883
|
ir.read = function(n, e, t, r, o) {
|
|
13887
|
-
var i, a, s = o * 8 - r - 1,
|
|
13888
|
-
for (f += _, i = k & (1 << -
|
|
13884
|
+
var i, a, s = o * 8 - r - 1, u = (1 << s) - 1, p = u >> 1, d = -7, f = t ? o - 1 : 0, _ = t ? -1 : 1, k = n[e + f];
|
|
13885
|
+
for (f += _, i = k & (1 << -d) - 1, k >>= -d, d += s; d > 0; i = i * 256 + n[e + f], f += _, d -= 8)
|
|
13889
13886
|
;
|
|
13890
|
-
for (a = i & (1 << -
|
|
13887
|
+
for (a = i & (1 << -d) - 1, i >>= -d, d += r; d > 0; a = a * 256 + n[e + f], f += _, d -= 8)
|
|
13891
13888
|
;
|
|
13892
13889
|
if (i === 0)
|
|
13893
13890
|
i = 1 - p;
|
|
13894
13891
|
else {
|
|
13895
|
-
if (i ===
|
|
13892
|
+
if (i === u)
|
|
13896
13893
|
return a ? NaN : (k ? -1 : 1) * (1 / 0);
|
|
13897
13894
|
a = a + Math.pow(2, r), i = i - p;
|
|
13898
13895
|
}
|
|
13899
13896
|
return (k ? -1 : 1) * a * Math.pow(2, i - r);
|
|
13900
13897
|
};
|
|
13901
13898
|
ir.write = function(n, e, t, r, o, i) {
|
|
13902
|
-
var a, s,
|
|
13903
|
-
for (e = Math.abs(e), isNaN(e) || e === 1 / 0 ? (s = isNaN(e) ? 1 : 0, a =
|
|
13899
|
+
var a, s, u, p = i * 8 - o - 1, d = (1 << p) - 1, f = d >> 1, _ = o === 23 ? Math.pow(2, -24) - Math.pow(2, -77) : 0, k = r ? 0 : i - 1, E = r ? 1 : -1, N = e < 0 || e === 0 && 1 / e < 0 ? 1 : 0;
|
|
13900
|
+
for (e = Math.abs(e), isNaN(e) || e === 1 / 0 ? (s = isNaN(e) ? 1 : 0, a = d) : (a = Math.floor(Math.log(e) / Math.LN2), e * (u = Math.pow(2, -a)) < 1 && (a--, u *= 2), a + f >= 1 ? e += _ / u : e += _ * Math.pow(2, 1 - f), e * u >= 2 && (a++, u /= 2), a + f >= d ? (s = 0, a = d) : a + f >= 1 ? (s = (e * u - 1) * Math.pow(2, o), a = a + f) : (s = e * Math.pow(2, f - 1) * Math.pow(2, o), a = 0)); o >= 8; n[t + k] = s & 255, k += E, s /= 256, o -= 8)
|
|
13904
13901
|
;
|
|
13905
13902
|
for (a = a << o | s, p += o; p > 0; n[t + k] = a & 255, k += E, a /= 256, p -= 8)
|
|
13906
13903
|
;
|
|
@@ -13914,14 +13911,14 @@ ir.write = function(n, e, t, r, o, i) {
|
|
|
13914
13911
|
*/
|
|
13915
13912
|
(function(n) {
|
|
13916
13913
|
const e = Pn, t = ir, r = typeof Symbol == "function" && typeof Symbol.for == "function" ? Symbol.for("nodejs.util.inspect.custom") : null;
|
|
13917
|
-
n.Buffer =
|
|
13914
|
+
n.Buffer = d, n.SlowBuffer = xe, n.INSPECT_MAX_BYTES = 50;
|
|
13918
13915
|
const o = 2147483647;
|
|
13919
13916
|
n.kMaxLength = o;
|
|
13920
13917
|
const { Uint8Array: i, ArrayBuffer: a, SharedArrayBuffer: s } = globalThis;
|
|
13921
|
-
|
|
13918
|
+
d.TYPED_ARRAY_SUPPORT = u(), !d.TYPED_ARRAY_SUPPORT && typeof console < "u" && typeof console.error == "function" && console.error(
|
|
13922
13919
|
"This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."
|
|
13923
13920
|
);
|
|
13924
|
-
function
|
|
13921
|
+
function u() {
|
|
13925
13922
|
try {
|
|
13926
13923
|
const h = new i(1), c = { foo: function() {
|
|
13927
13924
|
return 42;
|
|
@@ -13931,16 +13928,16 @@ ir.write = function(n, e, t, r, o, i) {
|
|
|
13931
13928
|
return !1;
|
|
13932
13929
|
}
|
|
13933
13930
|
}
|
|
13934
|
-
Object.defineProperty(
|
|
13931
|
+
Object.defineProperty(d.prototype, "parent", {
|
|
13935
13932
|
enumerable: !0,
|
|
13936
13933
|
get: function() {
|
|
13937
|
-
if (
|
|
13934
|
+
if (d.isBuffer(this))
|
|
13938
13935
|
return this.buffer;
|
|
13939
13936
|
}
|
|
13940
|
-
}), Object.defineProperty(
|
|
13937
|
+
}), Object.defineProperty(d.prototype, "offset", {
|
|
13941
13938
|
enumerable: !0,
|
|
13942
13939
|
get: function() {
|
|
13943
|
-
if (
|
|
13940
|
+
if (d.isBuffer(this))
|
|
13944
13941
|
return this.byteOffset;
|
|
13945
13942
|
}
|
|
13946
13943
|
});
|
|
@@ -13948,9 +13945,9 @@ ir.write = function(n, e, t, r, o, i) {
|
|
|
13948
13945
|
if (h > o)
|
|
13949
13946
|
throw new RangeError('The value "' + h + '" is invalid for option "size"');
|
|
13950
13947
|
const c = new i(h);
|
|
13951
|
-
return Object.setPrototypeOf(c,
|
|
13948
|
+
return Object.setPrototypeOf(c, d.prototype), c;
|
|
13952
13949
|
}
|
|
13953
|
-
function
|
|
13950
|
+
function d(h, c, l) {
|
|
13954
13951
|
if (typeof h == "number") {
|
|
13955
13952
|
if (typeof c == "string")
|
|
13956
13953
|
throw new TypeError(
|
|
@@ -13960,7 +13957,7 @@ ir.write = function(n, e, t, r, o, i) {
|
|
|
13960
13957
|
}
|
|
13961
13958
|
return f(h, c, l);
|
|
13962
13959
|
}
|
|
13963
|
-
|
|
13960
|
+
d.poolSize = 8192;
|
|
13964
13961
|
function f(h, c, l) {
|
|
13965
13962
|
if (typeof h == "string")
|
|
13966
13963
|
return N(h, c);
|
|
@@ -13978,19 +13975,19 @@ ir.write = function(n, e, t, r, o, i) {
|
|
|
13978
13975
|
);
|
|
13979
13976
|
const m = h.valueOf && h.valueOf();
|
|
13980
13977
|
if (m != null && m !== h)
|
|
13981
|
-
return
|
|
13978
|
+
return d.from(m, c, l);
|
|
13982
13979
|
const v = $(h);
|
|
13983
13980
|
if (v)
|
|
13984
13981
|
return v;
|
|
13985
13982
|
if (typeof Symbol < "u" && Symbol.toPrimitive != null && typeof h[Symbol.toPrimitive] == "function")
|
|
13986
|
-
return
|
|
13983
|
+
return d.from(h[Symbol.toPrimitive]("string"), c, l);
|
|
13987
13984
|
throw new TypeError(
|
|
13988
13985
|
"The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type " + typeof h
|
|
13989
13986
|
);
|
|
13990
13987
|
}
|
|
13991
|
-
|
|
13988
|
+
d.from = function(h, c, l) {
|
|
13992
13989
|
return f(h, c, l);
|
|
13993
|
-
}, Object.setPrototypeOf(
|
|
13990
|
+
}, Object.setPrototypeOf(d.prototype, i.prototype), Object.setPrototypeOf(d, i);
|
|
13994
13991
|
function _(h) {
|
|
13995
13992
|
if (typeof h != "number")
|
|
13996
13993
|
throw new TypeError('"size" argument must be of type number');
|
|
@@ -14000,19 +13997,19 @@ ir.write = function(n, e, t, r, o, i) {
|
|
|
14000
13997
|
function k(h, c, l) {
|
|
14001
13998
|
return _(h), h <= 0 ? p(h) : c !== void 0 ? typeof l == "string" ? p(h).fill(c, l) : p(h).fill(c) : p(h);
|
|
14002
13999
|
}
|
|
14003
|
-
|
|
14000
|
+
d.alloc = function(h, c, l) {
|
|
14004
14001
|
return k(h, c, l);
|
|
14005
14002
|
};
|
|
14006
14003
|
function E(h) {
|
|
14007
14004
|
return _(h), p(h < 0 ? 0 : Ae(h) | 0);
|
|
14008
14005
|
}
|
|
14009
|
-
|
|
14006
|
+
d.allocUnsafe = function(h) {
|
|
14010
14007
|
return E(h);
|
|
14011
|
-
},
|
|
14008
|
+
}, d.allocUnsafeSlow = function(h) {
|
|
14012
14009
|
return E(h);
|
|
14013
14010
|
};
|
|
14014
14011
|
function N(h, c) {
|
|
14015
|
-
if ((typeof c != "string" || c === "") && (c = "utf8"), !
|
|
14012
|
+
if ((typeof c != "string" || c === "") && (c = "utf8"), !d.isEncoding(c))
|
|
14016
14013
|
throw new TypeError("Unknown encoding: " + c);
|
|
14017
14014
|
const l = Ve(h, c) | 0;
|
|
14018
14015
|
let m = p(l);
|
|
@@ -14038,10 +14035,10 @@ ir.write = function(n, e, t, r, o, i) {
|
|
|
14038
14035
|
if (h.byteLength < c + (l || 0))
|
|
14039
14036
|
throw new RangeError('"length" is outside of buffer bounds');
|
|
14040
14037
|
let m;
|
|
14041
|
-
return c === void 0 && l === void 0 ? m = new i(h) : l === void 0 ? m = new i(h, c) : m = new i(h, c, l), Object.setPrototypeOf(m,
|
|
14038
|
+
return c === void 0 && l === void 0 ? m = new i(h) : l === void 0 ? m = new i(h, c) : m = new i(h, c, l), Object.setPrototypeOf(m, d.prototype), m;
|
|
14042
14039
|
}
|
|
14043
14040
|
function $(h) {
|
|
14044
|
-
if (
|
|
14041
|
+
if (d.isBuffer(h)) {
|
|
14045
14042
|
const c = Ae(h.length) | 0, l = p(c);
|
|
14046
14043
|
return l.length === 0 || h.copy(l, 0, 0, c), l;
|
|
14047
14044
|
}
|
|
@@ -14056,12 +14053,12 @@ ir.write = function(n, e, t, r, o, i) {
|
|
|
14056
14053
|
return h | 0;
|
|
14057
14054
|
}
|
|
14058
14055
|
function xe(h) {
|
|
14059
|
-
return +h != h && (h = 0),
|
|
14056
|
+
return +h != h && (h = 0), d.alloc(+h);
|
|
14060
14057
|
}
|
|
14061
|
-
|
|
14062
|
-
return c != null && c._isBuffer === !0 && c !==
|
|
14063
|
-
},
|
|
14064
|
-
if ($e(c, i) && (c =
|
|
14058
|
+
d.isBuffer = function(c) {
|
|
14059
|
+
return c != null && c._isBuffer === !0 && c !== d.prototype;
|
|
14060
|
+
}, d.compare = function(c, l) {
|
|
14061
|
+
if ($e(c, i) && (c = d.from(c, c.offset, c.byteLength)), $e(l, i) && (l = d.from(l, l.offset, l.byteLength)), !d.isBuffer(c) || !d.isBuffer(l))
|
|
14065
14062
|
throw new TypeError(
|
|
14066
14063
|
'The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array'
|
|
14067
14064
|
);
|
|
@@ -14074,7 +14071,7 @@ ir.write = function(n, e, t, r, o, i) {
|
|
|
14074
14071
|
break;
|
|
14075
14072
|
}
|
|
14076
14073
|
return m < v ? -1 : v < m ? 1 : 0;
|
|
14077
|
-
},
|
|
14074
|
+
}, d.isEncoding = function(c) {
|
|
14078
14075
|
switch (String(c).toLowerCase()) {
|
|
14079
14076
|
case "hex":
|
|
14080
14077
|
case "utf8":
|
|
@@ -14091,26 +14088,26 @@ ir.write = function(n, e, t, r, o, i) {
|
|
|
14091
14088
|
default:
|
|
14092
14089
|
return !1;
|
|
14093
14090
|
}
|
|
14094
|
-
},
|
|
14091
|
+
}, d.concat = function(c, l) {
|
|
14095
14092
|
if (!Array.isArray(c))
|
|
14096
14093
|
throw new TypeError('"list" argument must be an Array of Buffers');
|
|
14097
14094
|
if (c.length === 0)
|
|
14098
|
-
return
|
|
14095
|
+
return d.alloc(0);
|
|
14099
14096
|
let m;
|
|
14100
14097
|
if (l === void 0)
|
|
14101
14098
|
for (l = 0, m = 0; m < c.length; ++m)
|
|
14102
14099
|
l += c[m].length;
|
|
14103
|
-
const v =
|
|
14100
|
+
const v = d.allocUnsafe(l);
|
|
14104
14101
|
let w = 0;
|
|
14105
14102
|
for (m = 0; m < c.length; ++m) {
|
|
14106
14103
|
let C = c[m];
|
|
14107
14104
|
if ($e(C, i))
|
|
14108
|
-
w + C.length > v.length ? (
|
|
14105
|
+
w + C.length > v.length ? (d.isBuffer(C) || (C = d.from(C)), C.copy(v, w)) : i.prototype.set.call(
|
|
14109
14106
|
v,
|
|
14110
14107
|
C,
|
|
14111
14108
|
w
|
|
14112
14109
|
);
|
|
14113
|
-
else if (
|
|
14110
|
+
else if (d.isBuffer(C))
|
|
14114
14111
|
C.copy(v, w);
|
|
14115
14112
|
else
|
|
14116
14113
|
throw new TypeError('"list" argument must be an Array of Buffers');
|
|
@@ -14119,7 +14116,7 @@ ir.write = function(n, e, t, r, o, i) {
|
|
|
14119
14116
|
return v;
|
|
14120
14117
|
};
|
|
14121
14118
|
function Ve(h, c) {
|
|
14122
|
-
if (
|
|
14119
|
+
if (d.isBuffer(h))
|
|
14123
14120
|
return h.length;
|
|
14124
14121
|
if (a.isView(h) || $e(h, a))
|
|
14125
14122
|
return h.byteLength;
|
|
@@ -14155,7 +14152,7 @@ ir.write = function(n, e, t, r, o, i) {
|
|
|
14155
14152
|
c = ("" + c).toLowerCase(), v = !0;
|
|
14156
14153
|
}
|
|
14157
14154
|
}
|
|
14158
|
-
|
|
14155
|
+
d.byteLength = Ve;
|
|
14159
14156
|
function Ct(h, c, l) {
|
|
14160
14157
|
let m = !1;
|
|
14161
14158
|
if ((c === void 0 || c < 0) && (c = 0), c > this.length || ((l === void 0 || l > this.length) && (l = this.length), l <= 0) || (l >>>= 0, c >>>= 0, l <= c))
|
|
@@ -14185,45 +14182,45 @@ ir.write = function(n, e, t, r, o, i) {
|
|
|
14185
14182
|
h = (h + "").toLowerCase(), m = !0;
|
|
14186
14183
|
}
|
|
14187
14184
|
}
|
|
14188
|
-
|
|
14185
|
+
d.prototype._isBuffer = !0;
|
|
14189
14186
|
function ce(h, c, l) {
|
|
14190
14187
|
const m = h[c];
|
|
14191
14188
|
h[c] = h[l], h[l] = m;
|
|
14192
14189
|
}
|
|
14193
|
-
|
|
14190
|
+
d.prototype.swap16 = function() {
|
|
14194
14191
|
const c = this.length;
|
|
14195
14192
|
if (c % 2 !== 0)
|
|
14196
14193
|
throw new RangeError("Buffer size must be a multiple of 16-bits");
|
|
14197
14194
|
for (let l = 0; l < c; l += 2)
|
|
14198
14195
|
ce(this, l, l + 1);
|
|
14199
14196
|
return this;
|
|
14200
|
-
},
|
|
14197
|
+
}, d.prototype.swap32 = function() {
|
|
14201
14198
|
const c = this.length;
|
|
14202
14199
|
if (c % 4 !== 0)
|
|
14203
14200
|
throw new RangeError("Buffer size must be a multiple of 32-bits");
|
|
14204
14201
|
for (let l = 0; l < c; l += 4)
|
|
14205
14202
|
ce(this, l, l + 3), ce(this, l + 1, l + 2);
|
|
14206
14203
|
return this;
|
|
14207
|
-
},
|
|
14204
|
+
}, d.prototype.swap64 = function() {
|
|
14208
14205
|
const c = this.length;
|
|
14209
14206
|
if (c % 8 !== 0)
|
|
14210
14207
|
throw new RangeError("Buffer size must be a multiple of 64-bits");
|
|
14211
14208
|
for (let l = 0; l < c; l += 8)
|
|
14212
14209
|
ce(this, l, l + 7), ce(this, l + 1, l + 6), ce(this, l + 2, l + 5), ce(this, l + 3, l + 4);
|
|
14213
14210
|
return this;
|
|
14214
|
-
},
|
|
14211
|
+
}, d.prototype.toString = function() {
|
|
14215
14212
|
const c = this.length;
|
|
14216
14213
|
return c === 0 ? "" : arguments.length === 0 ? cr(this, 0, c) : Ct.apply(this, arguments);
|
|
14217
|
-
},
|
|
14218
|
-
if (!
|
|
14214
|
+
}, d.prototype.toLocaleString = d.prototype.toString, d.prototype.equals = function(c) {
|
|
14215
|
+
if (!d.isBuffer(c))
|
|
14219
14216
|
throw new TypeError("Argument must be a Buffer");
|
|
14220
|
-
return this === c ? !0 :
|
|
14221
|
-
},
|
|
14217
|
+
return this === c ? !0 : d.compare(this, c) === 0;
|
|
14218
|
+
}, d.prototype.inspect = function() {
|
|
14222
14219
|
let c = "";
|
|
14223
14220
|
const l = n.INSPECT_MAX_BYTES;
|
|
14224
14221
|
return c = this.toString("hex", 0, l).replace(/(.{2})/g, "$1 ").trim(), this.length > l && (c += " ... "), "<Buffer " + c + ">";
|
|
14225
|
-
}, r && (
|
|
14226
|
-
if ($e(c, i) && (c =
|
|
14222
|
+
}, r && (d.prototype[r] = d.prototype.inspect), d.prototype.compare = function(c, l, m, v, w) {
|
|
14223
|
+
if ($e(c, i) && (c = d.from(c, c.offset, c.byteLength)), !d.isBuffer(c))
|
|
14227
14224
|
throw new TypeError(
|
|
14228
14225
|
'The "target" argument must be one of type Buffer or Uint8Array. Received type ' + typeof c
|
|
14229
14226
|
);
|
|
@@ -14238,10 +14235,10 @@ ir.write = function(n, e, t, r, o, i) {
|
|
|
14238
14235
|
if (l >>>= 0, m >>>= 0, v >>>= 0, w >>>= 0, this === c)
|
|
14239
14236
|
return 0;
|
|
14240
14237
|
let C = w - v, Y = m - l;
|
|
14241
|
-
const le = Math.min(C, Y), ae = this.slice(v, w),
|
|
14238
|
+
const le = Math.min(C, Y), ae = this.slice(v, w), ue = c.slice(l, m);
|
|
14242
14239
|
for (let re = 0; re < le; ++re)
|
|
14243
|
-
if (ae[re] !==
|
|
14244
|
-
C = ae[re], Y =
|
|
14240
|
+
if (ae[re] !== ue[re]) {
|
|
14241
|
+
C = ae[re], Y = ue[re];
|
|
14245
14242
|
break;
|
|
14246
14243
|
}
|
|
14247
14244
|
return C < Y ? -1 : Y < C ? 1 : 0;
|
|
@@ -14258,7 +14255,7 @@ ir.write = function(n, e, t, r, o, i) {
|
|
|
14258
14255
|
l = 0;
|
|
14259
14256
|
else
|
|
14260
14257
|
return -1;
|
|
14261
|
-
if (typeof c == "string" && (c =
|
|
14258
|
+
if (typeof c == "string" && (c = d.from(c, m)), d.isBuffer(c))
|
|
14262
14259
|
return c.length === 0 ? -1 : sr(h, c, l, m, v);
|
|
14263
14260
|
if (typeof c == "number")
|
|
14264
14261
|
return c = c & 255, typeof i.prototype.indexOf == "function" ? v ? i.prototype.indexOf.call(h, c, l) : i.prototype.lastIndexOf.call(h, c, l) : sr(h, [c], l, m, v);
|
|
@@ -14271,36 +14268,36 @@ ir.write = function(n, e, t, r, o, i) {
|
|
|
14271
14268
|
return -1;
|
|
14272
14269
|
w = 2, C /= 2, Y /= 2, l /= 2;
|
|
14273
14270
|
}
|
|
14274
|
-
function le(
|
|
14275
|
-
return w === 1 ?
|
|
14271
|
+
function le(ue, re) {
|
|
14272
|
+
return w === 1 ? ue[re] : ue.readUInt16BE(re * w);
|
|
14276
14273
|
}
|
|
14277
14274
|
let ae;
|
|
14278
14275
|
if (v) {
|
|
14279
|
-
let
|
|
14276
|
+
let ue = -1;
|
|
14280
14277
|
for (ae = l; ae < C; ae++)
|
|
14281
|
-
if (le(h, ae) === le(c,
|
|
14282
|
-
if (
|
|
14283
|
-
return
|
|
14278
|
+
if (le(h, ae) === le(c, ue === -1 ? 0 : ae - ue)) {
|
|
14279
|
+
if (ue === -1 && (ue = ae), ae - ue + 1 === Y)
|
|
14280
|
+
return ue * w;
|
|
14284
14281
|
} else
|
|
14285
|
-
|
|
14282
|
+
ue !== -1 && (ae -= ae - ue), ue = -1;
|
|
14286
14283
|
} else
|
|
14287
14284
|
for (l + Y > C && (l = C - Y), ae = l; ae >= 0; ae--) {
|
|
14288
|
-
let
|
|
14285
|
+
let ue = !0;
|
|
14289
14286
|
for (let re = 0; re < Y; re++)
|
|
14290
14287
|
if (le(h, ae + re) !== le(c, re)) {
|
|
14291
|
-
|
|
14288
|
+
ue = !1;
|
|
14292
14289
|
break;
|
|
14293
14290
|
}
|
|
14294
|
-
if (
|
|
14291
|
+
if (ue)
|
|
14295
14292
|
return ae;
|
|
14296
14293
|
}
|
|
14297
14294
|
return -1;
|
|
14298
14295
|
}
|
|
14299
|
-
|
|
14296
|
+
d.prototype.includes = function(c, l, m) {
|
|
14300
14297
|
return this.indexOf(c, l, m) !== -1;
|
|
14301
|
-
},
|
|
14298
|
+
}, d.prototype.indexOf = function(c, l, m) {
|
|
14302
14299
|
return ar(this, c, l, m, !0);
|
|
14303
|
-
},
|
|
14300
|
+
}, d.prototype.lastIndexOf = function(c, l, m) {
|
|
14304
14301
|
return ar(this, c, l, m, !1);
|
|
14305
14302
|
};
|
|
14306
14303
|
function Io(h, c, l, m) {
|
|
@@ -14330,7 +14327,7 @@ ir.write = function(n, e, t, r, o, i) {
|
|
|
14330
14327
|
function Po(h, c, l, m) {
|
|
14331
14328
|
return an(qo(c, h.length - l), h, l, m);
|
|
14332
14329
|
}
|
|
14333
|
-
|
|
14330
|
+
d.prototype.write = function(c, l, m, v) {
|
|
14334
14331
|
if (l === void 0)
|
|
14335
14332
|
v = "utf8", m = this.length, l = 0;
|
|
14336
14333
|
else if (m === void 0 && typeof l == "string")
|
|
@@ -14369,7 +14366,7 @@ ir.write = function(n, e, t, r, o, i) {
|
|
|
14369
14366
|
throw new TypeError("Unknown encoding: " + v);
|
|
14370
14367
|
v = ("" + v).toLowerCase(), C = !0;
|
|
14371
14368
|
}
|
|
14372
|
-
},
|
|
14369
|
+
}, d.prototype.toJSON = function() {
|
|
14373
14370
|
return {
|
|
14374
14371
|
type: "Buffer",
|
|
14375
14372
|
data: Array.prototype.slice.call(this._arr || this, 0)
|
|
@@ -14386,7 +14383,7 @@ ir.write = function(n, e, t, r, o, i) {
|
|
|
14386
14383
|
const w = h[v];
|
|
14387
14384
|
let C = null, Y = w > 239 ? 4 : w > 223 ? 3 : w > 191 ? 2 : 1;
|
|
14388
14385
|
if (v + Y <= l) {
|
|
14389
|
-
let le, ae,
|
|
14386
|
+
let le, ae, ue, re;
|
|
14390
14387
|
switch (Y) {
|
|
14391
14388
|
case 1:
|
|
14392
14389
|
w < 128 && (C = w);
|
|
@@ -14398,7 +14395,7 @@ ir.write = function(n, e, t, r, o, i) {
|
|
|
14398
14395
|
le = h[v + 1], ae = h[v + 2], (le & 192) === 128 && (ae & 192) === 128 && (re = (w & 15) << 12 | (le & 63) << 6 | ae & 63, re > 2047 && (re < 55296 || re > 57343) && (C = re));
|
|
14399
14396
|
break;
|
|
14400
14397
|
case 4:
|
|
14401
|
-
le = h[v + 1], ae = h[v + 2],
|
|
14398
|
+
le = h[v + 1], ae = h[v + 2], ue = h[v + 3], (le & 192) === 128 && (ae & 192) === 128 && (ue & 192) === 128 && (re = (w & 15) << 18 | (le & 63) << 12 | (ae & 63) << 6 | ue & 63, re > 65535 && re < 1114112 && (C = re));
|
|
14402
14399
|
}
|
|
14403
14400
|
}
|
|
14404
14401
|
C === null ? (C = 65533, Y = 1) : C > 65535 && (C -= 65536, m.push(C >>> 10 & 1023 | 55296), C = 56320 | C & 1023), m.push(C), v += Y;
|
|
@@ -14447,11 +14444,11 @@ ir.write = function(n, e, t, r, o, i) {
|
|
|
14447
14444
|
v += String.fromCharCode(m[w] + m[w + 1] * 256);
|
|
14448
14445
|
return v;
|
|
14449
14446
|
}
|
|
14450
|
-
|
|
14447
|
+
d.prototype.slice = function(c, l) {
|
|
14451
14448
|
const m = this.length;
|
|
14452
14449
|
c = ~~c, l = l === void 0 ? m : ~~l, c < 0 ? (c += m, c < 0 && (c = 0)) : c > m && (c = m), l < 0 ? (l += m, l < 0 && (l = 0)) : l > m && (l = m), l < c && (l = c);
|
|
14453
14450
|
const v = this.subarray(c, l);
|
|
14454
|
-
return Object.setPrototypeOf(v,
|
|
14451
|
+
return Object.setPrototypeOf(v, d.prototype), v;
|
|
14455
14452
|
};
|
|
14456
14453
|
function ge(h, c, l) {
|
|
14457
14454
|
if (h % 1 !== 0 || h < 0)
|
|
@@ -14459,97 +14456,97 @@ ir.write = function(n, e, t, r, o, i) {
|
|
|
14459
14456
|
if (h + c > l)
|
|
14460
14457
|
throw new RangeError("Trying to access beyond buffer length");
|
|
14461
14458
|
}
|
|
14462
|
-
|
|
14459
|
+
d.prototype.readUintLE = d.prototype.readUIntLE = function(c, l, m) {
|
|
14463
14460
|
c = c >>> 0, l = l >>> 0, m || ge(c, l, this.length);
|
|
14464
14461
|
let v = this[c], w = 1, C = 0;
|
|
14465
14462
|
for (; ++C < l && (w *= 256); )
|
|
14466
14463
|
v += this[c + C] * w;
|
|
14467
14464
|
return v;
|
|
14468
|
-
},
|
|
14465
|
+
}, d.prototype.readUintBE = d.prototype.readUIntBE = function(c, l, m) {
|
|
14469
14466
|
c = c >>> 0, l = l >>> 0, m || ge(c, l, this.length);
|
|
14470
14467
|
let v = this[c + --l], w = 1;
|
|
14471
14468
|
for (; l > 0 && (w *= 256); )
|
|
14472
14469
|
v += this[c + --l] * w;
|
|
14473
14470
|
return v;
|
|
14474
|
-
},
|
|
14471
|
+
}, d.prototype.readUint8 = d.prototype.readUInt8 = function(c, l) {
|
|
14475
14472
|
return c = c >>> 0, l || ge(c, 1, this.length), this[c];
|
|
14476
|
-
},
|
|
14473
|
+
}, d.prototype.readUint16LE = d.prototype.readUInt16LE = function(c, l) {
|
|
14477
14474
|
return c = c >>> 0, l || ge(c, 2, this.length), this[c] | this[c + 1] << 8;
|
|
14478
|
-
},
|
|
14475
|
+
}, d.prototype.readUint16BE = d.prototype.readUInt16BE = function(c, l) {
|
|
14479
14476
|
return c = c >>> 0, l || ge(c, 2, this.length), this[c] << 8 | this[c + 1];
|
|
14480
|
-
},
|
|
14477
|
+
}, d.prototype.readUint32LE = d.prototype.readUInt32LE = function(c, l) {
|
|
14481
14478
|
return c = c >>> 0, l || ge(c, 4, this.length), (this[c] | this[c + 1] << 8 | this[c + 2] << 16) + this[c + 3] * 16777216;
|
|
14482
|
-
},
|
|
14479
|
+
}, d.prototype.readUint32BE = d.prototype.readUInt32BE = function(c, l) {
|
|
14483
14480
|
return c = c >>> 0, l || ge(c, 4, this.length), this[c] * 16777216 + (this[c + 1] << 16 | this[c + 2] << 8 | this[c + 3]);
|
|
14484
|
-
},
|
|
14481
|
+
}, d.prototype.readBigUInt64LE = ut(function(c) {
|
|
14485
14482
|
c = c >>> 0, Tt(c, "offset");
|
|
14486
14483
|
const l = this[c], m = this[c + 7];
|
|
14487
14484
|
(l === void 0 || m === void 0) && jt(c, this.length - 8);
|
|
14488
14485
|
const v = l + this[++c] * 2 ** 8 + this[++c] * 2 ** 16 + this[++c] * 2 ** 24, w = this[++c] + this[++c] * 2 ** 8 + this[++c] * 2 ** 16 + m * 2 ** 24;
|
|
14489
14486
|
return BigInt(v) + (BigInt(w) << BigInt(32));
|
|
14490
|
-
}),
|
|
14487
|
+
}), d.prototype.readBigUInt64BE = ut(function(c) {
|
|
14491
14488
|
c = c >>> 0, Tt(c, "offset");
|
|
14492
14489
|
const l = this[c], m = this[c + 7];
|
|
14493
14490
|
(l === void 0 || m === void 0) && jt(c, this.length - 8);
|
|
14494
14491
|
const v = l * 2 ** 24 + this[++c] * 2 ** 16 + this[++c] * 2 ** 8 + this[++c], w = this[++c] * 2 ** 24 + this[++c] * 2 ** 16 + this[++c] * 2 ** 8 + m;
|
|
14495
14492
|
return (BigInt(v) << BigInt(32)) + BigInt(w);
|
|
14496
|
-
}),
|
|
14493
|
+
}), d.prototype.readIntLE = function(c, l, m) {
|
|
14497
14494
|
c = c >>> 0, l = l >>> 0, m || ge(c, l, this.length);
|
|
14498
14495
|
let v = this[c], w = 1, C = 0;
|
|
14499
14496
|
for (; ++C < l && (w *= 256); )
|
|
14500
14497
|
v += this[c + C] * w;
|
|
14501
14498
|
return w *= 128, v >= w && (v -= Math.pow(2, 8 * l)), v;
|
|
14502
|
-
},
|
|
14499
|
+
}, d.prototype.readIntBE = function(c, l, m) {
|
|
14503
14500
|
c = c >>> 0, l = l >>> 0, m || ge(c, l, this.length);
|
|
14504
14501
|
let v = l, w = 1, C = this[c + --v];
|
|
14505
14502
|
for (; v > 0 && (w *= 256); )
|
|
14506
14503
|
C += this[c + --v] * w;
|
|
14507
14504
|
return w *= 128, C >= w && (C -= Math.pow(2, 8 * l)), C;
|
|
14508
|
-
},
|
|
14505
|
+
}, d.prototype.readInt8 = function(c, l) {
|
|
14509
14506
|
return c = c >>> 0, l || ge(c, 1, this.length), this[c] & 128 ? (255 - this[c] + 1) * -1 : this[c];
|
|
14510
|
-
},
|
|
14507
|
+
}, d.prototype.readInt16LE = function(c, l) {
|
|
14511
14508
|
c = c >>> 0, l || ge(c, 2, this.length);
|
|
14512
14509
|
const m = this[c] | this[c + 1] << 8;
|
|
14513
14510
|
return m & 32768 ? m | 4294901760 : m;
|
|
14514
|
-
},
|
|
14511
|
+
}, d.prototype.readInt16BE = function(c, l) {
|
|
14515
14512
|
c = c >>> 0, l || ge(c, 2, this.length);
|
|
14516
14513
|
const m = this[c + 1] | this[c] << 8;
|
|
14517
14514
|
return m & 32768 ? m | 4294901760 : m;
|
|
14518
|
-
},
|
|
14515
|
+
}, d.prototype.readInt32LE = function(c, l) {
|
|
14519
14516
|
return c = c >>> 0, l || ge(c, 4, this.length), this[c] | this[c + 1] << 8 | this[c + 2] << 16 | this[c + 3] << 24;
|
|
14520
|
-
},
|
|
14517
|
+
}, d.prototype.readInt32BE = function(c, l) {
|
|
14521
14518
|
return c = c >>> 0, l || ge(c, 4, this.length), this[c] << 24 | this[c + 1] << 16 | this[c + 2] << 8 | this[c + 3];
|
|
14522
|
-
},
|
|
14519
|
+
}, d.prototype.readBigInt64LE = ut(function(c) {
|
|
14523
14520
|
c = c >>> 0, Tt(c, "offset");
|
|
14524
14521
|
const l = this[c], m = this[c + 7];
|
|
14525
14522
|
(l === void 0 || m === void 0) && jt(c, this.length - 8);
|
|
14526
14523
|
const v = this[c + 4] + this[c + 5] * 2 ** 8 + this[c + 6] * 2 ** 16 + (m << 24);
|
|
14527
14524
|
return (BigInt(v) << BigInt(32)) + BigInt(l + this[++c] * 2 ** 8 + this[++c] * 2 ** 16 + this[++c] * 2 ** 24);
|
|
14528
|
-
}),
|
|
14525
|
+
}), d.prototype.readBigInt64BE = ut(function(c) {
|
|
14529
14526
|
c = c >>> 0, Tt(c, "offset");
|
|
14530
14527
|
const l = this[c], m = this[c + 7];
|
|
14531
14528
|
(l === void 0 || m === void 0) && jt(c, this.length - 8);
|
|
14532
14529
|
const v = (l << 24) + // Overflow
|
|
14533
14530
|
this[++c] * 2 ** 16 + this[++c] * 2 ** 8 + this[++c];
|
|
14534
14531
|
return (BigInt(v) << BigInt(32)) + BigInt(this[++c] * 2 ** 24 + this[++c] * 2 ** 16 + this[++c] * 2 ** 8 + m);
|
|
14535
|
-
}),
|
|
14532
|
+
}), d.prototype.readFloatLE = function(c, l) {
|
|
14536
14533
|
return c = c >>> 0, l || ge(c, 4, this.length), t.read(this, c, !0, 23, 4);
|
|
14537
|
-
},
|
|
14534
|
+
}, d.prototype.readFloatBE = function(c, l) {
|
|
14538
14535
|
return c = c >>> 0, l || ge(c, 4, this.length), t.read(this, c, !1, 23, 4);
|
|
14539
|
-
},
|
|
14536
|
+
}, d.prototype.readDoubleLE = function(c, l) {
|
|
14540
14537
|
return c = c >>> 0, l || ge(c, 8, this.length), t.read(this, c, !0, 52, 8);
|
|
14541
|
-
},
|
|
14538
|
+
}, d.prototype.readDoubleBE = function(c, l) {
|
|
14542
14539
|
return c = c >>> 0, l || ge(c, 8, this.length), t.read(this, c, !1, 52, 8);
|
|
14543
14540
|
};
|
|
14544
14541
|
function Re(h, c, l, m, v, w) {
|
|
14545
|
-
if (!
|
|
14542
|
+
if (!d.isBuffer(h))
|
|
14546
14543
|
throw new TypeError('"buffer" argument must be a Buffer instance');
|
|
14547
14544
|
if (c > v || c < w)
|
|
14548
14545
|
throw new RangeError('"value" argument is out of bounds');
|
|
14549
14546
|
if (l + m > h.length)
|
|
14550
14547
|
throw new RangeError("Index out of range");
|
|
14551
14548
|
}
|
|
14552
|
-
|
|
14549
|
+
d.prototype.writeUintLE = d.prototype.writeUIntLE = function(c, l, m, v) {
|
|
14553
14550
|
if (c = +c, l = l >>> 0, m = m >>> 0, !v) {
|
|
14554
14551
|
const Y = Math.pow(2, 8 * m) - 1;
|
|
14555
14552
|
Re(this, c, l, m, Y, 0);
|
|
@@ -14558,7 +14555,7 @@ ir.write = function(n, e, t, r, o, i) {
|
|
|
14558
14555
|
for (this[l] = c & 255; ++C < m && (w *= 256); )
|
|
14559
14556
|
this[l + C] = c / w & 255;
|
|
14560
14557
|
return l + m;
|
|
14561
|
-
},
|
|
14558
|
+
}, d.prototype.writeUintBE = d.prototype.writeUIntBE = function(c, l, m, v) {
|
|
14562
14559
|
if (c = +c, l = l >>> 0, m = m >>> 0, !v) {
|
|
14563
14560
|
const Y = Math.pow(2, 8 * m) - 1;
|
|
14564
14561
|
Re(this, c, l, m, Y, 0);
|
|
@@ -14567,36 +14564,36 @@ ir.write = function(n, e, t, r, o, i) {
|
|
|
14567
14564
|
for (this[l + w] = c & 255; --w >= 0 && (C *= 256); )
|
|
14568
14565
|
this[l + w] = c / C & 255;
|
|
14569
14566
|
return l + m;
|
|
14570
|
-
},
|
|
14567
|
+
}, d.prototype.writeUint8 = d.prototype.writeUInt8 = function(c, l, m) {
|
|
14571
14568
|
return c = +c, l = l >>> 0, m || Re(this, c, l, 1, 255, 0), this[l] = c & 255, l + 1;
|
|
14572
|
-
},
|
|
14569
|
+
}, d.prototype.writeUint16LE = d.prototype.writeUInt16LE = function(c, l, m) {
|
|
14573
14570
|
return c = +c, l = l >>> 0, m || Re(this, c, l, 2, 65535, 0), this[l] = c & 255, this[l + 1] = c >>> 8, l + 2;
|
|
14574
|
-
},
|
|
14571
|
+
}, d.prototype.writeUint16BE = d.prototype.writeUInt16BE = function(c, l, m) {
|
|
14575
14572
|
return c = +c, l = l >>> 0, m || Re(this, c, l, 2, 65535, 0), this[l] = c >>> 8, this[l + 1] = c & 255, l + 2;
|
|
14576
|
-
},
|
|
14573
|
+
}, d.prototype.writeUint32LE = d.prototype.writeUInt32LE = function(c, l, m) {
|
|
14577
14574
|
return c = +c, l = l >>> 0, m || Re(this, c, l, 4, 4294967295, 0), this[l + 3] = c >>> 24, this[l + 2] = c >>> 16, this[l + 1] = c >>> 8, this[l] = c & 255, l + 4;
|
|
14578
|
-
},
|
|
14575
|
+
}, d.prototype.writeUint32BE = d.prototype.writeUInt32BE = function(c, l, m) {
|
|
14579
14576
|
return c = +c, l = l >>> 0, m || Re(this, c, l, 4, 4294967295, 0), this[l] = c >>> 24, this[l + 1] = c >>> 16, this[l + 2] = c >>> 8, this[l + 3] = c & 255, l + 4;
|
|
14580
14577
|
};
|
|
14581
|
-
function
|
|
14578
|
+
function ur(h, c, l, m, v) {
|
|
14582
14579
|
gr(c, m, v, h, l, 7);
|
|
14583
14580
|
let w = Number(c & BigInt(4294967295));
|
|
14584
14581
|
h[l++] = w, w = w >> 8, h[l++] = w, w = w >> 8, h[l++] = w, w = w >> 8, h[l++] = w;
|
|
14585
14582
|
let C = Number(c >> BigInt(32) & BigInt(4294967295));
|
|
14586
14583
|
return h[l++] = C, C = C >> 8, h[l++] = C, C = C >> 8, h[l++] = C, C = C >> 8, h[l++] = C, l;
|
|
14587
14584
|
}
|
|
14588
|
-
function
|
|
14585
|
+
function dr(h, c, l, m, v) {
|
|
14589
14586
|
gr(c, m, v, h, l, 7);
|
|
14590
14587
|
let w = Number(c & BigInt(4294967295));
|
|
14591
14588
|
h[l + 7] = w, w = w >> 8, h[l + 6] = w, w = w >> 8, h[l + 5] = w, w = w >> 8, h[l + 4] = w;
|
|
14592
14589
|
let C = Number(c >> BigInt(32) & BigInt(4294967295));
|
|
14593
14590
|
return h[l + 3] = C, C = C >> 8, h[l + 2] = C, C = C >> 8, h[l + 1] = C, C = C >> 8, h[l] = C, l + 8;
|
|
14594
14591
|
}
|
|
14595
|
-
|
|
14596
|
-
return dr(this, c, l, BigInt(0), BigInt("0xffffffffffffffff"));
|
|
14597
|
-
}), u.prototype.writeBigUInt64BE = dt(function(c, l = 0) {
|
|
14592
|
+
d.prototype.writeBigUInt64LE = ut(function(c, l = 0) {
|
|
14598
14593
|
return ur(this, c, l, BigInt(0), BigInt("0xffffffffffffffff"));
|
|
14599
|
-
}),
|
|
14594
|
+
}), d.prototype.writeBigUInt64BE = ut(function(c, l = 0) {
|
|
14595
|
+
return dr(this, c, l, BigInt(0), BigInt("0xffffffffffffffff"));
|
|
14596
|
+
}), d.prototype.writeIntLE = function(c, l, m, v) {
|
|
14600
14597
|
if (c = +c, l = l >>> 0, !v) {
|
|
14601
14598
|
const le = Math.pow(2, 8 * m - 1);
|
|
14602
14599
|
Re(this, c, l, m, le - 1, -le);
|
|
@@ -14605,7 +14602,7 @@ ir.write = function(n, e, t, r, o, i) {
|
|
|
14605
14602
|
for (this[l] = c & 255; ++w < m && (C *= 256); )
|
|
14606
14603
|
c < 0 && Y === 0 && this[l + w - 1] !== 0 && (Y = 1), this[l + w] = (c / C >> 0) - Y & 255;
|
|
14607
14604
|
return l + m;
|
|
14608
|
-
},
|
|
14605
|
+
}, d.prototype.writeIntBE = function(c, l, m, v) {
|
|
14609
14606
|
if (c = +c, l = l >>> 0, !v) {
|
|
14610
14607
|
const le = Math.pow(2, 8 * m - 1);
|
|
14611
14608
|
Re(this, c, l, m, le - 1, -le);
|
|
@@ -14614,20 +14611,20 @@ ir.write = function(n, e, t, r, o, i) {
|
|
|
14614
14611
|
for (this[l + w] = c & 255; --w >= 0 && (C *= 256); )
|
|
14615
14612
|
c < 0 && Y === 0 && this[l + w + 1] !== 0 && (Y = 1), this[l + w] = (c / C >> 0) - Y & 255;
|
|
14616
14613
|
return l + m;
|
|
14617
|
-
},
|
|
14614
|
+
}, d.prototype.writeInt8 = function(c, l, m) {
|
|
14618
14615
|
return c = +c, l = l >>> 0, m || Re(this, c, l, 1, 127, -128), c < 0 && (c = 255 + c + 1), this[l] = c & 255, l + 1;
|
|
14619
|
-
},
|
|
14616
|
+
}, d.prototype.writeInt16LE = function(c, l, m) {
|
|
14620
14617
|
return c = +c, l = l >>> 0, m || Re(this, c, l, 2, 32767, -32768), this[l] = c & 255, this[l + 1] = c >>> 8, l + 2;
|
|
14621
|
-
},
|
|
14618
|
+
}, d.prototype.writeInt16BE = function(c, l, m) {
|
|
14622
14619
|
return c = +c, l = l >>> 0, m || Re(this, c, l, 2, 32767, -32768), this[l] = c >>> 8, this[l + 1] = c & 255, l + 2;
|
|
14623
|
-
},
|
|
14620
|
+
}, d.prototype.writeInt32LE = function(c, l, m) {
|
|
14624
14621
|
return c = +c, l = l >>> 0, m || Re(this, c, l, 4, 2147483647, -2147483648), this[l] = c & 255, this[l + 1] = c >>> 8, this[l + 2] = c >>> 16, this[l + 3] = c >>> 24, l + 4;
|
|
14625
|
-
},
|
|
14622
|
+
}, d.prototype.writeInt32BE = function(c, l, m) {
|
|
14626
14623
|
return c = +c, l = l >>> 0, m || Re(this, c, l, 4, 2147483647, -2147483648), c < 0 && (c = 4294967295 + c + 1), this[l] = c >>> 24, this[l + 1] = c >>> 16, this[l + 2] = c >>> 8, this[l + 3] = c & 255, l + 4;
|
|
14627
|
-
},
|
|
14628
|
-
return dr(this, c, l, -BigInt("0x8000000000000000"), BigInt("0x7fffffffffffffff"));
|
|
14629
|
-
}), u.prototype.writeBigInt64BE = dt(function(c, l = 0) {
|
|
14624
|
+
}, d.prototype.writeBigInt64LE = ut(function(c, l = 0) {
|
|
14630
14625
|
return ur(this, c, l, -BigInt("0x8000000000000000"), BigInt("0x7fffffffffffffff"));
|
|
14626
|
+
}), d.prototype.writeBigInt64BE = ut(function(c, l = 0) {
|
|
14627
|
+
return dr(this, c, l, -BigInt("0x8000000000000000"), BigInt("0x7fffffffffffffff"));
|
|
14631
14628
|
});
|
|
14632
14629
|
function pr(h, c, l, m, v, w) {
|
|
14633
14630
|
if (l + m > h.length)
|
|
@@ -14638,20 +14635,20 @@ ir.write = function(n, e, t, r, o, i) {
|
|
|
14638
14635
|
function hr(h, c, l, m, v) {
|
|
14639
14636
|
return c = +c, l = l >>> 0, v || pr(h, c, l, 4), t.write(h, c, l, m, 23, 4), l + 4;
|
|
14640
14637
|
}
|
|
14641
|
-
|
|
14638
|
+
d.prototype.writeFloatLE = function(c, l, m) {
|
|
14642
14639
|
return hr(this, c, l, !0, m);
|
|
14643
|
-
},
|
|
14640
|
+
}, d.prototype.writeFloatBE = function(c, l, m) {
|
|
14644
14641
|
return hr(this, c, l, !1, m);
|
|
14645
14642
|
};
|
|
14646
14643
|
function mr(h, c, l, m, v) {
|
|
14647
14644
|
return c = +c, l = l >>> 0, v || pr(h, c, l, 8), t.write(h, c, l, m, 52, 8), l + 8;
|
|
14648
14645
|
}
|
|
14649
|
-
|
|
14646
|
+
d.prototype.writeDoubleLE = function(c, l, m) {
|
|
14650
14647
|
return mr(this, c, l, !0, m);
|
|
14651
|
-
},
|
|
14648
|
+
}, d.prototype.writeDoubleBE = function(c, l, m) {
|
|
14652
14649
|
return mr(this, c, l, !1, m);
|
|
14653
|
-
},
|
|
14654
|
-
if (!
|
|
14650
|
+
}, d.prototype.copy = function(c, l, m, v) {
|
|
14651
|
+
if (!d.isBuffer(c))
|
|
14655
14652
|
throw new TypeError("argument should be a Buffer");
|
|
14656
14653
|
if (m || (m = 0), !v && v !== 0 && (v = this.length), l >= c.length && (l = c.length), l || (l = 0), v > 0 && v < m && (v = m), v === m || c.length === 0 || this.length === 0)
|
|
14657
14654
|
return 0;
|
|
@@ -14668,11 +14665,11 @@ ir.write = function(n, e, t, r, o, i) {
|
|
|
14668
14665
|
this.subarray(m, v),
|
|
14669
14666
|
l
|
|
14670
14667
|
), w;
|
|
14671
|
-
},
|
|
14668
|
+
}, d.prototype.fill = function(c, l, m, v) {
|
|
14672
14669
|
if (typeof c == "string") {
|
|
14673
14670
|
if (typeof l == "string" ? (v = l, l = 0, m = this.length) : typeof m == "string" && (v = m, m = this.length), v !== void 0 && typeof v != "string")
|
|
14674
14671
|
throw new TypeError("encoding must be a string");
|
|
14675
|
-
if (typeof v == "string" && !
|
|
14672
|
+
if (typeof v == "string" && !d.isEncoding(v))
|
|
14676
14673
|
throw new TypeError("Unknown encoding: " + v);
|
|
14677
14674
|
if (c.length === 1) {
|
|
14678
14675
|
const C = c.charCodeAt(0);
|
|
@@ -14690,7 +14687,7 @@ ir.write = function(n, e, t, r, o, i) {
|
|
|
14690
14687
|
for (w = l; w < m; ++w)
|
|
14691
14688
|
this[w] = c;
|
|
14692
14689
|
else {
|
|
14693
|
-
const C =
|
|
14690
|
+
const C = d.isBuffer(c) ? c : d.from(c, v), Y = C.length;
|
|
14694
14691
|
if (Y === 0)
|
|
14695
14692
|
throw new TypeError('The value "' + c + '" is invalid for argument "value"');
|
|
14696
14693
|
for (w = 0; w < m - l; ++w)
|
|
@@ -14877,7 +14874,7 @@ ir.write = function(n, e, t, r, o, i) {
|
|
|
14877
14874
|
}
|
|
14878
14875
|
return c;
|
|
14879
14876
|
}();
|
|
14880
|
-
function
|
|
14877
|
+
function ut(h) {
|
|
14881
14878
|
return typeof BigInt > "u" ? jo : h;
|
|
14882
14879
|
}
|
|
14883
14880
|
function jo() {
|
|
@@ -15142,7 +15139,7 @@ const La = fo.Buffer, Mn = {
|
|
|
15142
15139
|
}, ls = /* @__PURE__ */ y("img", {
|
|
15143
15140
|
src: "https://cdn.tapni.co/icons/outlook.png",
|
|
15144
15141
|
style: { position: "absolute", "margin-left": "-8px", padding: "10px 0", height: "100%" }
|
|
15145
|
-
}, null, -1),
|
|
15142
|
+
}, null, -1), us = { key: 0 }, ds = {
|
|
15146
15143
|
key: 1,
|
|
15147
15144
|
class: "button--loading-black button__loader"
|
|
15148
15145
|
}, ps = /* @__PURE__ */ y("img", {
|
|
@@ -15212,7 +15209,7 @@ function Ps(n, e, t, r, o, i) {
|
|
|
15212
15209
|
required: "",
|
|
15213
15210
|
minlength: "8"
|
|
15214
15211
|
}, null, 8, Qa), [
|
|
15215
|
-
[
|
|
15212
|
+
[dn, o.password]
|
|
15216
15213
|
]),
|
|
15217
15214
|
y("em", {
|
|
15218
15215
|
onClick: e[4] || (e[4] = (s) => o.revealPassword = !o.revealPassword),
|
|
@@ -15261,7 +15258,7 @@ function Ps(n, e, t, r, o, i) {
|
|
|
15261
15258
|
class: "button-center button button-90 google-button pointer"
|
|
15262
15259
|
}, [
|
|
15263
15260
|
ls,
|
|
15264
|
-
n.microsoftLoad ? (S(), P("span",
|
|
15261
|
+
n.microsoftLoad ? (S(), P("span", ds)) : (S(), P("span", us, U(n.ssoLang[n.appLanguage].sign_in_with) + " Outlook", 1))
|
|
15265
15262
|
])),
|
|
15266
15263
|
n.displayMicrosoftSSOLogin ? ee("", !0) : (S(), P("a", {
|
|
15267
15264
|
key: 6,
|
|
@@ -15455,10 +15452,10 @@ const _o = /* @__PURE__ */ We(za, [["render", Ps]]), Ms = {
|
|
|
15455
15452
|
}, cc = /* @__PURE__ */ y("img", {
|
|
15456
15453
|
src: "https://cdn.tapni.co/icons/facebook-blue.png",
|
|
15457
15454
|
style: { position: "absolute", "margin-left": "-10px", padding: "10px 0", height: "100%" }
|
|
15458
|
-
}, null, -1), lc = { key: 0 },
|
|
15455
|
+
}, null, -1), lc = { key: 0 }, uc = {
|
|
15459
15456
|
key: 1,
|
|
15460
15457
|
class: "button--loading-black button__loader"
|
|
15461
|
-
},
|
|
15458
|
+
}, dc = /* @__PURE__ */ y("img", {
|
|
15462
15459
|
src: "https://cdn.tapni.co/icons/mail.png",
|
|
15463
15460
|
style: { position: "absolute", "margin-left": "-8px", padding: "12px 0", height: "100%" }
|
|
15464
15461
|
}, null, -1), pc = /* @__PURE__ */ y("div", { class: "decoration decoration-lines-thin no-bottom" }, null, -1), hc = { class: "close-text center-text half-top color-black" }, mc = /* @__PURE__ */ y("br", null, null, -1), fc = {
|
|
@@ -15535,7 +15532,7 @@ function Cc(n, e, t, r, o, i) {
|
|
|
15535
15532
|
required: "",
|
|
15536
15533
|
minlength: "8"
|
|
15537
15534
|
}, null, 8, Ws), [
|
|
15538
|
-
[
|
|
15535
|
+
[dn, o.password]
|
|
15539
15536
|
]),
|
|
15540
15537
|
y("em", {
|
|
15541
15538
|
onClick: e[6] || (e[6] = (s) => o.revealPassword = !o.revealPassword),
|
|
@@ -15575,14 +15572,14 @@ function Cc(n, e, t, r, o, i) {
|
|
|
15575
15572
|
class: "button-center button button-90 google-button pointer"
|
|
15576
15573
|
}, [
|
|
15577
15574
|
cc,
|
|
15578
|
-
n.facebookLoad ? (S(), P("span",
|
|
15575
|
+
n.facebookLoad ? (S(), P("span", uc)) : (S(), P("span", lc, U(n.ssoLang[this.appLanguage].sign_up_with) + " Facebook", 1))
|
|
15579
15576
|
])) : ee("", !0),
|
|
15580
15577
|
o.emailLogin ? ee("", !0) : (S(), P("a", {
|
|
15581
15578
|
key: 4,
|
|
15582
15579
|
onClick: e[10] || (e[10] = (s) => o.emailLogin = !0),
|
|
15583
15580
|
class: "button-center button button-90 google-button pointer"
|
|
15584
15581
|
}, [
|
|
15585
|
-
|
|
15582
|
+
dc,
|
|
15586
15583
|
y("span", null, U(n.ssoLang[this.appLanguage].sign_up_with) + " Email", 1)
|
|
15587
15584
|
])),
|
|
15588
15585
|
pc,
|
|
@@ -15889,7 +15886,7 @@ const yo = /* @__PURE__ */ We(Ec, [["render", $c], ["__scopeId", "data-v-75db7f0
|
|
|
15889
15886
|
}, al = {
|
|
15890
15887
|
key: 1,
|
|
15891
15888
|
class: "button--loading button__loader"
|
|
15892
|
-
}, sl = /* @__PURE__ */ lt(() => /* @__PURE__ */ y("div", { class: "decoration decoration-lines-thin no-bottom half-top" }, null, -1)), cl = { class: "close-text center-text half-top color-black" }, ll = ["innerHTML"],
|
|
15889
|
+
}, sl = /* @__PURE__ */ lt(() => /* @__PURE__ */ y("div", { class: "decoration decoration-lines-thin no-bottom half-top" }, null, -1)), cl = { class: "close-text center-text half-top color-black" }, ll = ["innerHTML"], ul = ["href"], dl = /* @__PURE__ */ lt(() => /* @__PURE__ */ y("div", { class: "decoration decoration-lines-thin no-bottom half-top" }, null, -1)), pl = { class: "page-login-links" }, hl = /* @__PURE__ */ lt(() => /* @__PURE__ */ y("div", { class: "clear" }, null, -1)), ml = {
|
|
15893
15890
|
class: "bold no-bottom center-text",
|
|
15894
15891
|
style: { "margin-top": "63px" }
|
|
15895
15892
|
}, fl = { class: "half-bottom small-top center-text color-black" }, gl = { class: "page-login-field half-top" }, _l = /* @__PURE__ */ lt(() => /* @__PURE__ */ y("i", { style: { "padding-top": "15px" } }, [
|
|
@@ -15943,7 +15940,7 @@ function Ll(n, e, t, r, o, i) {
|
|
|
15943
15940
|
placeholder: n.ssoLang[this.appLanguage].password,
|
|
15944
15941
|
required: ""
|
|
15945
15942
|
}, null, 8, vl), [
|
|
15946
|
-
[
|
|
15943
|
+
[dn, o.password]
|
|
15947
15944
|
]),
|
|
15948
15945
|
y("em", {
|
|
15949
15946
|
onClick: e[4] || (e[4] = (s) => o.revealPassword = !o.revealPassword)
|
|
@@ -15964,7 +15961,7 @@ function Ll(n, e, t, r, o, i) {
|
|
|
15964
15961
|
placeholder: n.ssoLang[this.appLanguage].password_repeat,
|
|
15965
15962
|
required: ""
|
|
15966
15963
|
}, null, 8, Cl), [
|
|
15967
|
-
[
|
|
15964
|
+
[dn, o.passwordRepeat]
|
|
15968
15965
|
]),
|
|
15969
15966
|
y("em", {
|
|
15970
15967
|
onClick: e[6] || (e[6] = (s) => o.revealPassword2 = !o.revealPassword2)
|
|
@@ -16023,9 +16020,9 @@ function Ll(n, e, t, r, o, i) {
|
|
|
16023
16020
|
}, null, 8, ll),
|
|
16024
16021
|
y("a", {
|
|
16025
16022
|
href: "mailto:support@tapni.com?subject=" + n.ssoLang[this.appLanguage].password_reset_t
|
|
16026
|
-
}, " support@tapni.com", 8,
|
|
16023
|
+
}, " support@tapni.com", 8, ul)
|
|
16027
16024
|
]),
|
|
16028
|
-
|
|
16025
|
+
dl,
|
|
16029
16026
|
y("div", pl, [
|
|
16030
16027
|
ke(a, {
|
|
16031
16028
|
class: "create float-right",
|
|
@@ -16256,29 +16253,29 @@ const Co = /* @__PURE__ */ We(Fl, [["render", Jl], ["__scopeId", "data-v-11f19a0
|
|
|
16256
16253
|
class: "responsive-image",
|
|
16257
16254
|
style: { width: "45%" }
|
|
16258
16255
|
})
|
|
16259
|
-
], -1)),
|
|
16256
|
+
], -1)), eu = [
|
|
16260
16257
|
Zl
|
|
16261
|
-
],
|
|
16258
|
+
], tu = { class: "bold center-text color-black half-top half-bottom" }, nu = /* @__PURE__ */ Nn(() => /* @__PURE__ */ y("img", {
|
|
16262
16259
|
src: "https://cdn.tapni.co/icons/azure.png",
|
|
16263
16260
|
style: { position: "absolute", "margin-left": "-11px", padding: "8px 0", height: "100%" }
|
|
16264
|
-
}, null, -1)),
|
|
16261
|
+
}, null, -1)), ru = { key: 0 }, ou = {
|
|
16265
16262
|
key: 1,
|
|
16266
16263
|
class: "button--loading button__loader"
|
|
16267
|
-
},
|
|
16264
|
+
}, iu = /* @__PURE__ */ Nn(() => /* @__PURE__ */ y("img", {
|
|
16268
16265
|
src: "https://cdn.tapni.co/icons/okta.png",
|
|
16269
16266
|
style: { position: "absolute", "margin-left": "-11px", padding: "8px 0", height: "100%" }
|
|
16270
|
-
}, null, -1)),
|
|
16267
|
+
}, null, -1)), au = { key: 0 }, su = {
|
|
16271
16268
|
key: 1,
|
|
16272
16269
|
class: "button--loading button__loader"
|
|
16273
|
-
},
|
|
16270
|
+
}, cu = /* @__PURE__ */ Nn(() => /* @__PURE__ */ y("img", {
|
|
16274
16271
|
src: "https://cdn.tapni.co/icons/saml.png",
|
|
16275
16272
|
style: { position: "absolute", "margin-left": "-11px", padding: "8px 0", height: "100%" }
|
|
16276
|
-
}, null, -1)),
|
|
16273
|
+
}, null, -1)), lu = { key: 0 }, uu = {
|
|
16277
16274
|
key: 1,
|
|
16278
16275
|
class: "button--loading button__loader"
|
|
16279
16276
|
};
|
|
16280
|
-
function
|
|
16281
|
-
var a, s,
|
|
16277
|
+
function du(n, e, t, r, o, i) {
|
|
16278
|
+
var a, s, u;
|
|
16282
16279
|
return S(), P("form", {
|
|
16283
16280
|
onSubmit: e[4] || (e[4] = Oe(() => {
|
|
16284
16281
|
}, ["prevent"])),
|
|
@@ -16289,35 +16286,35 @@ function ud(n, e, t, r, o, i) {
|
|
|
16289
16286
|
onClick: e[0] || (e[0] = (...p) => i.forceClose && i.forceClose(...p)),
|
|
16290
16287
|
class: "color-black pull-right pointer",
|
|
16291
16288
|
style: { "margin-top": "5px", position: "absolute", right: "5px" }
|
|
16292
|
-
},
|
|
16293
|
-
y("h3",
|
|
16289
|
+
}, eu),
|
|
16290
|
+
y("h3", tu, U(n.ssoLang[n.appLanguage].select_sign_method), 1),
|
|
16294
16291
|
(a = o.sso) != null && a.azure ? (S(), P("a", {
|
|
16295
16292
|
key: 0,
|
|
16296
16293
|
onClick: e[1] || (e[1] = (p) => i.ssoLogin("azure")),
|
|
16297
16294
|
class: "button-center button black-button button-90 google-button pointer"
|
|
16298
16295
|
}, [
|
|
16299
|
-
|
|
16300
|
-
o.azureLoad ? (S(), P("span",
|
|
16296
|
+
nu,
|
|
16297
|
+
o.azureLoad ? (S(), P("span", ou)) : (S(), P("span", ru, U(n.ssoLang[n.appLanguage].sign_in_with) + " Azure", 1))
|
|
16301
16298
|
])) : ee("", !0),
|
|
16302
16299
|
(s = o.sso) != null && s.okta ? (S(), P("a", {
|
|
16303
16300
|
key: 1,
|
|
16304
16301
|
onClick: e[2] || (e[2] = (p) => i.ssoLogin("okta")),
|
|
16305
16302
|
class: "button-center button black-button button-90 google-button pointer"
|
|
16306
16303
|
}, [
|
|
16307
|
-
|
|
16308
|
-
o.oktaLoad ? (S(), P("span",
|
|
16304
|
+
iu,
|
|
16305
|
+
o.oktaLoad ? (S(), P("span", su)) : (S(), P("span", au, U(n.ssoLang[n.appLanguage].sign_in_with) + " Okta", 1))
|
|
16309
16306
|
])) : ee("", !0),
|
|
16310
|
-
(
|
|
16307
|
+
(u = o.sso) != null && u.saml ? (S(), P("a", {
|
|
16311
16308
|
key: 2,
|
|
16312
16309
|
onClick: e[3] || (e[3] = (p) => i.ssoLogin("saml")),
|
|
16313
16310
|
class: "button-center button black-button button-90 google-button pointer"
|
|
16314
16311
|
}, [
|
|
16315
|
-
|
|
16316
|
-
o.samlLoad ? (S(), P("span",
|
|
16312
|
+
cu,
|
|
16313
|
+
o.samlLoad ? (S(), P("span", uu)) : (S(), P("span", lu, U(n.ssoLang[n.appLanguage].sign_in_with) + " SAML", 1))
|
|
16317
16314
|
])) : ee("", !0)
|
|
16318
16315
|
], 34);
|
|
16319
16316
|
}
|
|
16320
|
-
const Eo = /* @__PURE__ */ We(Xl, [["render",
|
|
16317
|
+
const Eo = /* @__PURE__ */ We(Xl, [["render", du], ["__scopeId", "data-v-4f821f65"]]), pu = {
|
|
16321
16318
|
name: "LinkIcon",
|
|
16322
16319
|
mixins: [ze],
|
|
16323
16320
|
props: {
|
|
@@ -16389,8 +16386,8 @@ const Eo = /* @__PURE__ */ We(Xl, [["render", ud], ["__scopeId", "data-v-4f821f6
|
|
|
16389
16386
|
}
|
|
16390
16387
|
},
|
|
16391
16388
|
methods: {}
|
|
16392
|
-
},
|
|
16393
|
-
function
|
|
16389
|
+
}, hu = ["src", "alt"], mu = ["src", "alt"], fu = ["src", "alt"], gu = ["src", "alt"];
|
|
16390
|
+
function _u(n, e, t, r, o, i) {
|
|
16394
16391
|
var a, s;
|
|
16395
16392
|
return S(), P("a", {
|
|
16396
16393
|
class: Ie(["disable-select", t.linkStyle + (t.disabled ? " opacity-50" : "")]),
|
|
@@ -16411,31 +16408,31 @@ function _d(n, e, t, r, o, i) {
|
|
|
16411
16408
|
src: "https://cdn.tapni.co/icons/" + t.data.type + ".png",
|
|
16412
16409
|
class: "responsive-image",
|
|
16413
16410
|
alt: t.data.text,
|
|
16414
|
-
onLoad: e[0] || (e[0] = (
|
|
16415
|
-
onError: e[1] || (e[1] = (
|
|
16416
|
-
}, null, 40,
|
|
16411
|
+
onLoad: e[0] || (e[0] = (u) => n.$emit("loaded")),
|
|
16412
|
+
onError: e[1] || (e[1] = (u) => n.$emit("loaded"))
|
|
16413
|
+
}, null, 40, hu)) : !t.data.custom_icon && t.data.type === "customlink" && t.linkAdding ? (S(), P("img", {
|
|
16417
16414
|
key: 1,
|
|
16418
16415
|
src: "https://cdn.tapni.co/icons/custom-icon-128.gif",
|
|
16419
16416
|
class: "responsive-image",
|
|
16420
16417
|
alt: t.data.text,
|
|
16421
|
-
onLoad: e[2] || (e[2] = (
|
|
16422
|
-
onError: e[3] || (e[3] = (
|
|
16423
|
-
}, null, 40,
|
|
16418
|
+
onLoad: e[2] || (e[2] = (u) => n.$emit("loaded")),
|
|
16419
|
+
onError: e[3] || (e[3] = (u) => n.$emit("loaded"))
|
|
16420
|
+
}, null, 40, mu)) : !t.data.custom_icon && t.data.type === "customlink" && !t.linkAdding ? (S(), P("img", {
|
|
16424
16421
|
key: 2,
|
|
16425
16422
|
src: "https://cdn.tapni.co/icons/customlink.png",
|
|
16426
16423
|
class: "responsive-image",
|
|
16427
16424
|
alt: t.data.text,
|
|
16428
|
-
onLoad: e[4] || (e[4] = (
|
|
16429
|
-
onError: e[5] || (e[5] = (
|
|
16430
|
-
}, null, 40,
|
|
16425
|
+
onLoad: e[4] || (e[4] = (u) => n.$emit("loaded")),
|
|
16426
|
+
onError: e[5] || (e[5] = (u) => n.$emit("loaded"))
|
|
16427
|
+
}, null, 40, fu)) : (S(), P("img", {
|
|
16431
16428
|
key: 3,
|
|
16432
16429
|
src: t.data.style.custom_icon,
|
|
16433
16430
|
style: { "border-radius": "22.46%" },
|
|
16434
16431
|
class: "responsive-image",
|
|
16435
16432
|
alt: t.data.text,
|
|
16436
|
-
onLoad: e[6] || (e[6] = (
|
|
16437
|
-
onError: e[7] || (e[7] = (
|
|
16438
|
-
}, null, 40,
|
|
16433
|
+
onLoad: e[6] || (e[6] = (u) => n.$emit("loaded")),
|
|
16434
|
+
onError: e[7] || (e[7] = (u) => n.$emit("loaded"))
|
|
16435
|
+
}, null, 40, gu))
|
|
16439
16436
|
], 6),
|
|
16440
16437
|
y("span", {
|
|
16441
16438
|
class: "link-text link-drag color-black",
|
|
@@ -16443,17 +16440,17 @@ function _d(n, e, t, r, o, i) {
|
|
|
16443
16440
|
}, U(i.linkText), 5)
|
|
16444
16441
|
], 6);
|
|
16445
16442
|
}
|
|
16446
|
-
const
|
|
16443
|
+
const vu = /* @__PURE__ */ We(pu, [["render", _u]]), yu = {
|
|
16447
16444
|
ANDROID_VERSION: "5.6",
|
|
16448
16445
|
IOS_VERSION: "5.6",
|
|
16449
16446
|
WEB_VERSION: "5.6.0",
|
|
16450
16447
|
SUPPORTED_LANGUAGES: ["en", "de", "es", "kr", "it", "fr"],
|
|
16451
16448
|
METAPIXEL_ID: "1203678696914368",
|
|
16452
16449
|
GOOGLE_ANALYTICS_ID: ""
|
|
16453
|
-
},
|
|
16450
|
+
}, ku = {
|
|
16454
16451
|
name: "Language",
|
|
16455
16452
|
mixins: [ze],
|
|
16456
|
-
components: { LinkIcon:
|
|
16453
|
+
components: { LinkIcon: vu },
|
|
16457
16454
|
data() {
|
|
16458
16455
|
return {
|
|
16459
16456
|
toggle: !1
|
|
@@ -16464,7 +16461,7 @@ const vd = /* @__PURE__ */ We(pd, [["render", _d]]), yd = {
|
|
|
16464
16461
|
this.toggle = !1;
|
|
16465
16462
|
});
|
|
16466
16463
|
let n = this.isNative ? await pn.getLanguageCode() : zt.getFirstBrowserLanguage();
|
|
16467
|
-
n &&
|
|
16464
|
+
n && yu.SUPPORTED_LANGUAGES.includes(n) && this.updateLanguage(n);
|
|
16468
16465
|
},
|
|
16469
16466
|
beforeDestroy() {
|
|
16470
16467
|
z._events.toggleSSOLanguageModal.pop();
|
|
@@ -16483,16 +16480,16 @@ const vd = /* @__PURE__ */ We(pd, [["render", _d]]), yd = {
|
|
|
16483
16480
|
this.toggle = !this.toggle;
|
|
16484
16481
|
}
|
|
16485
16482
|
}
|
|
16486
|
-
},
|
|
16483
|
+
}, wu = (n) => (Dt("data-v-29699ad7"), n = n(), Ht(), n), bu = /* @__PURE__ */ wu(() => /* @__PURE__ */ y("i", { class: "font-17 fa color-black" }, [
|
|
16487
16484
|
/* @__PURE__ */ y("img", {
|
|
16488
16485
|
src: "https://cdn.tapni.co/icons/down-arrow.png",
|
|
16489
16486
|
class: "fa responsive-image",
|
|
16490
16487
|
style: { width: "45%" }
|
|
16491
16488
|
})
|
|
16492
|
-
], -1)),
|
|
16493
|
-
|
|
16494
|
-
],
|
|
16495
|
-
function
|
|
16489
|
+
], -1)), Cu = [
|
|
16490
|
+
bu
|
|
16491
|
+
], Eu = { class: "bold center-text color-black small-bottom" };
|
|
16492
|
+
function Tu(n, e, t, r, o, i) {
|
|
16496
16493
|
const a = Bt("LinkIcon");
|
|
16497
16494
|
return S(), P("div", {
|
|
16498
16495
|
class: Ie(["menu-wrapper menu-light menu-white menu-modal center-text activate-page", { "active-menu": o.toggle }]),
|
|
@@ -16502,8 +16499,8 @@ function Td(n, e, t, r, o, i) {
|
|
|
16502
16499
|
onClick: e[0] || (e[0] = (...s) => i.close && i.close(...s)),
|
|
16503
16500
|
class: "color-black pull-right pointer",
|
|
16504
16501
|
style: { "margin-top": "5px", position: "absolute", right: "5px" }
|
|
16505
|
-
},
|
|
16506
|
-
y("h3",
|
|
16502
|
+
}, Cu),
|
|
16503
|
+
y("h3", Eu, U(n.ssoLang[n.appLanguage].app_language), 1),
|
|
16507
16504
|
ke(a, {
|
|
16508
16505
|
onClick: e[1] || (e[1] = (s) => i.updateLanguage("en")),
|
|
16509
16506
|
"link-style": "link-grid",
|
|
@@ -16562,38 +16559,38 @@ function Td(n, e, t, r, o, i) {
|
|
|
16562
16559
|
}, null, 8, ["data"])
|
|
16563
16560
|
], 2);
|
|
16564
16561
|
}
|
|
16565
|
-
const To = /* @__PURE__ */ We(
|
|
16566
|
-
var
|
|
16567
|
-
const
|
|
16562
|
+
const To = /* @__PURE__ */ We(ku, [["render", Tu], ["__scopeId", "data-v-29699ad7"]]);
|
|
16563
|
+
var Iu = { VITE_APP_MODE: "npm", VITE_APP_APP_ROOT: "https://t.link", VITE_APP_API_ROOT: "https://api.tapni.co", VITE_APP_GOOGLE_RECAPTCHA_SITE_KEY: "6LenkC0mAAAAADWBxPOhpmwXCwzCJd7cilNgtOLk", VITE_APP_SSO_ID: "9cd47053-080a-4df8-8fd8-ca4389163fde", VITE_APP_POPUP_LOGIN_ALLOWED_ORIGIN: "https://auth.tapni.com", BASE_URL: "/", MODE: "production", DEV: !1, PROD: !0, SSR: !1 };
|
|
16564
|
+
const Su = { id: "ssoapp" }, Au = {
|
|
16568
16565
|
key: 0,
|
|
16569
16566
|
href: "/",
|
|
16570
16567
|
class: "header-logo"
|
|
16571
|
-
},
|
|
16568
|
+
}, Ru = /* @__PURE__ */ y("img", {
|
|
16572
16569
|
src: "data:image/png;base64,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",
|
|
16573
16570
|
onerror: "this.onerror=null;this.src='https://cdn.tapni.co/images/logo-dark.png';",
|
|
16574
16571
|
class: "header-logo-img"
|
|
16575
|
-
}, null, -1),
|
|
16576
|
-
|
|
16577
|
-
],
|
|
16572
|
+
}, null, -1), Pu = [
|
|
16573
|
+
Ru
|
|
16574
|
+
], Mu = { class: "lang-icon" }, Nu = {
|
|
16578
16575
|
class: "snackbar snackbar-boxed",
|
|
16579
16576
|
id: "snackbar"
|
|
16580
|
-
},
|
|
16577
|
+
}, Lu = {
|
|
16581
16578
|
class: "snack-body",
|
|
16582
16579
|
id: "errorSnack"
|
|
16583
|
-
},
|
|
16580
|
+
}, Ou = { id: "errorMessage" }, zu = /* @__PURE__ */ y("img", {
|
|
16584
16581
|
src: "https://cdn.tapni.co/icons/notification-close.png",
|
|
16585
16582
|
style: { width: "100%" }
|
|
16586
|
-
}, null, -1),
|
|
16587
|
-
|
|
16588
|
-
],
|
|
16583
|
+
}, null, -1), Uu = [
|
|
16584
|
+
zu
|
|
16585
|
+
], xu = {
|
|
16589
16586
|
class: "snack-body",
|
|
16590
16587
|
id: "successSnack"
|
|
16591
|
-
},
|
|
16588
|
+
}, Bu = { id: "successMessage" }, Du = /* @__PURE__ */ y("img", {
|
|
16592
16589
|
src: "https://cdn.tapni.co/icons/notification-close.png",
|
|
16593
16590
|
style: { width: "100%" }
|
|
16594
|
-
}, null, -1),
|
|
16595
|
-
|
|
16596
|
-
],
|
|
16591
|
+
}, null, -1), Hu = [
|
|
16592
|
+
Du
|
|
16593
|
+
], qu = {
|
|
16597
16594
|
name: "TapniAuth",
|
|
16598
16595
|
mixins: [ze],
|
|
16599
16596
|
data() {
|
|
@@ -16666,20 +16663,20 @@ const Sd = { id: "ssoapp" }, Ad = {
|
|
|
16666
16663
|
});
|
|
16667
16664
|
}
|
|
16668
16665
|
}
|
|
16669
|
-
}, Hr = /* @__PURE__ */ Object.assign(
|
|
16666
|
+
}, Hr = /* @__PURE__ */ Object.assign(qu, {
|
|
16670
16667
|
setup(n) {
|
|
16671
16668
|
return document.addEventListener("DOMContentLoaded", function() {
|
|
16672
16669
|
const e = document.createElement("script");
|
|
16673
|
-
e.src = `https://www.google.com/recaptcha/api.js?render=${
|
|
16674
|
-
}), (e, t) => (S(), P("div",
|
|
16675
|
-
e.display === "redirect" || e.renderView.includes("Auth") ? (S(), P("a",
|
|
16670
|
+
e.src = `https://www.google.com/recaptcha/api.js?render=${Iu.VITE_GOOGLE_RECAPTCHA_SITE_KEY}`, document.head.appendChild(e);
|
|
16671
|
+
}), (e, t) => (S(), P("div", Su, [
|
|
16672
|
+
e.display === "redirect" || e.renderView.includes("Auth") ? (S(), P("a", Au, Pu)) : ee("", !0),
|
|
16676
16673
|
e.display === "redirect" ? (S(), P("a", {
|
|
16677
16674
|
key: 1,
|
|
16678
16675
|
onClick: t[0] || (t[0] = (...r) => e.toggleSSOLanguageModal && e.toggleSSOLanguageModal(...r)),
|
|
16679
16676
|
class: "font-18 no-border pointer color-black",
|
|
16680
16677
|
style: { position: "absolute", right: "20px", top: "-10px", "z-index": "1" }
|
|
16681
16678
|
}, [
|
|
16682
|
-
y("span",
|
|
16679
|
+
y("span", Mu, U(e.appLanguage.toUpperCase()), 1)
|
|
16683
16680
|
])) : ee("", !0),
|
|
16684
16681
|
ke(bo),
|
|
16685
16682
|
n.isModal ? ee("", !0) : (S(), qe(To, { key: 2 })),
|
|
@@ -16695,25 +16692,25 @@ const Sd = { id: "ssoapp" }, Ad = {
|
|
|
16695
16692
|
key: 8,
|
|
16696
16693
|
isModal: n.isModal
|
|
16697
16694
|
}, null, 8, ["isModal"])) : e.initialized && e.renderView === "AuthReset" ? (S(), qe(ko, { key: 9 })) : e.initialized && e.renderView === "AuthCallback" ? (S(), qe(wo, { key: 10 })) : e.display !== "npm" ? (S(), qe(Qo(Yo), { key: 11 })) : ee("", !0),
|
|
16698
|
-
y("div",
|
|
16699
|
-
y("p",
|
|
16700
|
-
y("span",
|
|
16695
|
+
y("div", Nu, [
|
|
16696
|
+
y("p", Lu, [
|
|
16697
|
+
y("span", Ou, U(e.ssoLang[e.appLanguage].error), 1),
|
|
16701
16698
|
y("a", {
|
|
16702
16699
|
onClick: t[1] || (t[1] = (...r) => e.closeSnacks && e.closeSnacks(...r)),
|
|
16703
16700
|
style: { position: "absolute", right: "10px", top: "10px", width: "50px", height: "50px" }
|
|
16704
|
-
},
|
|
16701
|
+
}, Uu)
|
|
16705
16702
|
]),
|
|
16706
|
-
y("p",
|
|
16707
|
-
y("span",
|
|
16703
|
+
y("p", xu, [
|
|
16704
|
+
y("span", Bu, U(e.ssoLang[e.appLanguage].success), 1),
|
|
16708
16705
|
y("a", {
|
|
16709
16706
|
onClick: t[2] || (t[2] = (...r) => e.closeSnacks && e.closeSnacks(...r)),
|
|
16710
16707
|
style: { position: "absolute", right: "10px", top: "10px", width: "50px", height: "50px" }
|
|
16711
|
-
},
|
|
16708
|
+
}, Hu)
|
|
16712
16709
|
])
|
|
16713
16710
|
])
|
|
16714
16711
|
]));
|
|
16715
16712
|
}
|
|
16716
|
-
}),
|
|
16713
|
+
}), Zu = {
|
|
16717
16714
|
TapniAuth: Hr,
|
|
16718
16715
|
AuthMixin: ze,
|
|
16719
16716
|
install: (n, e) => {
|
|
@@ -16721,5 +16718,5 @@ const Sd = { id: "ssoapp" }, Ad = {
|
|
|
16721
16718
|
}
|
|
16722
16719
|
};
|
|
16723
16720
|
export {
|
|
16724
|
-
|
|
16721
|
+
Zu as default
|
|
16725
16722
|
};
|