@tapni/auth 0.0.86 → 0.0.88
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 +831 -835
- package/dist/TapniAuth.umd.js +3 -3
- package/package.json +1 -1
- package/src/App.vue +2 -2
- package/src/mixins/auth.mixin.js +2 -2
- package/src/services/Api.js +0 -4
package/dist/TapniAuth.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { reactive as Ko, readonly as Go, resolveComponent as Dt, openBlock as S, createElementBlock as P, createElementVNode as y, toDisplayString as z, createCommentVNode as
|
|
1
|
+
import { reactive as Ko, readonly as Go, resolveComponent as Dt, openBlock as S, createElementBlock as P, createElementVNode as y, toDisplayString as z, createCommentVNode as te, createVNode as ke, withCtx as nt, createTextVNode as se, pushScopeId as Ht, popScopeId as qt, createStaticVNode as Vo, nextTick as vr, withModifiers as Oe, normalizeStyle as Ot, withDirectives as me, withKeys as kt, vModelText as wt, vModelDynamic as un, 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 Z from "await-to-js";
|
|
4
4
|
import Xn from "axios";
|
|
@@ -8,7 +8,7 @@ import { Capacitor as Qt, registerPlugin as In, WebPlugin as Wo } from "@capacit
|
|
|
8
8
|
import { Browser as hn } from "@capacitor/browser";
|
|
9
9
|
import $o from "qr-code-styling";
|
|
10
10
|
import { sanitizeUrl as Jo } from "@braintree/sanitize-url";
|
|
11
|
-
const Xo = "0.0.
|
|
11
|
+
const Xo = "0.0.88";
|
|
12
12
|
let Un;
|
|
13
13
|
const Ft = {
|
|
14
14
|
setApiRootFromOptions(n) {
|
|
@@ -39,9 +39,9 @@ const Ft = {
|
|
|
39
39
|
lang: n.appLanguage,
|
|
40
40
|
realm: n.realm || "app"
|
|
41
41
|
} : {}
|
|
42
|
-
}),
|
|
42
|
+
}), n && n.token && !e) {
|
|
43
43
|
const a = qr(n.token);
|
|
44
|
-
if (
|
|
44
|
+
if (a.exp - 30 < Math.floor(Date.now() / 1e3))
|
|
45
45
|
return ze.methods.refreshTokenAction(a).then((s) => (i.headers = {
|
|
46
46
|
...i.headers,
|
|
47
47
|
Authorization: `Bearer ${s}`
|
|
@@ -4597,9 +4597,8 @@ const ze = {
|
|
|
4597
4597
|
if (t.data.success)
|
|
4598
4598
|
return t.data;
|
|
4599
4599
|
},
|
|
4600
|
-
async getLoggedInAccounts() {
|
|
4601
|
-
|
|
4602
|
-
if (n && n.length >= 1) {
|
|
4600
|
+
async getLoggedInAccounts(n) {
|
|
4601
|
+
if (n || (n = this.getRefreshTokens()), n && n.length >= 1) {
|
|
4603
4602
|
const [e, t] = await Z(
|
|
4604
4603
|
Ne.getLoggedInAccounts({ refreshTokens: n }, this.$storage)
|
|
4605
4604
|
);
|
|
@@ -4682,7 +4681,7 @@ const ze = {
|
|
|
4682
4681
|
type: "video/mp4"
|
|
4683
4682
|
}, null, -1)), ai = [
|
|
4684
4683
|
ii
|
|
4685
|
-
], 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" },
|
|
4684
|
+
], 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" }, di = /* @__PURE__ */ $r(() => /* @__PURE__ */ y("div", { class: "clear" }, null, -1)), ui = {
|
|
4686
4685
|
key: 2,
|
|
4687
4686
|
style: { display: "flex", "flex-direction": "row", "justify-content": "space-around", width: "90%", margin: "0 auto", "margin-top": "40px" }
|
|
4688
4687
|
}, 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 = [
|
|
@@ -4702,8 +4701,8 @@ function mi(n, e, t, r, o, i) {
|
|
|
4702
4701
|
}, ai, 8, oi),
|
|
4703
4702
|
y("h1", si, z(n.ssoLang[this.appLanguage].welcome), 1),
|
|
4704
4703
|
y("p", ci, z(n.ssoLang[this.appLanguage].welcome_p1), 1),
|
|
4705
|
-
|
|
4706
|
-
|
|
4704
|
+
te("", !0),
|
|
4705
|
+
te("", !0),
|
|
4707
4706
|
ke(a, {
|
|
4708
4707
|
to: "register",
|
|
4709
4708
|
exact: "",
|
|
@@ -4722,9 +4721,9 @@ function mi(n, e, t, r, o, i) {
|
|
|
4722
4721
|
]),
|
|
4723
4722
|
_: 1
|
|
4724
4723
|
}),
|
|
4725
|
-
|
|
4724
|
+
di
|
|
4726
4725
|
]),
|
|
4727
|
-
this.isNative ?
|
|
4726
|
+
this.isNative ? te("", !0) : (S(), P("div", ui, hi))
|
|
4728
4727
|
]);
|
|
4729
4728
|
}
|
|
4730
4729
|
const Jr = /* @__PURE__ */ We(ni, [["render", mi], ["__scopeId", "data-v-67088d6f"]]), wr = In("GoogleAuth", {
|
|
@@ -4922,22 +4921,22 @@ function T(n, e, t, r) {
|
|
|
4922
4921
|
});
|
|
4923
4922
|
}
|
|
4924
4923
|
return new (t || (t = Promise))(function(i, a) {
|
|
4925
|
-
function s(
|
|
4924
|
+
function s(u) {
|
|
4926
4925
|
try {
|
|
4927
|
-
p(r.next(
|
|
4926
|
+
p(r.next(u));
|
|
4928
4927
|
} catch (f) {
|
|
4929
4928
|
a(f);
|
|
4930
4929
|
}
|
|
4931
4930
|
}
|
|
4932
|
-
function u
|
|
4931
|
+
function d(u) {
|
|
4933
4932
|
try {
|
|
4934
|
-
p(r.throw(
|
|
4933
|
+
p(r.throw(u));
|
|
4935
4934
|
} catch (f) {
|
|
4936
4935
|
a(f);
|
|
4937
4936
|
}
|
|
4938
4937
|
}
|
|
4939
|
-
function p(
|
|
4940
|
-
|
|
4938
|
+
function p(u) {
|
|
4939
|
+
u.done ? i(u.value) : o(u.value).then(s, d);
|
|
4941
4940
|
}
|
|
4942
4941
|
p((r = r.apply(n, e || [])).next());
|
|
4943
4942
|
});
|
|
@@ -4952,11 +4951,11 @@ function I(n, e) {
|
|
|
4952
4951
|
return this;
|
|
4953
4952
|
}), a;
|
|
4954
4953
|
function s(p) {
|
|
4955
|
-
return function(
|
|
4956
|
-
return
|
|
4954
|
+
return function(u) {
|
|
4955
|
+
return d([p, u]);
|
|
4957
4956
|
};
|
|
4958
4957
|
}
|
|
4959
|
-
function
|
|
4958
|
+
function d(p) {
|
|
4960
4959
|
if (r)
|
|
4961
4960
|
throw new TypeError("Generator is already executing.");
|
|
4962
4961
|
for (; t; )
|
|
@@ -4997,8 +4996,8 @@ function I(n, e) {
|
|
|
4997
4996
|
continue;
|
|
4998
4997
|
}
|
|
4999
4998
|
p = e.call(n, t);
|
|
5000
|
-
} catch (
|
|
5001
|
-
p = [6,
|
|
4999
|
+
} catch (u) {
|
|
5000
|
+
p = [6, u], o = 0;
|
|
5002
5001
|
} finally {
|
|
5003
5002
|
r = i = 0;
|
|
5004
5003
|
}
|
|
@@ -5079,22 +5078,22 @@ function j(n, e, t, r) {
|
|
|
5079
5078
|
});
|
|
5080
5079
|
}
|
|
5081
5080
|
return new (t || (t = Promise))(function(i, a) {
|
|
5082
|
-
function s(
|
|
5081
|
+
function s(u) {
|
|
5083
5082
|
try {
|
|
5084
|
-
p(r.next(
|
|
5083
|
+
p(r.next(u));
|
|
5085
5084
|
} catch (f) {
|
|
5086
5085
|
a(f);
|
|
5087
5086
|
}
|
|
5088
5087
|
}
|
|
5089
|
-
function u
|
|
5088
|
+
function d(u) {
|
|
5090
5089
|
try {
|
|
5091
|
-
p(r.throw(
|
|
5090
|
+
p(r.throw(u));
|
|
5092
5091
|
} catch (f) {
|
|
5093
5092
|
a(f);
|
|
5094
5093
|
}
|
|
5095
5094
|
}
|
|
5096
|
-
function p(
|
|
5097
|
-
|
|
5095
|
+
function p(u) {
|
|
5096
|
+
u.done ? i(u.value) : o(u.value).then(s, d);
|
|
5098
5097
|
}
|
|
5099
5098
|
p((r = r.apply(n, e || [])).next());
|
|
5100
5099
|
});
|
|
@@ -5109,11 +5108,11 @@ function K(n, e) {
|
|
|
5109
5108
|
return this;
|
|
5110
5109
|
}), a;
|
|
5111
5110
|
function s(p) {
|
|
5112
|
-
return function(
|
|
5113
|
-
return
|
|
5111
|
+
return function(u) {
|
|
5112
|
+
return d([p, u]);
|
|
5114
5113
|
};
|
|
5115
5114
|
}
|
|
5116
|
-
function
|
|
5115
|
+
function d(p) {
|
|
5117
5116
|
if (r)
|
|
5118
5117
|
throw new TypeError("Generator is already executing.");
|
|
5119
5118
|
for (; t; )
|
|
@@ -5154,8 +5153,8 @@ function K(n, e) {
|
|
|
5154
5153
|
continue;
|
|
5155
5154
|
}
|
|
5156
5155
|
p = e.call(n, t);
|
|
5157
|
-
} catch (
|
|
5158
|
-
p = [6,
|
|
5156
|
+
} catch (u) {
|
|
5157
|
+
p = [6, u], o = 0;
|
|
5159
5158
|
} finally {
|
|
5160
5159
|
r = i = 0;
|
|
5161
5160
|
}
|
|
@@ -5309,10 +5308,10 @@ var ye = {
|
|
|
5309
5308
|
OVERFLOW_TRUE: "1",
|
|
5310
5309
|
OVERFLOW_FALSE: "0",
|
|
5311
5310
|
UNKNOWN_ERROR: "unknown_error"
|
|
5312
|
-
},
|
|
5311
|
+
}, ne;
|
|
5313
5312
|
(function(n) {
|
|
5314
5313
|
n.BEARER = "Bearer", n.POP = "pop", n.SSH = "ssh-cert";
|
|
5315
|
-
})(
|
|
5314
|
+
})(ne || (ne = {}));
|
|
5316
5315
|
var Jt = {
|
|
5317
5316
|
// Default time to throttle RequestThumbprint in seconds
|
|
5318
5317
|
DEFAULT_THROTTLE_TIME_SECONDS: 60,
|
|
@@ -5333,10 +5332,10 @@ var Rt;
|
|
|
5333
5332
|
(function(n) {
|
|
5334
5333
|
n[n.httpSuccess = 200] = "httpSuccess", n[n.httpBadRequest = 400] = "httpBadRequest";
|
|
5335
5334
|
})(Rt || (Rt = {}));
|
|
5336
|
-
var
|
|
5335
|
+
var ut;
|
|
5337
5336
|
(function(n) {
|
|
5338
5337
|
n.FAILED_AUTO_DETECTION = "1", n.INTERNAL_CACHE = "2", n.ENVIRONMENT_VARIABLE = "3", n.IMDS = "4";
|
|
5339
|
-
})(
|
|
5338
|
+
})(ut || (ut = {}));
|
|
5340
5339
|
var Xt;
|
|
5341
5340
|
(function(n) {
|
|
5342
5341
|
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";
|
|
@@ -5782,8 +5781,8 @@ var L = (
|
|
|
5782
5781
|
};
|
|
5783
5782
|
return r.forEach(function(i) {
|
|
5784
5783
|
if (i.trim()) {
|
|
5785
|
-
var a = i.split(/=(.+)/g, 2), s = a[0],
|
|
5786
|
-
s &&
|
|
5784
|
+
var a = i.split(/=(.+)/g, 2), s = a[0], d = a[1];
|
|
5785
|
+
s && d && (t[o(s)] = o(d));
|
|
5787
5786
|
}
|
|
5788
5787
|
}), t;
|
|
5789
5788
|
}, n.trimArrayEntries = function(e) {
|
|
@@ -6223,34 +6222,34 @@ var we = (
|
|
|
6223
6222
|
e.tenantId || g.EMPTY_STRING
|
|
6224
6223
|
];
|
|
6225
6224
|
return t.join(fe.CACHE_KEY_SEPARATOR).toLowerCase();
|
|
6226
|
-
}, n.createAccount = function(e, t, r, o, i, a, s,
|
|
6227
|
-
var p,
|
|
6228
|
-
N.authorityType = ot.MSSTS_ACCOUNT_TYPE, N.clientInfo = e, N.homeAccountId = t, N.nativeAccountId =
|
|
6225
|
+
}, n.createAccount = function(e, t, r, o, i, a, s, d) {
|
|
6226
|
+
var p, u, f, _, k, E, N = new n();
|
|
6227
|
+
N.authorityType = ot.MSSTS_ACCOUNT_TYPE, N.clientInfo = e, N.homeAccountId = t, N.nativeAccountId = d;
|
|
6229
6228
|
var Q = s || o && o.getPreferredCache();
|
|
6230
6229
|
if (!Q)
|
|
6231
6230
|
throw O.createInvalidCacheEnvironmentError();
|
|
6232
6231
|
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) {
|
|
6233
|
-
N.idTokenClaims = r.claims, N.localAccountId = ((
|
|
6232
|
+
N.idTokenClaims = r.claims, N.localAccountId = ((u = r == null ? void 0 : r.claims) === null || u === void 0 ? void 0 : u.oid) || ((f = r == null ? void 0 : r.claims) === null || f === void 0 ? void 0 : f.sub) || g.EMPTY_STRING;
|
|
6234
6233
|
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;
|
|
6235
6234
|
N.username = X || G || g.EMPTY_STRING, N.name = (E = r == null ? void 0 : r.claims) === null || E === void 0 ? void 0 : E.name;
|
|
6236
6235
|
}
|
|
6237
6236
|
return N.cloudGraphHostName = i, N.msGraphHost = a, N;
|
|
6238
6237
|
}, n.createGenericAccount = function(e, t, r, o, i, a) {
|
|
6239
|
-
var s,
|
|
6238
|
+
var s, d, p, u, f = new n();
|
|
6240
6239
|
f.authorityType = r && r.authorityType === Se.Adfs ? ot.ADFS_ACCOUNT_TYPE : ot.GENERIC_ACCOUNT_TYPE, f.homeAccountId = e, f.realm = g.EMPTY_STRING;
|
|
6241
6240
|
var _ = a || r && r.getPreferredCache();
|
|
6242
6241
|
if (!_)
|
|
6243
6242
|
throw O.createInvalidCacheEnvironmentError();
|
|
6244
|
-
return t && (f.localAccountId = ((s = t == null ? void 0 : t.claims) === null || s === void 0 ? void 0 : s.oid) || ((
|
|
6243
|
+
return t && (f.localAccountId = ((s = t == null ? void 0 : t.claims) === null || s === void 0 ? void 0 : s.oid) || ((d = t == null ? void 0 : t.claims) === null || d === void 0 ? void 0 : d.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 = ((u = t == null ? void 0 : t.claims) === null || u === void 0 ? void 0 : u.name) || g.EMPTY_STRING, f.idTokenClaims = t == null ? void 0 : t.claims), f.environment = _, f.cloudGraphHostName = o, f.msGraphHost = i, f;
|
|
6245
6244
|
}, n.generateHomeAccountId = function(e, t, r, o, i) {
|
|
6246
6245
|
var a, s = !((a = i == null ? void 0 : i.claims) === null || a === void 0) && a.sub ? i.claims.sub : g.EMPTY_STRING;
|
|
6247
6246
|
if (t === Se.Adfs || t === Se.Dsts)
|
|
6248
6247
|
return s;
|
|
6249
6248
|
if (e)
|
|
6250
6249
|
try {
|
|
6251
|
-
var
|
|
6252
|
-
if (!L.isEmpty(
|
|
6253
|
-
return "" +
|
|
6250
|
+
var d = vn(e, o);
|
|
6251
|
+
if (!L.isEmpty(d.uid) && !L.isEmpty(d.utid))
|
|
6252
|
+
return "" + d.uid + fe.CLIENT_INFO_SEPARATOR + d.utid;
|
|
6254
6253
|
} catch {
|
|
6255
6254
|
}
|
|
6256
6255
|
return r.verbose("No client info in response"), s;
|
|
@@ -6351,12 +6350,12 @@ var Me = (
|
|
|
6351
6350
|
realm: e.realm,
|
|
6352
6351
|
tokenType: e.tokenType,
|
|
6353
6352
|
requestedClaimsHash: e.requestedClaimsHash
|
|
6354
|
-
}, r = this.getTokenKeys(), o = Ee.fromString(e.target), i = [], r.accessToken.forEach(function(
|
|
6355
|
-
if (a.accessTokenKeyMatchesFilter(
|
|
6356
|
-
var p = a.getAccessTokenCredential(
|
|
6353
|
+
}, r = this.getTokenKeys(), o = Ee.fromString(e.target), i = [], r.accessToken.forEach(function(d) {
|
|
6354
|
+
if (a.accessTokenKeyMatchesFilter(d, t, !1)) {
|
|
6355
|
+
var p = a.getAccessTokenCredential(d);
|
|
6357
6356
|
if (p && a.credentialMatchesFilter(p, t)) {
|
|
6358
|
-
var
|
|
6359
|
-
|
|
6357
|
+
var u = Ee.fromString(p.target);
|
|
6358
|
+
u.intersectingScopeSets(o) && i.push(a.removeAccessToken(d));
|
|
6360
6359
|
}
|
|
6361
6360
|
}
|
|
6362
6361
|
}), [4, Promise.all(i)];
|
|
@@ -6392,7 +6391,7 @@ var Me = (
|
|
|
6392
6391
|
return !1;
|
|
6393
6392
|
return !0;
|
|
6394
6393
|
}, n.prototype.credentialMatchesFilter = function(e, t) {
|
|
6395
|
-
return !(t.clientId && !this.matchClientId(e, t.clientId) || t.userAssertionHash && !this.matchUserAssertionHash(e, t.userAssertionHash) || typeof t.homeAccountId == "string" && !this.matchHomeAccountId(e, t.homeAccountId) || t.environment && !this.matchEnvironment(e, t.environment) || t.realm && !this.matchRealm(e, t.realm) || t.credentialType && !this.matchCredentialType(e, t.credentialType) || t.familyId && !this.matchFamilyId(e, t.familyId) || t.target && !this.matchTarget(e, t.target) || (t.requestedClaimsHash || e.requestedClaimsHash) && e.requestedClaimsHash !== t.requestedClaimsHash || e.credentialType === H.ACCESS_TOKEN_WITH_AUTH_SCHEME && (t.tokenType && !this.matchTokenType(e, t.tokenType) || t.tokenType ===
|
|
6394
|
+
return !(t.clientId && !this.matchClientId(e, t.clientId) || t.userAssertionHash && !this.matchUserAssertionHash(e, t.userAssertionHash) || typeof t.homeAccountId == "string" && !this.matchHomeAccountId(e, t.homeAccountId) || t.environment && !this.matchEnvironment(e, t.environment) || t.realm && !this.matchRealm(e, t.realm) || t.credentialType && !this.matchCredentialType(e, t.credentialType) || t.familyId && !this.matchFamilyId(e, t.familyId) || t.target && !this.matchTarget(e, t.target) || (t.requestedClaimsHash || e.requestedClaimsHash) && e.requestedClaimsHash !== t.requestedClaimsHash || e.credentialType === H.ACCESS_TOKEN_WITH_AUTH_SCHEME && (t.tokenType && !this.matchTokenType(e, t.tokenType) || t.tokenType === ne.SSH && t.keyId && !this.matchKeyId(e, t.keyId)));
|
|
6396
6395
|
}, n.prototype.getAppMetadataFilteredBy = function(e) {
|
|
6397
6396
|
return this.getAppMetadataFilteredByInternal(e.environment, e.clientId);
|
|
6398
6397
|
}, n.prototype.getAppMetadataFilteredByInternal = function(e, t) {
|
|
@@ -6479,7 +6478,7 @@ var Me = (
|
|
|
6479
6478
|
];
|
|
6480
6479
|
if (t.credentialType.toLowerCase() !== H.ACCESS_TOKEN_WITH_AUTH_SCHEME.toLowerCase())
|
|
6481
6480
|
return [3, 4];
|
|
6482
|
-
if (t.tokenType !==
|
|
6481
|
+
if (t.tokenType !== ne.POP)
|
|
6483
6482
|
return [3, 4];
|
|
6484
6483
|
if (r = t, o = r.keyId, !o)
|
|
6485
6484
|
return [3, 4];
|
|
@@ -6501,12 +6500,12 @@ var Me = (
|
|
|
6501
6500
|
e.isAppMetadata(r) && e.removeItem(r);
|
|
6502
6501
|
}), !0;
|
|
6503
6502
|
}, n.prototype.readCacheRecord = function(e, t, r) {
|
|
6504
|
-
var o = this.getTokenKeys(), i = this.readAccountFromCache(e), a = this.getIdToken(e, o), s = this.getAccessToken(e, t, o),
|
|
6503
|
+
var o = this.getTokenKeys(), i = this.readAccountFromCache(e), a = this.getIdToken(e, o), s = this.getAccessToken(e, t, o), d = this.getRefreshToken(e, !1, o), p = this.readAppMetadataFromCache(r);
|
|
6505
6504
|
return i && a && (i.idTokenClaims = new rt(a.secret, this.cryptoImpl).claims), {
|
|
6506
6505
|
account: i,
|
|
6507
6506
|
idToken: a,
|
|
6508
6507
|
accessToken: s,
|
|
6509
|
-
refreshToken:
|
|
6508
|
+
refreshToken: d,
|
|
6510
6509
|
appMetadata: p
|
|
6511
6510
|
};
|
|
6512
6511
|
}, n.prototype.readAccountFromCache = function(e) {
|
|
@@ -6543,7 +6542,7 @@ var Me = (
|
|
|
6543
6542
|
}, n.prototype.getAccessToken = function(e, t, r) {
|
|
6544
6543
|
var o = this;
|
|
6545
6544
|
this.commonLogger.trace("CacheManager - getAccessToken called");
|
|
6546
|
-
var i = Ee.createSearchScopes(t.scopes), a = t.authenticationScheme ||
|
|
6545
|
+
var i = Ee.createSearchScopes(t.scopes), a = t.authenticationScheme || ne.BEARER, s = a && a.toLowerCase() !== ne.BEARER.toLowerCase() ? H.ACCESS_TOKEN_WITH_AUTH_SCHEME : H.ACCESS_TOKEN, d = {
|
|
6547
6546
|
homeAccountId: e.homeAccountId,
|
|
6548
6547
|
environment: e.environment,
|
|
6549
6548
|
credentialType: s,
|
|
@@ -6553,17 +6552,17 @@ var Me = (
|
|
|
6553
6552
|
tokenType: a,
|
|
6554
6553
|
keyId: t.sshKid,
|
|
6555
6554
|
requestedClaimsHash: t.requestedClaimsHash
|
|
6556
|
-
}, p = r && r.accessToken || this.getTokenKeys().accessToken,
|
|
6555
|
+
}, p = r && r.accessToken || this.getTokenKeys().accessToken, u = [];
|
|
6557
6556
|
p.forEach(function(_) {
|
|
6558
|
-
if (o.accessTokenKeyMatchesFilter(_,
|
|
6557
|
+
if (o.accessTokenKeyMatchesFilter(_, d, !0)) {
|
|
6559
6558
|
var k = o.getAccessTokenCredential(_);
|
|
6560
|
-
k && o.credentialMatchesFilter(k,
|
|
6559
|
+
k && o.credentialMatchesFilter(k, d) && u.push(k);
|
|
6561
6560
|
}
|
|
6562
6561
|
});
|
|
6563
|
-
var f =
|
|
6564
|
-
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"),
|
|
6562
|
+
var f = u.length;
|
|
6563
|
+
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"), u.forEach(function(_) {
|
|
6565
6564
|
o.removeAccessToken(_.generateCredentialKey());
|
|
6566
|
-
}), null) : (this.commonLogger.info("CacheManager:getAccessToken - Returning access token"),
|
|
6565
|
+
}), null) : (this.commonLogger.info("CacheManager:getAccessToken - Returning access token"), u[0]);
|
|
6567
6566
|
}, n.prototype.accessTokenKeyMatchesFilter = function(e, t, r) {
|
|
6568
6567
|
var o = e.toLowerCase();
|
|
6569
6568
|
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)
|
|
@@ -6593,15 +6592,15 @@ var Me = (
|
|
|
6593
6592
|
credentialType: H.REFRESH_TOKEN,
|
|
6594
6593
|
clientId: this.clientId,
|
|
6595
6594
|
familyId: i
|
|
6596
|
-
}, s = r && r.refreshToken || this.getTokenKeys().refreshToken,
|
|
6597
|
-
s.forEach(function(
|
|
6598
|
-
if (o.refreshTokenKeyMatchesFilter(
|
|
6599
|
-
var f = o.getRefreshTokenCredential(
|
|
6600
|
-
f && o.credentialMatchesFilter(f, a) &&
|
|
6595
|
+
}, s = r && r.refreshToken || this.getTokenKeys().refreshToken, d = [];
|
|
6596
|
+
s.forEach(function(u) {
|
|
6597
|
+
if (o.refreshTokenKeyMatchesFilter(u, a)) {
|
|
6598
|
+
var f = o.getRefreshTokenCredential(u);
|
|
6599
|
+
f && o.credentialMatchesFilter(f, a) && d.push(f);
|
|
6601
6600
|
}
|
|
6602
6601
|
});
|
|
6603
|
-
var p =
|
|
6604
|
-
return p < 1 ? (this.commonLogger.info("CacheManager:getRefreshToken - No refresh token found."), null) : (this.commonLogger.info("CacheManager:getRefreshToken - returning refresh token"),
|
|
6602
|
+
var p = d.length;
|
|
6603
|
+
return p < 1 ? (this.commonLogger.info("CacheManager:getRefreshToken - No refresh token found."), null) : (this.commonLogger.info("CacheManager:getRefreshToken - returning refresh token"), d[0]);
|
|
6605
6604
|
}, n.prototype.refreshTokenKeyMatchesFilter = function(e, t) {
|
|
6606
6605
|
var r = e.toLowerCase();
|
|
6607
6606
|
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);
|
|
@@ -6796,7 +6795,7 @@ var ki = 300, no = {
|
|
|
6796
6795
|
}
|
|
6797
6796
|
};
|
|
6798
6797
|
function Ai(n) {
|
|
6799
|
-
var e = n.authOptions, t = n.systemOptions, r = n.loggerOptions, o = n.cacheOptions, i = n.storageInterface, a = n.networkInterface, s = n.cryptoInterface,
|
|
6798
|
+
var e = n.authOptions, t = n.systemOptions, r = n.loggerOptions, o = n.cacheOptions, i = n.storageInterface, a = n.networkInterface, s = n.cryptoInterface, d = n.clientCredentials, p = n.libraryInfo, u = n.telemetry, f = n.serverTelemetryManager, _ = n.persistencePlugin, k = n.serializableCache, E = ee(ee({}, wi), r);
|
|
6800
6799
|
return {
|
|
6801
6800
|
authOptions: Ri(e),
|
|
6802
6801
|
systemOptions: ee(ee({}, no), t),
|
|
@@ -6805,9 +6804,9 @@ function Ai(n) {
|
|
|
6805
6804
|
storageInterface: i || new yi(e.clientId, _n, new er(E)),
|
|
6806
6805
|
networkInterface: a || Ci,
|
|
6807
6806
|
cryptoInterface: s || _n,
|
|
6808
|
-
clientCredentials:
|
|
6807
|
+
clientCredentials: d || Ti,
|
|
6809
6808
|
libraryInfo: ee(ee({}, Ei), p),
|
|
6810
|
-
telemetry: ee(ee({}, Si),
|
|
6809
|
+
telemetry: ee(ee({}, Si), u),
|
|
6811
6810
|
serverTelemetryManager: f || null,
|
|
6812
6811
|
persistencePlugin: _ || null,
|
|
6813
6812
|
serializableCache: k || null
|
|
@@ -7056,9 +7055,9 @@ var Zt = (
|
|
|
7056
7055
|
}, n.prototype.addPassword = function(e) {
|
|
7057
7056
|
this.parameters.set(gn.password, encodeURIComponent(e));
|
|
7058
7057
|
}, n.prototype.addPopToken = function(e) {
|
|
7059
|
-
L.isEmpty(e) || (this.parameters.set(V.TOKEN_TYPE,
|
|
7058
|
+
L.isEmpty(e) || (this.parameters.set(V.TOKEN_TYPE, ne.POP), this.parameters.set(V.REQ_CNF, encodeURIComponent(e)));
|
|
7060
7059
|
}, n.prototype.addSshJwk = function(e) {
|
|
7061
|
-
L.isEmpty(e) || (this.parameters.set(V.TOKEN_TYPE,
|
|
7060
|
+
L.isEmpty(e) || (this.parameters.set(V.TOKEN_TYPE, ne.SSH), this.parameters.set(V.REQ_CNF, encodeURIComponent(e)));
|
|
7062
7061
|
}, n.prototype.addServerTelemetry = function(e) {
|
|
7063
7062
|
this.parameters.set(V.X_CLIENT_CURR_TELEM, e.generateCurrentRequestHeaderValue()), this.parameters.set(V.X_CLIENT_LAST_TELEM, e.generateLastRequestHeaderValue());
|
|
7064
7063
|
}, n.prototype.addThrottling = function() {
|
|
@@ -7145,15 +7144,15 @@ var rr = (
|
|
|
7145
7144
|
default:
|
|
7146
7145
|
throw O.createUnexpectedCredentialTypeError();
|
|
7147
7146
|
}
|
|
7148
|
-
}, n.generateCredentialCacheKey = function(e, t, r, o, i, a, s,
|
|
7149
|
-
var
|
|
7147
|
+
}, n.generateCredentialCacheKey = function(e, t, r, o, i, a, s, d, p) {
|
|
7148
|
+
var u = [
|
|
7150
7149
|
this.generateAccountIdForCacheKey(e, t),
|
|
7151
7150
|
this.generateCredentialIdForCacheKey(r, o, i, s),
|
|
7152
7151
|
this.generateTargetForCacheKey(a),
|
|
7153
7152
|
this.generateClaimsHashForCacheKey(p),
|
|
7154
|
-
this.generateSchemeForCacheKey(
|
|
7153
|
+
this.generateSchemeForCacheKey(d)
|
|
7155
7154
|
];
|
|
7156
|
-
return
|
|
7155
|
+
return u.join(fe.CACHE_KEY_SEPARATOR).toLowerCase();
|
|
7157
7156
|
}, n.generateAccountIdForCacheKey = function(e, t) {
|
|
7158
7157
|
var r = [e, t];
|
|
7159
7158
|
return r.join(fe.CACHE_KEY_SEPARATOR).toLowerCase();
|
|
@@ -7169,7 +7168,7 @@ var rr = (
|
|
|
7169
7168
|
}, n.generateClaimsHashForCacheKey = function(e) {
|
|
7170
7169
|
return (e || g.EMPTY_STRING).toLowerCase();
|
|
7171
7170
|
}, n.generateSchemeForCacheKey = function(e) {
|
|
7172
|
-
return e && e.toLowerCase() !==
|
|
7171
|
+
return e && e.toLowerCase() !== ne.BEARER.toLowerCase() ? e.toLowerCase() : g.EMPTY_STRING;
|
|
7173
7172
|
}, n;
|
|
7174
7173
|
}()
|
|
7175
7174
|
);
|
|
@@ -7220,19 +7219,19 @@ var _t = (
|
|
|
7220
7219
|
function e() {
|
|
7221
7220
|
return n !== null && n.apply(this, arguments) || this;
|
|
7222
7221
|
}
|
|
7223
|
-
return e.createAccessTokenEntity = function(t, r, o, i, a, s,
|
|
7222
|
+
return e.createAccessTokenEntity = function(t, r, o, i, a, s, d, p, u, f, _, k, E, N, Q) {
|
|
7224
7223
|
var X, G, $ = new e();
|
|
7225
7224
|
$.homeAccountId = t, $.credentialType = H.ACCESS_TOKEN, $.secret = o;
|
|
7226
7225
|
var Ae = Ke.nowSeconds();
|
|
7227
|
-
if ($.cachedAt = Ae.toString(), $.expiresOn =
|
|
7226
|
+
if ($.cachedAt = Ae.toString(), $.expiresOn = d.toString(), $.extendedExpiresOn = p.toString(), f && ($.refreshOn = f.toString()), $.environment = r, $.clientId = i, $.realm = a, $.target = s, $.userAssertionHash = k, $.tokenType = L.isEmpty(_) ? ne.BEARER : _, N && ($.requestedClaims = N, $.requestedClaimsHash = Q), ((X = $.tokenType) === null || X === void 0 ? void 0 : X.toLowerCase()) !== ne.BEARER.toLowerCase())
|
|
7228
7227
|
switch ($.credentialType = H.ACCESS_TOKEN_WITH_AUTH_SCHEME, $.tokenType) {
|
|
7229
|
-
case
|
|
7230
|
-
var xe = rt.extractTokenClaims(o,
|
|
7228
|
+
case ne.POP:
|
|
7229
|
+
var xe = rt.extractTokenClaims(o, u);
|
|
7231
7230
|
if (!(!((G = xe == null ? void 0 : xe.cnf) === null || G === void 0) && G.kid))
|
|
7232
7231
|
throw O.createTokenClaimsRequiredError();
|
|
7233
7232
|
$.keyId = xe.cnf.kid;
|
|
7234
7233
|
break;
|
|
7235
|
-
case
|
|
7234
|
+
case ne.SSH:
|
|
7236
7235
|
$.keyId = E;
|
|
7237
7236
|
}
|
|
7238
7237
|
return $;
|
|
@@ -7250,8 +7249,8 @@ var Mt = (
|
|
|
7250
7249
|
return n !== null && n.apply(this, arguments) || this;
|
|
7251
7250
|
}
|
|
7252
7251
|
return e.createRefreshTokenEntity = function(t, r, o, i, a, s) {
|
|
7253
|
-
var
|
|
7254
|
-
return
|
|
7252
|
+
var d = new e();
|
|
7253
|
+
return d.clientId = i, d.credentialType = H.REFRESH_TOKEN, d.environment = r, d.homeAccountId = t, d.secret = o, d.userAssertionHash = s, a && (d.familyId = a), d;
|
|
7255
7254
|
}, e.isRefreshTokenEntity = function(t) {
|
|
7256
7255
|
return t ? t.hasOwnProperty("homeAccountId") && t.hasOwnProperty("environment") && t.hasOwnProperty("credentialType") && t.hasOwnProperty("clientId") && t.hasOwnProperty("secret") && t.credentialType === H.REFRESH_TOKEN : !1;
|
|
7257
7256
|
}, e;
|
|
@@ -7281,13 +7280,13 @@ var Ir = [
|
|
|
7281
7280
|
/** @class */
|
|
7282
7281
|
function(n) {
|
|
7283
7282
|
Ue(e, n);
|
|
7284
|
-
function e(t, r, o, i, a, s,
|
|
7283
|
+
function e(t, r, o, i, a, s, d) {
|
|
7285
7284
|
var p = n.call(this, t, r, o) || this;
|
|
7286
|
-
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 =
|
|
7285
|
+
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 = d || g.EMPTY_STRING, p.name = "InteractionRequiredAuthError", p;
|
|
7287
7286
|
}
|
|
7288
7287
|
return e.isInteractionRequiredError = function(t, r, o) {
|
|
7289
|
-
var i = !!t && Ir.indexOf(t) > -1, a = !!o && Mi.indexOf(o) > -1, s = !!r && Ir.some(function(
|
|
7290
|
-
return r.indexOf(
|
|
7288
|
+
var i = !!t && Ir.indexOf(t) > -1, a = !!o && Mi.indexOf(o) > -1, s = !!r && Ir.some(function(d) {
|
|
7289
|
+
return r.indexOf(d) > -1;
|
|
7291
7290
|
});
|
|
7292
7291
|
return i || s || a;
|
|
7293
7292
|
}, e.createNoTokensFoundError = function() {
|
|
@@ -7336,8 +7335,8 @@ var st = (
|
|
|
7336
7335
|
userRequestState: L.isEmpty(i) ? g.EMPTY_STRING : i,
|
|
7337
7336
|
libraryState: s
|
|
7338
7337
|
};
|
|
7339
|
-
} catch (
|
|
7340
|
-
throw O.createInvalidStateError(t,
|
|
7338
|
+
} catch (d) {
|
|
7339
|
+
throw O.createInvalidStateError(t, d);
|
|
7341
7340
|
}
|
|
7342
7341
|
}, n;
|
|
7343
7342
|
}()
|
|
@@ -7510,11 +7509,11 @@ var xt = (
|
|
|
7510
7509
|
});
|
|
7511
7510
|
}, n.prototype.signPayload = function(e, t, r, o) {
|
|
7512
7511
|
return j(this, void 0, void 0, function() {
|
|
7513
|
-
var i, a, s,
|
|
7512
|
+
var i, a, s, d, p, u;
|
|
7514
7513
|
return K(this, function(f) {
|
|
7515
7514
|
switch (f.label) {
|
|
7516
7515
|
case 0:
|
|
7517
|
-
return i = r.resourceRequestMethod, a = r.resourceRequestUri, s = r.shrClaims,
|
|
7516
|
+
return i = r.resourceRequestMethod, a = r.resourceRequestUri, s = r.shrClaims, d = r.shrNonce, p = a ? new W(a) : void 0, u = p == null ? void 0 : p.getUrlComponents(), [4, this.cryptoUtils.signJwt(ee({ at: e, ts: Ke.nowSeconds(), m: i == null ? void 0 : i.toUpperCase(), u: u == null ? void 0 : u.HostNameAndPort, nonce: d || this.cryptoUtils.createNewGuid(), p: u == null ? void 0 : u.AbsolutePath, q: u != null && u.QueryString ? [[], u.QueryString] : void 0, client_claims: s || void 0 }, o), t, r.correlationId)];
|
|
7518
7517
|
case 1:
|
|
7519
7518
|
return [2, f.sent()];
|
|
7520
7519
|
}
|
|
@@ -7596,14 +7595,14 @@ var wn = (
|
|
|
7596
7595
|
var t = e.error_codes + " - [" + e.timestamp + "]: " + e.error_description + " - Correlation ID: " + e.correlation_id + " - Trace ID: " + e.trace_id;
|
|
7597
7596
|
throw new bt(e.error, t, e.suberror);
|
|
7598
7597
|
}
|
|
7599
|
-
}, n.prototype.handleServerTokenResponse = function(e, t, r, o, i, a, s,
|
|
7600
|
-
var
|
|
7598
|
+
}, n.prototype.handleServerTokenResponse = function(e, t, r, o, i, a, s, d, p) {
|
|
7599
|
+
var u;
|
|
7601
7600
|
return j(this, void 0, void 0, function() {
|
|
7602
7601
|
var f, _, k, E, N, Q, X;
|
|
7603
7602
|
return K(this, function(G) {
|
|
7604
7603
|
switch (G.label) {
|
|
7605
7604
|
case 0:
|
|
7606
|
-
if ((
|
|
7605
|
+
if ((u = this.performanceClient) === null || u === void 0 || u.addQueueMeasurement(b.HandleServerTokenResponse, e.correlation_id), e.id_token) {
|
|
7607
7606
|
if (f = new rt(e.id_token || g.EMPTY_STRING, this.cryptoObj), i && !L.isEmpty(i.nonce) && f.claims.nonce !== i.nonce)
|
|
7608
7607
|
throw O.createNonceMismatchError();
|
|
7609
7608
|
if (o.maxAge || o.maxAge === 0) {
|
|
@@ -7618,7 +7617,7 @@ var wn = (
|
|
|
7618
7617
|
case 2:
|
|
7619
7618
|
G.sent(), G.label = 3;
|
|
7620
7619
|
case 3:
|
|
7621
|
-
return s && !
|
|
7620
|
+
return s && !d && 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)];
|
|
7622
7621
|
case 4:
|
|
7623
7622
|
return G.sent(), [3, 8];
|
|
7624
7623
|
case 5:
|
|
@@ -7636,20 +7635,20 @@ var wn = (
|
|
|
7636
7635
|
});
|
|
7637
7636
|
});
|
|
7638
7637
|
}, n.prototype.generateCacheRecord = function(e, t, r, o, i, a, s) {
|
|
7639
|
-
var
|
|
7640
|
-
if (L.isEmpty(
|
|
7638
|
+
var d = t.getPreferredCache();
|
|
7639
|
+
if (L.isEmpty(d))
|
|
7641
7640
|
throw O.createInvalidCacheEnvironmentError();
|
|
7642
|
-
var p,
|
|
7643
|
-
!L.isEmpty(e.id_token) && i && (p = gt.createIdTokenEntity(this.homeAccountIdentifier,
|
|
7641
|
+
var p, u;
|
|
7642
|
+
!L.isEmpty(e.id_token) && i && (p = gt.createIdTokenEntity(this.homeAccountIdentifier, d, e.id_token || g.EMPTY_STRING, this.clientId, i.claims.tid || g.EMPTY_STRING), u = this.generateAccountEntity(e, i, t, s));
|
|
7644
7643
|
var f = null;
|
|
7645
7644
|
if (!L.isEmpty(e.access_token)) {
|
|
7646
7645
|
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;
|
|
7647
|
-
f = _t.createAccessTokenEntity(this.homeAccountIdentifier,
|
|
7646
|
+
f = _t.createAccessTokenEntity(this.homeAccountIdentifier, d, 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);
|
|
7648
7647
|
}
|
|
7649
7648
|
var $ = null;
|
|
7650
|
-
L.isEmpty(e.refresh_token) || ($ = Mt.createRefreshTokenEntity(this.homeAccountIdentifier,
|
|
7649
|
+
L.isEmpty(e.refresh_token) || ($ = Mt.createRefreshTokenEntity(this.homeAccountIdentifier, d, e.refresh_token || g.EMPTY_STRING, this.clientId, e.foci, a));
|
|
7651
7650
|
var Ae = null;
|
|
7652
|
-
return L.isEmpty(e.foci) || (Ae = Vn.createAppMetadataEntity(this.clientId,
|
|
7651
|
+
return L.isEmpty(e.foci) || (Ae = Vn.createAppMetadataEntity(this.clientId, d, e.foci)), new en(u, p, f, $, Ae);
|
|
7653
7652
|
}, n.prototype.generateAccountEntity = function(e, t, r, o) {
|
|
7654
7653
|
var i = r.authorityType, a = o ? o.cloud_graph_host_name : g.EMPTY_STRING, s = o ? o.msgraph_host : g.EMPTY_STRING;
|
|
7655
7654
|
if (i === Se.Adfs)
|
|
@@ -7657,8 +7656,8 @@ var wn = (
|
|
|
7657
7656
|
if (L.isEmpty(e.client_info) && r.protocolMode === "AAD")
|
|
7658
7657
|
throw O.createClientInfoEmptyError();
|
|
7659
7658
|
return e.client_info ? we.createAccount(e.client_info, this.homeAccountIdentifier, t, r, a, s) : we.createGenericAccount(this.homeAccountIdentifier, t, r, a, s);
|
|
7660
|
-
}, n.generateAuthenticationResult = function(e, t, r, o, i, a, s,
|
|
7661
|
-
var
|
|
7659
|
+
}, n.generateAuthenticationResult = function(e, t, r, o, i, a, s, d, p) {
|
|
7660
|
+
var u, f, _;
|
|
7662
7661
|
return j(this, void 0, void 0, function() {
|
|
7663
7662
|
var k, E, N, Q, X, G, $, Ae, xe, Ve, Ct;
|
|
7664
7663
|
return K(this, function(ce) {
|
|
@@ -7666,7 +7665,7 @@ var wn = (
|
|
|
7666
7665
|
case 0:
|
|
7667
7666
|
if (k = g.EMPTY_STRING, E = [], N = null, X = g.EMPTY_STRING, !r.accessToken)
|
|
7668
7667
|
return [3, 4];
|
|
7669
|
-
if (r.accessToken.tokenType !==
|
|
7668
|
+
if (r.accessToken.tokenType !== ne.POP)
|
|
7670
7669
|
return [3, 2];
|
|
7671
7670
|
if (G = new xt(e), $ = r.accessToken, Ae = $.secret, xe = $.keyId, !xe)
|
|
7672
7671
|
throw O.createKeyIdMissingError();
|
|
@@ -7678,7 +7677,7 @@ var wn = (
|
|
|
7678
7677
|
case 3:
|
|
7679
7678
|
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;
|
|
7680
7679
|
case 4:
|
|
7681
|
-
return r.appMetadata && (X = r.appMetadata.familyId === Wt ? Wt : 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,
|
|
7680
|
+
return r.appMetadata && (X = r.appMetadata.familyId === Wt ? Wt : 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, d != null && d.spa_accountid && r.account && (r.account.nativeAccountId = d == null ? void 0 : d.spa_accountid), [2, {
|
|
7682
7681
|
authority: t.canonicalAuthority,
|
|
7683
7682
|
uniqueId: Ve,
|
|
7684
7683
|
tenantId: Ct,
|
|
@@ -7693,11 +7692,11 @@ var wn = (
|
|
|
7693
7692
|
requestId: p || g.EMPTY_STRING,
|
|
7694
7693
|
extExpiresOn: Q,
|
|
7695
7694
|
familyId: X,
|
|
7696
|
-
tokenType: ((
|
|
7695
|
+
tokenType: ((u = r.accessToken) === null || u === void 0 ? void 0 : u.tokenType) || g.EMPTY_STRING,
|
|
7697
7696
|
state: s ? s.userRequestState : g.EMPTY_STRING,
|
|
7698
7697
|
cloudGraphHostName: ((f = r.account) === null || f === void 0 ? void 0 : f.cloudGraphHostName) || g.EMPTY_STRING,
|
|
7699
7698
|
msGraphHost: ((_ = r.account) === null || _ === void 0 ? void 0 : _.msGraphHost) || g.EMPTY_STRING,
|
|
7700
|
-
code:
|
|
7699
|
+
code: d == null ? void 0 : d.spa_code,
|
|
7701
7700
|
fromNativeBroker: !1
|
|
7702
7701
|
}];
|
|
7703
7702
|
}
|
|
@@ -7729,24 +7728,24 @@ var ro = (
|
|
|
7729
7728
|
});
|
|
7730
7729
|
});
|
|
7731
7730
|
}, e.prototype.acquireToken = function(t, r) {
|
|
7732
|
-
var o, i, a, s,
|
|
7731
|
+
var o, i, a, s, d, p;
|
|
7733
7732
|
return j(this, void 0, void 0, function() {
|
|
7734
|
-
var
|
|
7733
|
+
var u, f, _, k, E, N, Q = this;
|
|
7735
7734
|
return K(this, function(X) {
|
|
7736
7735
|
switch (X.label) {
|
|
7737
7736
|
case 0:
|
|
7738
7737
|
if (!t || !t.code)
|
|
7739
7738
|
throw O.createTokenRequestCannotBeMadeError();
|
|
7740
|
-
return (o = this.performanceClient) === null || o === void 0 || o.addQueueMeasurement(b.AuthClientAcquireToken, t.correlationId),
|
|
7739
|
+
return (o = this.performanceClient) === null || o === void 0 || o.addQueueMeasurement(b.AuthClientAcquireToken, t.correlationId), u = (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)];
|
|
7741
7740
|
case 1:
|
|
7742
|
-
return _ = X.sent(), k = (s = _.headers) === null || s === void 0 ? void 0 : s[De.X_MS_REQUEST_ID], E = (
|
|
7741
|
+
return _ = X.sent(), k = (s = _.headers) === null || s === void 0 ? void 0 : s[De.X_MS_REQUEST_ID], E = (d = _.headers) === null || d === void 0 ? void 0 : d[De.X_MS_HTTP_VERSION], E && (u == null || u.addStaticFields({
|
|
7743
7742
|
httpVerAuthority: E
|
|
7744
7743
|
})), 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) {
|
|
7745
|
-
return
|
|
7744
|
+
return u == null || u.endMeasurement({
|
|
7746
7745
|
success: !0
|
|
7747
7746
|
}), G;
|
|
7748
7747
|
}).catch(function(G) {
|
|
7749
|
-
throw Q.logger.verbose("Error in fetching token in ACC", t.correlationId),
|
|
7748
|
+
throw Q.logger.verbose("Error in fetching token in ACC", t.correlationId), u == null || u.endMeasurement({
|
|
7750
7749
|
errorCode: G.errorCode,
|
|
7751
7750
|
subErrorCode: G.subError,
|
|
7752
7751
|
success: !1
|
|
@@ -7771,16 +7770,16 @@ var ro = (
|
|
|
7771
7770
|
}, e.prototype.executeTokenRequest = function(t, r) {
|
|
7772
7771
|
var o, i;
|
|
7773
7772
|
return j(this, void 0, void 0, function() {
|
|
7774
|
-
var a, s,
|
|
7773
|
+
var a, s, d, p, u, f, _;
|
|
7775
7774
|
return K(this, function(k) {
|
|
7776
7775
|
switch (k.label) {
|
|
7777
7776
|
case 0:
|
|
7778
7777
|
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)];
|
|
7779
7778
|
case 1:
|
|
7780
|
-
if (
|
|
7779
|
+
if (d = k.sent(), p = void 0, r.clientInfo)
|
|
7781
7780
|
try {
|
|
7782
|
-
|
|
7783
|
-
credential: "" +
|
|
7781
|
+
u = vn(r.clientInfo, this.cryptoUtils), p = {
|
|
7782
|
+
credential: "" + u.uid + fe.CLIENT_INFO_SEPARATOR + u.utid,
|
|
7784
7783
|
type: Be.HOME_ACCOUNT_ID
|
|
7785
7784
|
};
|
|
7786
7785
|
} catch (E) {
|
|
@@ -7796,31 +7795,31 @@ var ro = (
|
|
|
7796
7795
|
resourceRequestUri: r.resourceRequestUri,
|
|
7797
7796
|
shrClaims: r.shrClaims,
|
|
7798
7797
|
sshKid: r.sshKid
|
|
7799
|
-
}, [2, this.executePostToTokenEndpoint(s,
|
|
7798
|
+
}, [2, this.executePostToTokenEndpoint(s, d, f, _)];
|
|
7800
7799
|
}
|
|
7801
7800
|
});
|
|
7802
7801
|
});
|
|
7803
7802
|
}, e.prototype.createTokenRequestBody = function(t) {
|
|
7804
7803
|
var r, o;
|
|
7805
7804
|
return j(this, void 0, void 0, function() {
|
|
7806
|
-
var i, a, s,
|
|
7805
|
+
var i, a, s, d, p, u, f, f, _;
|
|
7807
7806
|
return K(this, function(k) {
|
|
7808
7807
|
switch (k.label) {
|
|
7809
7808
|
case 0:
|
|
7810
|
-
return (r = this.performanceClient) === null || r === void 0 || r.addQueueMeasurement(b.AuthClientCreateTokenRequestBody, t.correlationId), i = new Zt(), 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 !==
|
|
7809
|
+
return (r = this.performanceClient) === null || r === void 0 || r.addQueueMeasurement(b.AuthClientCreateTokenRequestBody, t.correlationId), i = new Zt(), 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 !== ne.POP ? [3, 2] : (s = new xt(this.cryptoUtils, this.performanceClient), (o = this.performanceClient) === null || o === void 0 || o.setPreQueueTime(b.PopTokenGenerateCnf, t.correlationId), [4, s.generateCnf(t)]);
|
|
7811
7810
|
case 1:
|
|
7812
|
-
return
|
|
7811
|
+
return d = k.sent(), i.addPopToken(d.reqCnfString), [3, 3];
|
|
7813
7812
|
case 2:
|
|
7814
|
-
if (t.authenticationScheme ===
|
|
7813
|
+
if (t.authenticationScheme === ne.SSH)
|
|
7815
7814
|
if (t.sshJwk)
|
|
7816
7815
|
i.addSshJwk(t.sshJwk);
|
|
7817
7816
|
else
|
|
7818
7817
|
throw ie.createMissingSshJwkError();
|
|
7819
7818
|
k.label = 3;
|
|
7820
7819
|
case 3:
|
|
7821
|
-
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),
|
|
7820
|
+
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), u = void 0, t.clientInfo)
|
|
7822
7821
|
try {
|
|
7823
|
-
f = vn(t.clientInfo, this.cryptoUtils),
|
|
7822
|
+
f = vn(t.clientInfo, this.cryptoUtils), u = {
|
|
7824
7823
|
credential: "" + f.uid + fe.CLIENT_INFO_SEPARATOR + f.utid,
|
|
7825
7824
|
type: Be.HOME_ACCOUNT_ID
|
|
7826
7825
|
};
|
|
@@ -7828,18 +7827,18 @@ var ro = (
|
|
|
7828
7827
|
this.logger.verbose("Could not parse client info for CCS Header: " + E);
|
|
7829
7828
|
}
|
|
7830
7829
|
else
|
|
7831
|
-
|
|
7832
|
-
if (this.config.systemOptions.preventCorsPreflight &&
|
|
7833
|
-
switch (
|
|
7830
|
+
u = t.ccsCredential;
|
|
7831
|
+
if (this.config.systemOptions.preventCorsPreflight && u)
|
|
7832
|
+
switch (u.type) {
|
|
7834
7833
|
case Be.HOME_ACCOUNT_ID:
|
|
7835
7834
|
try {
|
|
7836
|
-
f = Pt(
|
|
7835
|
+
f = Pt(u.credential), i.addCcsOid(f);
|
|
7837
7836
|
} catch (E) {
|
|
7838
7837
|
this.logger.verbose("Could not parse home account ID for CCS Header: " + E);
|
|
7839
7838
|
}
|
|
7840
7839
|
break;
|
|
7841
7840
|
case Be.UPN:
|
|
7842
|
-
i.addCcsUpn(
|
|
7841
|
+
i.addCcsUpn(u.credential);
|
|
7843
7842
|
break;
|
|
7844
7843
|
}
|
|
7845
7844
|
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()];
|
|
@@ -7849,7 +7848,7 @@ var ro = (
|
|
|
7849
7848
|
}, e.prototype.createAuthCodeUrlQueryString = function(t) {
|
|
7850
7849
|
var r;
|
|
7851
7850
|
return j(this, void 0, void 0, function() {
|
|
7852
|
-
var o, i, a, s,
|
|
7851
|
+
var o, i, a, s, d, p, p, p, u, f;
|
|
7853
7852
|
return K(this, function(_) {
|
|
7854
7853
|
switch (_.label) {
|
|
7855
7854
|
case 0:
|
|
@@ -7857,8 +7856,8 @@ var ro = (
|
|
|
7857
7856
|
if (t.sid && t.prompt === Te.NONE)
|
|
7858
7857
|
this.logger.verbose("createAuthCodeUrlQueryString: Prompt is none, adding sid from request"), o.addSid(t.sid);
|
|
7859
7858
|
else if (t.account) {
|
|
7860
|
-
if (s = this.extractAccountSid(t.account),
|
|
7861
|
-
this.logger.verbose("createAuthCodeUrlQueryString: login_hint claim present on account"), o.addLoginHint(
|
|
7859
|
+
if (s = this.extractAccountSid(t.account), d = this.extractLoginHint(t.account), d) {
|
|
7860
|
+
this.logger.verbose("createAuthCodeUrlQueryString: login_hint claim present on account"), o.addLoginHint(d);
|
|
7862
7861
|
try {
|
|
7863
7862
|
p = Pt(t.account.homeAccountId), o.addCcsOid(p);
|
|
7864
7863
|
} catch {
|
|
@@ -7885,7 +7884,7 @@ var ro = (
|
|
|
7885
7884
|
t.loginHint && (this.logger.verbose("createAuthCodeUrlQueryString: No account, adding login_hint from request"), o.addLoginHint(t.loginHint), o.addCcsUpn(t.loginHint));
|
|
7886
7885
|
else
|
|
7887
7886
|
this.logger.verbose("createAuthCodeUrlQueryString: Prompt is select_account, ignoring account hints");
|
|
7888
|
-
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 !==
|
|
7887
|
+
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 !== ne.POP ? [3, 2] : (u = new xt(this.cryptoUtils), [4, u.generateCnf(t)])) : [3, 2];
|
|
7889
7888
|
case 1:
|
|
7890
7889
|
f = _.sent(), o.addPopToken(f.reqCnfString), _.label = 2;
|
|
7891
7890
|
case 2:
|
|
@@ -7914,24 +7913,24 @@ var oo = (
|
|
|
7914
7913
|
return n.call(this, t, r) || this;
|
|
7915
7914
|
}
|
|
7916
7915
|
return e.prototype.acquireToken = function(t) {
|
|
7917
|
-
var r, o, i, a, s,
|
|
7916
|
+
var r, o, i, a, s, d, p;
|
|
7918
7917
|
return j(this, void 0, void 0, function() {
|
|
7919
|
-
var
|
|
7918
|
+
var u, f, _, k, E, N, Q = this;
|
|
7920
7919
|
return K(this, function(X) {
|
|
7921
7920
|
switch (X.label) {
|
|
7922
7921
|
case 0:
|
|
7923
|
-
return (r = this.performanceClient) === null || r === void 0 || r.addQueueMeasurement(b.RefreshTokenClientAcquireToken, t.correlationId),
|
|
7922
|
+
return (r = this.performanceClient) === null || r === void 0 || r.addQueueMeasurement(b.RefreshTokenClientAcquireToken, t.correlationId), u = (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)];
|
|
7924
7923
|
case 1:
|
|
7925
|
-
return _ = X.sent(), k = (a = _.headers) === null || a === void 0 ? void 0 : a[De.X_MS_HTTP_VERSION],
|
|
7924
|
+
return _ = X.sent(), k = (a = _.headers) === null || a === void 0 ? void 0 : a[De.X_MS_HTTP_VERSION], u == null || u.addStaticFields({
|
|
7926
7925
|
refreshTokenSize: ((s = _.body.refresh_token) === null || s === void 0 ? void 0 : s.length) || 0
|
|
7927
|
-
}), k && (
|
|
7926
|
+
}), k && (u == null || u.addStaticFields({
|
|
7928
7927
|
httpVerToken: k
|
|
7929
|
-
})), E = (
|
|
7930
|
-
return
|
|
7928
|
+
})), E = (d = _.headers) === null || d === void 0 ? void 0 : d[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) {
|
|
7929
|
+
return u == null || u.endMeasurement({
|
|
7931
7930
|
success: !0
|
|
7932
7931
|
}), G;
|
|
7933
7932
|
}).catch(function(G) {
|
|
7934
|
-
throw Q.logger.verbose("Error in fetching refresh token", t.correlationId),
|
|
7933
|
+
throw Q.logger.verbose("Error in fetching refresh token", t.correlationId), u == null || u.endMeasurement({
|
|
7935
7934
|
errorCode: G.errorCode,
|
|
7936
7935
|
subErrorCode: G.subError,
|
|
7937
7936
|
success: !1
|
|
@@ -7943,8 +7942,8 @@ var oo = (
|
|
|
7943
7942
|
}, e.prototype.acquireTokenByRefreshToken = function(t) {
|
|
7944
7943
|
var r, o, i, a;
|
|
7945
7944
|
return j(this, void 0, void 0, function() {
|
|
7946
|
-
var s,
|
|
7947
|
-
return K(this, function(
|
|
7945
|
+
var s, d, p;
|
|
7946
|
+
return K(this, function(u) {
|
|
7948
7947
|
if (!t)
|
|
7949
7948
|
throw ie.createEmptyTokenRequestError();
|
|
7950
7949
|
if ((r = this.performanceClient) === null || r === void 0 || r.addQueueMeasurement(b.RefreshTokenClientAcquireTokenByRefreshToken, t.correlationId), !t.account)
|
|
@@ -7953,7 +7952,7 @@ var oo = (
|
|
|
7953
7952
|
try {
|
|
7954
7953
|
return (o = this.performanceClient) === null || o === void 0 || o.setPreQueueTime(b.RefreshTokenClientAcquireTokenWithCachedRefreshToken, t.correlationId), [2, this.acquireTokenWithCachedRefreshToken(t, !0)];
|
|
7955
7954
|
} catch (f) {
|
|
7956
|
-
if (
|
|
7955
|
+
if (d = f instanceof Ye && f.errorCode === Nt.noTokensFoundError.code, p = f instanceof bt && f.errorCode === Tr.INVALID_GRANT_ERROR && f.subError === Tr.CLIENT_MISMATCH_ERROR, d || p)
|
|
7957
7956
|
return (i = this.performanceClient) === null || i === void 0 || i.setPreQueueTime(b.RefreshTokenClientAcquireTokenWithCachedRefreshToken, t.correlationId), [2, this.acquireTokenWithCachedRefreshToken(t, !1)];
|
|
7958
7957
|
throw f;
|
|
7959
7958
|
}
|
|
@@ -7963,13 +7962,13 @@ var oo = (
|
|
|
7963
7962
|
}, e.prototype.acquireTokenWithCachedRefreshToken = function(t, r) {
|
|
7964
7963
|
var o, i, a;
|
|
7965
7964
|
return j(this, void 0, void 0, function() {
|
|
7966
|
-
var s,
|
|
7967
|
-
return K(this, function(
|
|
7968
|
-
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),
|
|
7965
|
+
var s, d, p;
|
|
7966
|
+
return K(this, function(u) {
|
|
7967
|
+
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), d = this.cacheManager.getRefreshToken(t.account, r), !d)
|
|
7969
7968
|
throw s == null || s.discardMeasurement(), Ye.createNoTokensFoundError();
|
|
7970
7969
|
return s == null || s.endMeasurement({
|
|
7971
7970
|
success: !0
|
|
7972
|
-
}), p = ee(ee({}, t), { refreshToken:
|
|
7971
|
+
}), p = ee(ee({}, t), { refreshToken: d.secret, authenticationScheme: t.authenticationScheme || ne.BEARER, ccsCredential: {
|
|
7973
7972
|
credential: t.account.homeAccountId,
|
|
7974
7973
|
type: Be.HOME_ACCOUNT_ID
|
|
7975
7974
|
} }), (a = this.performanceClient) === null || a === void 0 || a.setPreQueueTime(b.RefreshTokenClientAcquireToken, t.correlationId), [2, this.acquireToken(p)];
|
|
@@ -7978,13 +7977,13 @@ var oo = (
|
|
|
7978
7977
|
}, e.prototype.executeTokenRequest = function(t, r) {
|
|
7979
7978
|
var o, i, a;
|
|
7980
7979
|
return j(this, void 0, void 0, function() {
|
|
7981
|
-
var s,
|
|
7980
|
+
var s, d, p, u, f, _;
|
|
7982
7981
|
return K(this, function(k) {
|
|
7983
7982
|
switch (k.label) {
|
|
7984
7983
|
case 0:
|
|
7985
|
-
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),
|
|
7984
|
+
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), d = this.createTokenQueryParameters(t), p = W.appendQueryString(r.tokenEndpoint, d), [4, this.createTokenRequestBody(t)];
|
|
7986
7985
|
case 1:
|
|
7987
|
-
return
|
|
7986
|
+
return u = k.sent(), f = this.createTokenRequestHeaders(t.ccsCredential), _ = {
|
|
7988
7987
|
clientId: this.config.authOptions.clientId,
|
|
7989
7988
|
authority: r.canonicalAuthority,
|
|
7990
7989
|
scopes: t.scopes,
|
|
@@ -7994,7 +7993,7 @@ var oo = (
|
|
|
7994
7993
|
resourceRequestUri: t.resourceRequestUri,
|
|
7995
7994
|
shrClaims: t.shrClaims,
|
|
7996
7995
|
sshKid: t.sshKid
|
|
7997
|
-
}, [2, this.executePostToTokenEndpoint(p,
|
|
7996
|
+
}, [2, this.executePostToTokenEndpoint(p, u, f, _).then(function(E) {
|
|
7998
7997
|
return s == null || s.endMeasurement({
|
|
7999
7998
|
success: !0
|
|
8000
7999
|
}), E;
|
|
@@ -8009,39 +8008,39 @@ var oo = (
|
|
|
8009
8008
|
}, e.prototype.createTokenRequestBody = function(t) {
|
|
8010
8009
|
var r, o, i;
|
|
8011
8010
|
return j(this, void 0, void 0, function() {
|
|
8012
|
-
var a, s,
|
|
8011
|
+
var a, s, d, p, u, f, _;
|
|
8013
8012
|
return K(this, function(k) {
|
|
8014
8013
|
switch (k.label) {
|
|
8015
8014
|
case 0:
|
|
8016
|
-
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),
|
|
8015
|
+
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), d = new Zt(), d.addClientId(this.config.authOptions.clientId), d.addScopes(t.scopes), d.addGrantType(fn.REFRESH_TOKEN_GRANT), d.addClientInfo(), d.addLibraryInfo(this.config.libraryInfo), d.addApplicationTelemetry(this.config.telemetry.application), d.addThrottling(), this.serverTelemetryManager && d.addServerTelemetry(this.serverTelemetryManager), d.addCorrelationId(a), d.addRefreshToken(t.refreshToken), this.config.clientCredentials.clientSecret && d.addClientSecret(this.config.clientCredentials.clientSecret), this.config.clientCredentials.clientAssertion && (p = this.config.clientCredentials.clientAssertion, d.addClientAssertion(p.assertion), d.addClientAssertionType(p.assertionType)), t.authenticationScheme !== ne.POP ? [3, 2] : (u = new xt(this.cryptoUtils, this.performanceClient), (i = this.performanceClient) === null || i === void 0 || i.setPreQueueTime(b.PopTokenGenerateCnf, t.correlationId), [4, u.generateCnf(t)]);
|
|
8017
8016
|
case 1:
|
|
8018
|
-
return f = k.sent(),
|
|
8017
|
+
return f = k.sent(), d.addPopToken(f.reqCnfString), [3, 3];
|
|
8019
8018
|
case 2:
|
|
8020
|
-
if (t.authenticationScheme ===
|
|
8019
|
+
if (t.authenticationScheme === ne.SSH)
|
|
8021
8020
|
if (t.sshJwk)
|
|
8022
|
-
|
|
8021
|
+
d.addSshJwk(t.sshJwk);
|
|
8023
8022
|
else
|
|
8024
8023
|
throw s == null || s.endMeasurement({
|
|
8025
8024
|
success: !1
|
|
8026
8025
|
}), ie.createMissingSshJwkError();
|
|
8027
8026
|
k.label = 3;
|
|
8028
8027
|
case 3:
|
|
8029
|
-
if ((!L.isEmptyObj(t.claims) || this.config.authOptions.clientCapabilities && this.config.authOptions.clientCapabilities.length > 0) &&
|
|
8028
|
+
if ((!L.isEmptyObj(t.claims) || this.config.authOptions.clientCapabilities && this.config.authOptions.clientCapabilities.length > 0) && d.addClaims(t.claims, this.config.authOptions.clientCapabilities), this.config.systemOptions.preventCorsPreflight && t.ccsCredential)
|
|
8030
8029
|
switch (t.ccsCredential.type) {
|
|
8031
8030
|
case Be.HOME_ACCOUNT_ID:
|
|
8032
8031
|
try {
|
|
8033
|
-
_ = Pt(t.ccsCredential.credential),
|
|
8032
|
+
_ = Pt(t.ccsCredential.credential), d.addCcsOid(_);
|
|
8034
8033
|
} catch (E) {
|
|
8035
8034
|
this.logger.verbose("Could not parse home account ID for CCS Header: " + E);
|
|
8036
8035
|
}
|
|
8037
8036
|
break;
|
|
8038
8037
|
case Be.UPN:
|
|
8039
|
-
|
|
8038
|
+
d.addCcsUpn(t.ccsCredential.credential);
|
|
8040
8039
|
break;
|
|
8041
8040
|
}
|
|
8042
8041
|
return s == null || s.endMeasurement({
|
|
8043
8042
|
success: !0
|
|
8044
|
-
}), [2,
|
|
8043
|
+
}), [2, d.createQueryString()];
|
|
8045
8044
|
}
|
|
8046
8045
|
});
|
|
8047
8046
|
});
|
|
@@ -8080,9 +8079,9 @@ var Oi = (
|
|
|
8080
8079
|
}, e.prototype.acquireCachedToken = function(t) {
|
|
8081
8080
|
var r, o, i, a, s;
|
|
8082
8081
|
return j(this, void 0, void 0, function() {
|
|
8083
|
-
var
|
|
8084
|
-
return K(this, function(
|
|
8085
|
-
switch (
|
|
8082
|
+
var d, p;
|
|
8083
|
+
return K(this, function(u) {
|
|
8084
|
+
switch (u.label) {
|
|
8086
8085
|
case 0:
|
|
8087
8086
|
if (!t)
|
|
8088
8087
|
throw ie.createEmptyTokenRequestError();
|
|
@@ -8092,7 +8091,7 @@ var Oi = (
|
|
|
8092
8091
|
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();
|
|
8093
8092
|
if (!t.account)
|
|
8094
8093
|
throw O.createNoAccountInSilentRequestError();
|
|
8095
|
-
if (
|
|
8094
|
+
if (d = t.authority || this.authority.getPreferredCache(), p = this.cacheManager.readCacheRecord(t.account, t, d), p.accessToken) {
|
|
8096
8095
|
if (Ke.wasClockTurnedBack(p.accessToken.cachedAt) || Ke.isTokenExpired(p.accessToken.expiresOn, this.config.systemOptions.tokenRenewalOffsetSeconds))
|
|
8097
8096
|
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();
|
|
8098
8097
|
if (p.accessToken.refreshOn && Ke.isTokenExpired(p.accessToken.refreshOn, 0))
|
|
@@ -8101,7 +8100,7 @@ var Oi = (
|
|
|
8101
8100
|
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();
|
|
8102
8101
|
return this.config.serverTelemetryManager && this.config.serverTelemetryManager.incrementCacheHits(), [4, this.generateResultFromCacheRecord(p, t)];
|
|
8103
8102
|
case 1:
|
|
8104
|
-
return [2,
|
|
8103
|
+
return [2, u.sent()];
|
|
8105
8104
|
}
|
|
8106
8105
|
});
|
|
8107
8106
|
});
|
|
@@ -8176,31 +8175,31 @@ var Bi = (
|
|
|
8176
8175
|
return n.prototype.detectRegion = function(e, t) {
|
|
8177
8176
|
var r, o, i, a;
|
|
8178
8177
|
return j(this, void 0, void 0, function() {
|
|
8179
|
-
var s,
|
|
8178
|
+
var s, d, p, u, f;
|
|
8180
8179
|
return K(this, function(_) {
|
|
8181
8180
|
switch (_.label) {
|
|
8182
8181
|
case 0:
|
|
8183
8182
|
if ((r = this.performanceClient) === null || r === void 0 || r.addQueueMeasurement(b.RegionDiscoveryDetectRegion, this.correlationId), s = e, s)
|
|
8184
8183
|
return [3, 8];
|
|
8185
|
-
|
|
8184
|
+
d = n.IMDS_OPTIONS, _.label = 1;
|
|
8186
8185
|
case 1:
|
|
8187
|
-
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,
|
|
8186
|
+
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, d)];
|
|
8188
8187
|
case 2:
|
|
8189
|
-
return p = _.sent(), p.status === Rt.httpSuccess && (s = p.body, t.region_source =
|
|
8188
|
+
return p = _.sent(), p.status === Rt.httpSuccess && (s = p.body, t.region_source = ut.IMDS), p.status !== Rt.httpBadRequest ? [3, 5] : ((i = this.performanceClient) === null || i === void 0 || i.setPreQueueTime(b.RegionDiscoveryGetCurrentVersion, this.correlationId), [4, this.getCurrentVersion(d)]);
|
|
8190
8189
|
case 3:
|
|
8191
|
-
return
|
|
8190
|
+
return u = _.sent(), u ? ((a = this.performanceClient) === null || a === void 0 || a.setPreQueueTime(b.RegionDiscoveryGetRegionFromIMDS, this.correlationId), [4, this.getRegionFromIMDS(u, d)]) : (t.region_source = ut.FAILED_AUTO_DETECTION, [2, null]);
|
|
8192
8191
|
case 4:
|
|
8193
|
-
f = _.sent(), f.status === Rt.httpSuccess && (s = f.body, t.region_source =
|
|
8192
|
+
f = _.sent(), f.status === Rt.httpSuccess && (s = f.body, t.region_source = ut.IMDS), _.label = 5;
|
|
8194
8193
|
case 5:
|
|
8195
8194
|
return [3, 7];
|
|
8196
8195
|
case 6:
|
|
8197
|
-
return _.sent(), t.region_source =
|
|
8196
|
+
return _.sent(), t.region_source = ut.FAILED_AUTO_DETECTION, [2, null];
|
|
8198
8197
|
case 7:
|
|
8199
8198
|
return [3, 9];
|
|
8200
8199
|
case 8:
|
|
8201
|
-
t.region_source =
|
|
8200
|
+
t.region_source = ut.ENVIRONMENT_VARIABLE, _.label = 9;
|
|
8202
8201
|
case 9:
|
|
8203
|
-
return s || (t.region_source =
|
|
8202
|
+
return s || (t.region_source = ut.FAILED_AUTO_DETECTION), [2, s || null];
|
|
8204
8203
|
}
|
|
8205
8204
|
});
|
|
8206
8205
|
});
|
|
@@ -8398,13 +8397,13 @@ var on = (
|
|
|
8398
8397
|
return e.replace(/{tenant}|{tenantid}/g, this.tenant);
|
|
8399
8398
|
}, n.prototype.replacePath = function(e) {
|
|
8400
8399
|
var t = this, r = e, o = new W(this.metadata.canonical_authority), i = o.getUrlComponents(), a = i.PathSegments, s = this.canonicalAuthorityUrlComponents.PathSegments;
|
|
8401
|
-
return s.forEach(function(
|
|
8402
|
-
var
|
|
8400
|
+
return s.forEach(function(d, p) {
|
|
8401
|
+
var u = a[p];
|
|
8403
8402
|
if (p === 0 && t.canReplaceTenant(i)) {
|
|
8404
8403
|
var f = new W(t.metadata.authorization_endpoint).getUrlComponents().PathSegments[0];
|
|
8405
|
-
|
|
8404
|
+
u !== f && (t.logger.verbose("Replacing tenant domain name " + u + " with id " + f), u = f);
|
|
8406
8405
|
}
|
|
8407
|
-
|
|
8406
|
+
d !== u && (r = r.replace("/" + u + "/", "/" + d + "/"));
|
|
8408
8407
|
}), this.replaceTenant(r);
|
|
8409
8408
|
}, Object.defineProperty(n.prototype, "defaultOpenIdConfigurationEndpoint", {
|
|
8410
8409
|
/**
|
|
@@ -8421,14 +8420,14 @@ var on = (
|
|
|
8421
8420
|
var e, t, r;
|
|
8422
8421
|
return j(this, void 0, void 0, function() {
|
|
8423
8422
|
var o, i, a, s;
|
|
8424
|
-
return K(this, function(
|
|
8425
|
-
switch (
|
|
8423
|
+
return K(this, function(d) {
|
|
8424
|
+
switch (d.label) {
|
|
8426
8425
|
case 0:
|
|
8427
8426
|
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)];
|
|
8428
8427
|
case 1:
|
|
8429
|
-
return i =
|
|
8428
|
+
return i = d.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)];
|
|
8430
8429
|
case 2:
|
|
8431
|
-
return a =
|
|
8430
|
+
return a = d.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, [
|
|
8432
8431
|
2
|
|
8433
8432
|
/*return*/
|
|
8434
8433
|
];
|
|
@@ -8438,21 +8437,21 @@ var on = (
|
|
|
8438
8437
|
}, n.prototype.updateEndpointMetadata = function(e) {
|
|
8439
8438
|
var t, r, o, i, a, s;
|
|
8440
8439
|
return j(this, void 0, void 0, function() {
|
|
8441
|
-
var
|
|
8442
|
-
return K(this, function(
|
|
8443
|
-
switch (
|
|
8440
|
+
var d, p;
|
|
8441
|
+
return K(this, function(u) {
|
|
8442
|
+
switch (u.label) {
|
|
8444
8443
|
case 0:
|
|
8445
|
-
return (t = this.performanceClient) === null || t === void 0 || t.addQueueMeasurement(b.AuthorityUpdateEndpointMetadata, this.correlationId),
|
|
8444
|
+
return (t = this.performanceClient) === null || t === void 0 || t.addQueueMeasurement(b.AuthorityUpdateEndpointMetadata, this.correlationId), d = this.getEndpointMetadataFromConfig(), d ? (e.updateEndpointMetadata(d, !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()]);
|
|
8446
8445
|
case 1:
|
|
8447
|
-
return
|
|
8446
|
+
return d = u.sent(), d ? !((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(d)]) : [3, 3] : [3, 4];
|
|
8448
8447
|
case 2:
|
|
8449
|
-
|
|
8448
|
+
d = u.sent(), u.label = 3;
|
|
8450
8449
|
case 3:
|
|
8451
|
-
return e.updateEndpointMetadata(
|
|
8450
|
+
return e.updateEndpointMetadata(d, !0), [2, Fe.NETWORK];
|
|
8452
8451
|
case 4:
|
|
8453
8452
|
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];
|
|
8454
8453
|
case 5:
|
|
8455
|
-
p =
|
|
8454
|
+
p = u.sent(), u.label = 6;
|
|
8456
8455
|
case 6:
|
|
8457
8456
|
return e.updateEndpointMetadata(p, !1), [2, Fe.HARDCODED_VALUES];
|
|
8458
8457
|
case 7:
|
|
@@ -8499,14 +8498,14 @@ var on = (
|
|
|
8499
8498
|
var t, r, o, i;
|
|
8500
8499
|
return j(this, void 0, void 0, function() {
|
|
8501
8500
|
var a, s;
|
|
8502
|
-
return K(this, function(
|
|
8503
|
-
switch (
|
|
8501
|
+
return K(this, function(d) {
|
|
8502
|
+
switch (d.label) {
|
|
8504
8503
|
case 0:
|
|
8505
8504
|
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 = Xt.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];
|
|
8506
8505
|
case 1:
|
|
8507
|
-
if (s =
|
|
8506
|
+
if (s = d.sent(), s)
|
|
8508
8507
|
return this.regionDiscoveryMetadata.region_outcome = Xt.AUTO_DETECTION_REQUESTED_SUCCESSFUL, this.regionDiscoveryMetadata.region_used = s, [2, n.replaceWithRegionalInformation(e, s)];
|
|
8509
|
-
this.regionDiscoveryMetadata.region_outcome = Xt.AUTO_DETECTION_REQUESTED_FAILED,
|
|
8508
|
+
this.regionDiscoveryMetadata.region_outcome = Xt.AUTO_DETECTION_REQUESTED_FAILED, d.label = 2;
|
|
8510
8509
|
case 2:
|
|
8511
8510
|
return [2, e];
|
|
8512
8511
|
}
|
|
@@ -8548,15 +8547,15 @@ var on = (
|
|
|
8548
8547
|
}, n.prototype.getCloudDiscoveryMetadataFromNetwork = function() {
|
|
8549
8548
|
var e;
|
|
8550
8549
|
return j(this, void 0, void 0, function() {
|
|
8551
|
-
var t, r, o, i, a, s,
|
|
8552
|
-
return K(this, function(
|
|
8553
|
-
switch (
|
|
8550
|
+
var t, r, o, i, a, s, d, p;
|
|
8551
|
+
return K(this, function(u) {
|
|
8552
|
+
switch (u.label) {
|
|
8554
8553
|
case 0:
|
|
8555
|
-
(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,
|
|
8554
|
+
(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, u.label = 1;
|
|
8556
8555
|
case 1:
|
|
8557
|
-
return
|
|
8556
|
+
return u.trys.push([1, 3, , 4]), [4, this.networkInterface.sendGetRequestAsync(t, r)];
|
|
8558
8557
|
case 2:
|
|
8559
|
-
if (i =
|
|
8558
|
+
if (i = u.sent(), a = void 0, s = void 0, Ui(i.body))
|
|
8560
8559
|
a = i.body, s = a.metadata, this.logger.verbosePii("tenant_discovery_endpoint is: " + a.tenant_discovery_endpoint);
|
|
8561
8560
|
else if (xi(i.body)) {
|
|
8562
8561
|
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)
|
|
@@ -8566,9 +8565,9 @@ var on = (
|
|
|
8566
8565
|
return this.logger.error("AAD did not return a CloudInstanceDiscoveryResponse or CloudInstanceDiscoveryErrorResponse"), [2, null];
|
|
8567
8566
|
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];
|
|
8568
8567
|
case 3:
|
|
8569
|
-
return
|
|
8570
|
-
Error: ` +
|
|
8571
|
-
Error Description: ` +
|
|
8568
|
+
return d = u.sent(), d instanceof D ? this.logger.error(`There was a network error while attempting to get the cloud discovery instance metadata.
|
|
8569
|
+
Error: ` + d.errorCode + `
|
|
8570
|
+
Error Description: ` + d.errorMessage) : (p = d, this.logger.error(`A non-MSALJS error was thrown while attempting to get the cloud instance discovery metadata.
|
|
8572
8571
|
Error: ` + p.name + `
|
|
8573
8572
|
Error Description: ` + p.message)), [2, null];
|
|
8574
8573
|
case 4:
|
|
@@ -8644,17 +8643,17 @@ var bn = (
|
|
|
8644
8643
|
}
|
|
8645
8644
|
return n.createDiscoveredInstance = function(e, t, r, o, i, a, s) {
|
|
8646
8645
|
return j(this, void 0, void 0, function() {
|
|
8647
|
-
var
|
|
8646
|
+
var d, p, u;
|
|
8648
8647
|
return K(this, function(f) {
|
|
8649
8648
|
switch (f.label) {
|
|
8650
8649
|
case 0:
|
|
8651
|
-
a == null || a.addQueueMeasurement(b.AuthorityFactoryCreateDiscoveredInstance, s),
|
|
8650
|
+
a == null || a.addQueueMeasurement(b.AuthorityFactoryCreateDiscoveredInstance, s), d = on.transformCIAMAuthority(e), p = n.createInstance(d, t, r, o, i, a, s), f.label = 1;
|
|
8652
8651
|
case 1:
|
|
8653
8652
|
return f.trys.push([1, 3, , 4]), a == null || a.setPreQueueTime(b.AuthorityResolveEndpointsAsync, s), [4, p.resolveEndpointsAsync()];
|
|
8654
8653
|
case 2:
|
|
8655
8654
|
return f.sent(), [2, p];
|
|
8656
8655
|
case 3:
|
|
8657
|
-
throw
|
|
8656
|
+
throw u = f.sent(), O.createEndpointDiscoveryIncompleteError(u);
|
|
8658
8657
|
case 4:
|
|
8659
8658
|
return [
|
|
8660
8659
|
2
|
|
@@ -8709,7 +8708,7 @@ var Di = {
|
|
|
8709
8708
|
}
|
|
8710
8709
|
};
|
|
8711
8710
|
/*! @azure/msal-common v13.3.1 2023-10-27 */
|
|
8712
|
-
var
|
|
8711
|
+
var dn = {
|
|
8713
8712
|
missingKidError: {
|
|
8714
8713
|
code: "missing_kid_error",
|
|
8715
8714
|
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."
|
|
@@ -8727,9 +8726,9 @@ var un = {
|
|
|
8727
8726
|
return o.name = "JoseHeaderError", Object.setPrototypeOf(o, e.prototype), o;
|
|
8728
8727
|
}
|
|
8729
8728
|
return e.createMissingKidError = function() {
|
|
8730
|
-
return new e(
|
|
8729
|
+
return new e(dn.missingKidError.code, dn.missingKidError.desc);
|
|
8731
8730
|
}, e.createMissingAlgError = function() {
|
|
8732
|
-
return new e(
|
|
8731
|
+
return new e(dn.missingAlgError.code, dn.missingAlgError.desc);
|
|
8733
8732
|
}, e;
|
|
8734
8733
|
}(D)
|
|
8735
8734
|
);
|
|
@@ -8788,8 +8787,8 @@ var qi = (
|
|
|
8788
8787
|
}, n.maxErrorsToSend = function(e) {
|
|
8789
8788
|
var t, r = 0, o = 0, i = e.errors.length;
|
|
8790
8789
|
for (t = 0; t < i; t++) {
|
|
8791
|
-
var a = e.failedRequests[2 * t] || g.EMPTY_STRING, s = e.failedRequests[2 * t + 1] || g.EMPTY_STRING,
|
|
8792
|
-
if (o += a.toString().length + s.toString().length +
|
|
8790
|
+
var a = e.failedRequests[2 * t] || g.EMPTY_STRING, s = e.failedRequests[2 * t + 1] || g.EMPTY_STRING, d = e.errors[t] || g.EMPTY_STRING;
|
|
8791
|
+
if (o += a.toString().length + s.toString().length + d.length + 3, o < ye.MAX_LAST_HEADER_BYTES)
|
|
8793
8792
|
r += 1;
|
|
8794
8793
|
else
|
|
8795
8794
|
break;
|
|
@@ -8857,7 +8856,7 @@ var ao = (
|
|
|
8857
8856
|
t || this.logger.info("PerformanceClient: No correlation id provided for " + e + ", generating", a), this.logger.trace("PerformanceClient: Performance measurement started for " + e, a);
|
|
8858
8857
|
var s = this.startPerformanceMeasuremeant(e, a);
|
|
8859
8858
|
s.startMeasurement();
|
|
8860
|
-
var
|
|
8859
|
+
var d = {
|
|
8861
8860
|
eventId: this.generateId(),
|
|
8862
8861
|
status: kn.InProgress,
|
|
8863
8862
|
authority: this.authority,
|
|
@@ -8870,41 +8869,41 @@ var ao = (
|
|
|
8870
8869
|
appName: (o = this.applicationTelemetry) === null || o === void 0 ? void 0 : o.appName,
|
|
8871
8870
|
appVersion: (i = this.applicationTelemetry) === null || i === void 0 ? void 0 : i.appVersion
|
|
8872
8871
|
};
|
|
8873
|
-
return this.cacheEventByCorrelationId(
|
|
8872
|
+
return this.cacheEventByCorrelationId(d), {
|
|
8874
8873
|
endMeasurement: function(p) {
|
|
8875
|
-
return r.endMeasurement(ee(ee({},
|
|
8874
|
+
return r.endMeasurement(ee(ee({}, d), p), s);
|
|
8876
8875
|
},
|
|
8877
8876
|
discardMeasurement: function() {
|
|
8878
|
-
return r.discardMeasurements(
|
|
8877
|
+
return r.discardMeasurements(d.correlationId);
|
|
8879
8878
|
},
|
|
8880
8879
|
addStaticFields: function(p) {
|
|
8881
|
-
return r.addStaticFields(p,
|
|
8880
|
+
return r.addStaticFields(p, d.correlationId);
|
|
8882
8881
|
},
|
|
8883
8882
|
increment: function(p) {
|
|
8884
|
-
return r.increment(p,
|
|
8883
|
+
return r.increment(p, d.correlationId);
|
|
8885
8884
|
},
|
|
8886
8885
|
measurement: s,
|
|
8887
|
-
event:
|
|
8886
|
+
event: d
|
|
8888
8887
|
};
|
|
8889
8888
|
}, n.prototype.endMeasurement = function(e, t) {
|
|
8890
8889
|
var r = this, o, i, a = this.eventsByCorrelationId.get(e.correlationId);
|
|
8891
8890
|
if (!a)
|
|
8892
8891
|
return this.logger.trace("PerformanceClient: Measurement not found for " + e.eventId, e.correlationId), null;
|
|
8893
|
-
var s = e.eventId === a.eventId,
|
|
8892
|
+
var s = e.eventId === a.eventId, d = {
|
|
8894
8893
|
totalQueueTime: 0,
|
|
8895
8894
|
totalQueueCount: 0,
|
|
8896
8895
|
manuallyCompletedCount: 0
|
|
8897
8896
|
};
|
|
8898
|
-
s ? (
|
|
8897
|
+
s ? (d = this.getQueueInfo(e.correlationId), this.discardCache(a.correlationId)) : (o = a.incompleteSubMeasurements) === null || o === void 0 || o.delete(e.eventId), t == null || t.endMeasurement();
|
|
8899
8898
|
var p = t == null ? void 0 : t.flushMeasurement();
|
|
8900
8899
|
if (!p)
|
|
8901
8900
|
return this.logger.trace("PerformanceClient: Performance measurement not taken", a.correlationId), null;
|
|
8902
8901
|
if (this.logger.trace("PerformanceClient: Performance measurement ended for " + e.name + ": " + p + " ms", e.correlationId), !s)
|
|
8903
8902
|
return a[e.name + "DurationMs"] = Math.floor(p), ee({}, a);
|
|
8904
|
-
var
|
|
8905
|
-
return (i =
|
|
8906
|
-
r.logger.trace("PerformanceClient: Incomplete submeasurement " + _.name + " found for " + e.name,
|
|
8907
|
-
}),
|
|
8903
|
+
var u = ee(ee({}, a), e), f = 0;
|
|
8904
|
+
return (i = u.incompleteSubMeasurements) === null || i === void 0 || i.forEach(function(_) {
|
|
8905
|
+
r.logger.trace("PerformanceClient: Incomplete submeasurement " + _.name + " found for " + e.name, u.correlationId), f++;
|
|
8906
|
+
}), u.incompleteSubMeasurements = void 0, u = ee(ee({}, u), { durationMs: Math.round(p), queuedTimeMs: d.totalQueueTime, queuedCount: d.totalQueueCount, queuedManuallyCompletedCount: d.manuallyCompletedCount, status: kn.Completed, incompleteSubsCount: f }), this.truncateIntegralFields(u, this.getIntFields()), this.emitEvents([u], e.correlationId), u;
|
|
8908
8907
|
}, n.prototype.addStaticFields = function(e, t) {
|
|
8909
8908
|
this.logger.trace("PerformanceClient: Updating static fields");
|
|
8910
8909
|
var r = this.eventsByCorrelationId.get(t);
|
|
@@ -9517,7 +9516,7 @@ var $n = (
|
|
|
9517
9516
|
return this.internalStorage;
|
|
9518
9517
|
}
|
|
9519
9518
|
}, e.prototype.migrateCacheEntries = function() {
|
|
9520
|
-
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),
|
|
9519
|
+
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), d = this.browserStorage.getItem(o), p = this.browserStorage.getItem(i), u = this.browserStorage.getItem(a), f = [s, d, p, u], _ = [he.ID_TOKEN, he.CLIENT_INFO, he.ERROR, he.ERROR_DESC];
|
|
9521
9520
|
_.forEach(function(k, E) {
|
|
9522
9521
|
return t.migrateCacheEntry(k, f[E]);
|
|
9523
9522
|
});
|
|
@@ -9536,33 +9535,33 @@ var $n = (
|
|
|
9536
9535
|
if (t.isCredentialKey(a)) {
|
|
9537
9536
|
var s = t.getItem(a);
|
|
9538
9537
|
if (s) {
|
|
9539
|
-
var
|
|
9540
|
-
if (
|
|
9541
|
-
switch (
|
|
9538
|
+
var d = t.validateAndParseJson(s);
|
|
9539
|
+
if (d && d.hasOwnProperty("credentialType"))
|
|
9540
|
+
switch (d.credentialType) {
|
|
9542
9541
|
case H.ID_TOKEN:
|
|
9543
|
-
if (gt.isIdTokenEntity(
|
|
9542
|
+
if (gt.isIdTokenEntity(d)) {
|
|
9544
9543
|
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");
|
|
9545
|
-
var p = Me.toObject(new gt(),
|
|
9546
|
-
t.addTokenKey(
|
|
9544
|
+
var p = Me.toObject(new gt(), d), u = t.updateCredentialCacheKey(a, p);
|
|
9545
|
+
t.addTokenKey(u, H.ID_TOKEN);
|
|
9547
9546
|
return;
|
|
9548
9547
|
} else
|
|
9549
9548
|
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);
|
|
9550
9549
|
break;
|
|
9551
9550
|
case H.ACCESS_TOKEN:
|
|
9552
9551
|
case H.ACCESS_TOKEN_WITH_AUTH_SCHEME:
|
|
9553
|
-
if (_t.isAccessTokenEntity(
|
|
9552
|
+
if (_t.isAccessTokenEntity(d)) {
|
|
9554
9553
|
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");
|
|
9555
|
-
var f = Me.toObject(new _t(),
|
|
9556
|
-
t.addTokenKey(
|
|
9554
|
+
var f = Me.toObject(new _t(), d), u = t.updateCredentialCacheKey(a, f);
|
|
9555
|
+
t.addTokenKey(u, H.ACCESS_TOKEN);
|
|
9557
9556
|
return;
|
|
9558
9557
|
} else
|
|
9559
9558
|
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);
|
|
9560
9559
|
break;
|
|
9561
9560
|
case H.REFRESH_TOKEN:
|
|
9562
|
-
if (Mt.isRefreshTokenEntity(
|
|
9561
|
+
if (Mt.isRefreshTokenEntity(d)) {
|
|
9563
9562
|
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");
|
|
9564
|
-
var _ = Me.toObject(new Mt(),
|
|
9565
|
-
t.addTokenKey(
|
|
9563
|
+
var _ = Me.toObject(new Mt(), d), u = t.updateCredentialCacheKey(a, _);
|
|
9564
|
+
t.addTokenKey(u, H.REFRESH_TOKEN);
|
|
9566
9565
|
return;
|
|
9567
9566
|
} else
|
|
9568
9567
|
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);
|
|
@@ -9923,21 +9922,21 @@ var $n = (
|
|
|
9923
9922
|
this.logger.trace("BrowserCacheManager.updateCacheEntries called");
|
|
9924
9923
|
var s = this.generateStateKey(t);
|
|
9925
9924
|
this.setTemporaryCache(s, t, !1);
|
|
9926
|
-
var
|
|
9927
|
-
this.setTemporaryCache(
|
|
9925
|
+
var d = this.generateNonceKey(t);
|
|
9926
|
+
this.setTemporaryCache(d, r, !1);
|
|
9928
9927
|
var p = this.generateAuthorityKey(t);
|
|
9929
9928
|
if (this.setTemporaryCache(p, o, !1), a) {
|
|
9930
|
-
var
|
|
9929
|
+
var u = {
|
|
9931
9930
|
credential: a.homeAccountId,
|
|
9932
9931
|
type: Be.HOME_ACCOUNT_ID
|
|
9933
9932
|
};
|
|
9934
|
-
this.setTemporaryCache(J.CCS_CREDENTIAL, JSON.stringify(
|
|
9933
|
+
this.setTemporaryCache(J.CCS_CREDENTIAL, JSON.stringify(u), !0);
|
|
9935
9934
|
} else if (!L.isEmpty(i)) {
|
|
9936
|
-
var
|
|
9935
|
+
var u = {
|
|
9937
9936
|
credential: i,
|
|
9938
9937
|
type: Be.UPN
|
|
9939
9938
|
};
|
|
9940
|
-
this.setTemporaryCache(J.CCS_CREDENTIAL, JSON.stringify(
|
|
9939
|
+
this.setTemporaryCache(J.CCS_CREDENTIAL, JSON.stringify(u), !0);
|
|
9941
9940
|
}
|
|
9942
9941
|
}, e.prototype.resetRequestCache = function(t) {
|
|
9943
9942
|
var r = this;
|
|
@@ -10159,9 +10158,9 @@ var Qi = (
|
|
|
10159
10158
|
), o.setXhrHeaders(s, r), s.onload = function() {
|
|
10160
10159
|
(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)));
|
|
10161
10160
|
try {
|
|
10162
|
-
var
|
|
10161
|
+
var d = JSON.parse(s.responseText), p = {
|
|
10163
10162
|
headers: o.getHeaderDict(s),
|
|
10164
|
-
body:
|
|
10163
|
+
body: d,
|
|
10165
10164
|
status: s.status
|
|
10166
10165
|
};
|
|
10167
10166
|
i(p);
|
|
@@ -10187,14 +10186,14 @@ var Qi = (
|
|
|
10187
10186
|
}, n.prototype.getHeaderDict = function(e) {
|
|
10188
10187
|
var t = e.getAllResponseHeaders(), r = t.trim().split(/[\r\n]+/), o = {};
|
|
10189
10188
|
return r.forEach(function(i) {
|
|
10190
|
-
var a = i.split(": "), s = a.shift(),
|
|
10191
|
-
s &&
|
|
10189
|
+
var a = i.split(": "), s = a.shift(), d = a.join(": ");
|
|
10190
|
+
s && d && (o[s] = d);
|
|
10192
10191
|
}), o;
|
|
10193
10192
|
}, n;
|
|
10194
10193
|
}()
|
|
10195
10194
|
);
|
|
10196
10195
|
/*! @azure/msal-browser v2.38.3 2023-10-27 */
|
|
10197
|
-
var
|
|
10196
|
+
var ue = (
|
|
10198
10197
|
/** @class */
|
|
10199
10198
|
function() {
|
|
10200
10199
|
function n() {
|
|
@@ -10242,8 +10241,8 @@ var de = (
|
|
|
10242
10241
|
var co = (
|
|
10243
10242
|
/** @class */
|
|
10244
10243
|
function() {
|
|
10245
|
-
function n(e, t, r, o, i, a, s,
|
|
10246
|
-
this.config = e, this.browserStorage = t, this.browserCrypto = r, this.networkClient = this.config.system.networkClient, this.eventHandler = i, this.navigationClient = a, this.nativeMessageHandler =
|
|
10244
|
+
function n(e, t, r, o, i, a, s, d, p) {
|
|
10245
|
+
this.config = e, this.browserStorage = t, this.browserCrypto = r, this.networkClient = this.config.system.networkClient, this.eventHandler = i, this.navigationClient = a, this.nativeMessageHandler = d, this.correlationId = p || this.browserCrypto.createNewGuid(), this.logger = o.clone(Qe.MSAL_SKU, tn, this.correlationId), this.performanceClient = s;
|
|
10247
10246
|
}
|
|
10248
10247
|
return n.prototype.clearCacheOnLogout = function(e) {
|
|
10249
10248
|
return T(this, void 0, void 0, function() {
|
|
@@ -10292,9 +10291,9 @@ var co = (
|
|
|
10292
10291
|
authority: r,
|
|
10293
10292
|
scopes: o
|
|
10294
10293
|
}), !i.authenticationScheme)
|
|
10295
|
-
i.authenticationScheme =
|
|
10294
|
+
i.authenticationScheme = ne.BEARER, this.logger.verbose(`Authentication Scheme wasn't explicitly set in request, defaulting to "Bearer" request`);
|
|
10296
10295
|
else {
|
|
10297
|
-
if (i.authenticationScheme ===
|
|
10296
|
+
if (i.authenticationScheme === ne.SSH) {
|
|
10298
10297
|
if (!e.sshJwk)
|
|
10299
10298
|
throw ie.createMissingSshJwkError();
|
|
10300
10299
|
if (!e.sshKid)
|
|
@@ -10312,8 +10311,8 @@ var co = (
|
|
|
10312
10311
|
});
|
|
10313
10312
|
}, n.prototype.getRedirectUri = function(e) {
|
|
10314
10313
|
this.logger.verbose("getRedirectUri called");
|
|
10315
|
-
var t = e || this.config.auth.redirectUri ||
|
|
10316
|
-
return W.getAbsoluteUrl(t,
|
|
10314
|
+
var t = e || this.config.auth.redirectUri || ue.getCurrentUri();
|
|
10315
|
+
return W.getAbsoluteUrl(t, ue.getCurrentUri());
|
|
10317
10316
|
}, n.prototype.validateRequestAuthority = function(e, t) {
|
|
10318
10317
|
return T(this, void 0, void 0, function() {
|
|
10319
10318
|
var r;
|
|
@@ -10399,7 +10398,7 @@ var jt = (
|
|
|
10399
10398
|
this.logger.verbose("logoutHint was not set and account was not passed into logout request, logoutHint will not be set");
|
|
10400
10399
|
else
|
|
10401
10400
|
this.logger.verbose("logoutHint will not be set since no logout request was configured");
|
|
10402
|
-
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,
|
|
10401
|
+
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, ue.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, ue.getCurrentUri())) : (this.logger.verbose("Setting postLogoutRedirectUri to current page", r.correlationId), r.postLogoutRedirectUri = W.getAbsoluteUrl(ue.getCurrentUri(), ue.getCurrentUri())) : this.logger.verbose("postLogoutRedirectUri passed as null, not setting post logout redirect uri", r.correlationId), r;
|
|
10403
10402
|
}, e.prototype.getLogoutHintFromIdTokenClaims = function(t) {
|
|
10404
10403
|
var r = t.idTokenClaims;
|
|
10405
10404
|
if (r) {
|
|
@@ -10475,7 +10474,7 @@ var jt = (
|
|
|
10475
10474
|
}, e.prototype.getDiscoveredAuthority = function(t, r) {
|
|
10476
10475
|
var o;
|
|
10477
10476
|
return T(this, void 0, void 0, function() {
|
|
10478
|
-
var i, a, s,
|
|
10477
|
+
var i, a, s, d;
|
|
10479
10478
|
return I(this, function(p) {
|
|
10480
10479
|
switch (p.label) {
|
|
10481
10480
|
case 0:
|
|
@@ -10485,16 +10484,16 @@ var jt = (
|
|
|
10485
10484
|
cloudDiscoveryMetadata: this.config.auth.cloudDiscoveryMetadata,
|
|
10486
10485
|
authorityMetadata: this.config.auth.authorityMetadata,
|
|
10487
10486
|
skipAuthorityMetadataCache: this.config.auth.skipAuthorityMetadataCache
|
|
10488
|
-
}, s = t || this.config.auth.authority,
|
|
10487
|
+
}, s = t || this.config.auth.authority, d = on.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(d, this.config.system.networkClient, this.browserStorage, a, this.logger, this.performanceClient, this.correlationId).then(function(u) {
|
|
10489
10488
|
return i.endMeasurement({
|
|
10490
10489
|
success: !0
|
|
10491
|
-
}),
|
|
10492
|
-
}).catch(function(
|
|
10490
|
+
}), u;
|
|
10491
|
+
}).catch(function(u) {
|
|
10493
10492
|
throw i.endMeasurement({
|
|
10494
|
-
errorCode:
|
|
10495
|
-
subErrorCode:
|
|
10493
|
+
errorCode: u.errorCode,
|
|
10494
|
+
subErrorCode: u.subError,
|
|
10496
10495
|
success: !1
|
|
10497
|
-
}),
|
|
10496
|
+
}), u;
|
|
10498
10497
|
})];
|
|
10499
10498
|
case 1:
|
|
10500
10499
|
return [2, p.sent()];
|
|
@@ -10503,15 +10502,15 @@ var jt = (
|
|
|
10503
10502
|
});
|
|
10504
10503
|
}, e.prototype.initializeAuthorizationRequest = function(t, r) {
|
|
10505
10504
|
return T(this, void 0, void 0, function() {
|
|
10506
|
-
var o, i, a, s,
|
|
10505
|
+
var o, i, a, s, d, p, u;
|
|
10507
10506
|
return I(this, function(f) {
|
|
10508
10507
|
switch (f.label) {
|
|
10509
10508
|
case 0:
|
|
10510
10509
|
return this.performanceClient.addQueueMeasurement(b.StandardInteractionClientInitializeAuthorizationRequest, this.correlationId), this.logger.verbose("initializeAuthorizationRequest called", this.correlationId), o = this.getRedirectUri(t.redirectUri), i = {
|
|
10511
10510
|
interactionType: r
|
|
10512
|
-
}, a = st.setRequestState(this.browserCrypto, t && t.state || g.EMPTY_STRING, i), this.performanceClient.setPreQueueTime(b.InitializeBaseRequest, this.correlationId),
|
|
10511
|
+
}, a = st.setRequestState(this.browserCrypto, t && t.state || g.EMPTY_STRING, i), this.performanceClient.setPreQueueTime(b.InitializeBaseRequest, this.correlationId), d = [{}], [4, this.initializeBaseRequest(t)];
|
|
10513
10512
|
case 1:
|
|
10514
|
-
return s = B.apply(void 0, [B.apply(void 0,
|
|
10513
|
+
return s = B.apply(void 0, [B.apply(void 0, d.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 && (u = this.browserStorage.getLegacyLoginHint(), u && (s.loginHint = u)), [2, s];
|
|
10515
10514
|
}
|
|
10516
10515
|
});
|
|
10517
10516
|
});
|
|
@@ -10528,7 +10527,7 @@ var or = (
|
|
|
10528
10527
|
return n.prototype.handleCodeResponseFromHash = function(e, t, r, o) {
|
|
10529
10528
|
return T(this, void 0, void 0, function() {
|
|
10530
10529
|
var i, a, s;
|
|
10531
|
-
return I(this, function(
|
|
10530
|
+
return I(this, function(d) {
|
|
10532
10531
|
if (this.performanceClient.addQueueMeasurement(b.HandleCodeResponseFromHash, this.authCodeRequest.correlationId), this.logger.verbose("InteractionHandler.handleCodeResponse called"), L.isEmpty(e))
|
|
10533
10532
|
throw M.createEmptyHashError(e);
|
|
10534
10533
|
if (i = this.browserStorage.generateStateKey(t), a = this.browserStorage.getTemporaryCache(i), !a)
|
|
@@ -10543,17 +10542,17 @@ var or = (
|
|
|
10543
10542
|
});
|
|
10544
10543
|
}, n.prototype.handleCodeResponseFromServer = function(e, t, r, o, i) {
|
|
10545
10544
|
return i === void 0 && (i = !0), T(this, void 0, void 0, function() {
|
|
10546
|
-
var a, s,
|
|
10545
|
+
var a, s, d, p, u, f;
|
|
10547
10546
|
return I(this, function(_) {
|
|
10548
10547
|
switch (_.label) {
|
|
10549
10548
|
case 0:
|
|
10550
10549
|
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)
|
|
10551
10550
|
throw O.createStateNotFoundError("Cached State");
|
|
10552
|
-
return
|
|
10551
|
+
return d = this.browserStorage.generateNonceKey(s), p = this.browserStorage.getTemporaryCache(d), 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];
|
|
10553
10552
|
case 1:
|
|
10554
10553
|
_.sent(), _.label = 2;
|
|
10555
10554
|
case 2:
|
|
10556
|
-
return i && (e.nonce = p || void 0), e.state = s, e.client_info ? this.authCodeRequest.clientInfo = e.client_info : (
|
|
10555
|
+
return i && (e.nonce = p || void 0), e.state = s, e.client_info ? this.authCodeRequest.clientInfo = e.client_info : (u = this.checkCcsCredentials(), u && (this.authCodeRequest.ccsCredential = u)), this.performanceClient.setPreQueueTime(b.AuthClientAcquireToken, this.authCodeRequest.correlationId), [4, this.authModule.acquireToken(this.authCodeRequest, e)];
|
|
10557
10556
|
case 3:
|
|
10558
10557
|
return f = _.sent(), this.browserStorage.cleanRequestByState(t), [2, f];
|
|
10559
10558
|
}
|
|
@@ -10592,8 +10591,8 @@ var Ur = (
|
|
|
10592
10591
|
function(n) {
|
|
10593
10592
|
be(e, n);
|
|
10594
10593
|
function e(t, r, o, i, a, s) {
|
|
10595
|
-
var
|
|
10596
|
-
return
|
|
10594
|
+
var d = n.call(this, t, r, o, i, s) || this;
|
|
10595
|
+
return d.browserCrypto = a, d;
|
|
10597
10596
|
}
|
|
10598
10597
|
return e.prototype.initiateAuthRequest = function(t, r) {
|
|
10599
10598
|
return T(this, void 0, void 0, function() {
|
|
@@ -10639,7 +10638,7 @@ var Ur = (
|
|
|
10639
10638
|
});
|
|
10640
10639
|
}, e.prototype.handleCodeResponseFromHash = function(t, r, o, i) {
|
|
10641
10640
|
return T(this, void 0, void 0, function() {
|
|
10642
|
-
var a, s,
|
|
10641
|
+
var a, s, d, p, u, f, _;
|
|
10643
10642
|
return I(this, function(k) {
|
|
10644
10643
|
switch (k.label) {
|
|
10645
10644
|
case 0:
|
|
@@ -10648,15 +10647,15 @@ var Ur = (
|
|
|
10648
10647
|
if (this.browserStorage.setInteractionInProgress(!1), a = this.browserStorage.generateStateKey(r), s = this.browserStorage.getTemporaryCache(a), !s)
|
|
10649
10648
|
throw O.createStateNotFoundError("Cached State");
|
|
10650
10649
|
try {
|
|
10651
|
-
|
|
10650
|
+
d = this.authModule.handleFragmentResponse(t, s);
|
|
10652
10651
|
} catch (E) {
|
|
10653
10652
|
throw E instanceof bt && E.subError === A.userCancelledError.code ? M.createUserCancelledError() : E;
|
|
10654
10653
|
}
|
|
10655
|
-
return p = this.browserStorage.generateNonceKey(s),
|
|
10654
|
+
return p = this.browserStorage.generateNonceKey(s), u = this.browserStorage.getTemporaryCache(p), this.authCodeRequest.code = d.code, d.cloud_instance_host_name ? [4, this.updateTokenEndpointAuthority(d.cloud_instance_host_name, o, i)] : [3, 2];
|
|
10656
10655
|
case 1:
|
|
10657
10656
|
k.sent(), k.label = 2;
|
|
10658
10657
|
case 2:
|
|
10659
|
-
return
|
|
10658
|
+
return d.nonce = u || void 0, d.state = s, d.client_info ? this.authCodeRequest.clientInfo = d.client_info : (f = this.checkCcsCredentials(), f && (this.authCodeRequest.ccsCredential = f)), [4, this.authModule.acquireToken(this.authCodeRequest, d)];
|
|
10660
10659
|
case 3:
|
|
10661
10660
|
return _ = k.sent(), this.browserStorage.cleanRequestByState(r), [2, _];
|
|
10662
10661
|
}
|
|
@@ -10735,21 +10734,21 @@ var lo = (
|
|
|
10735
10734
|
return e.prototype.acquireToken = function(t) {
|
|
10736
10735
|
return T(this, void 0, void 0, function() {
|
|
10737
10736
|
var r, o, i, a, s;
|
|
10738
|
-
return I(this, function(
|
|
10739
|
-
switch (
|
|
10737
|
+
return I(this, function(d) {
|
|
10738
|
+
switch (d.label) {
|
|
10740
10739
|
case 0:
|
|
10741
10740
|
return r = this.performanceClient.startMeasurement(b.SilentCacheClientAcquireToken, t.correlationId), o = this.initializeServerTelemetryManager(oe.acquireTokenSilent_silentFlow), [4, this.createSilentFlowClient(o, t.authority, t.azureCloudOptions)];
|
|
10742
10741
|
case 1:
|
|
10743
|
-
i =
|
|
10742
|
+
i = d.sent(), this.logger.verbose("Silent auth client created"), d.label = 2;
|
|
10744
10743
|
case 2:
|
|
10745
|
-
return
|
|
10744
|
+
return d.trys.push([2, 4, , 5]), [4, i.acquireCachedToken(t)];
|
|
10746
10745
|
case 3:
|
|
10747
|
-
return a =
|
|
10746
|
+
return a = d.sent(), r.endMeasurement({
|
|
10748
10747
|
success: !0,
|
|
10749
10748
|
fromCache: !0
|
|
10750
10749
|
}), [2, a];
|
|
10751
10750
|
case 4:
|
|
10752
|
-
throw s =
|
|
10751
|
+
throw s = d.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({
|
|
10753
10752
|
errorCode: s instanceof D && s.errorCode || void 0,
|
|
10754
10753
|
subErrorCode: s instanceof D && s.subError || void 0,
|
|
10755
10754
|
success: !1
|
|
@@ -10796,36 +10795,36 @@ var zt = (
|
|
|
10796
10795
|
/** @class */
|
|
10797
10796
|
function(n) {
|
|
10798
10797
|
be(e, n);
|
|
10799
|
-
function e(t, r, o, i, a, s,
|
|
10800
|
-
var E = n.call(this, t, r, o, i, a, s, p,
|
|
10801
|
-
return E.apiId =
|
|
10798
|
+
function e(t, r, o, i, a, s, d, p, u, f, _, k) {
|
|
10799
|
+
var E = n.call(this, t, r, o, i, a, s, p, u, k) || this;
|
|
10800
|
+
return E.apiId = d, E.accountId = f, E.nativeMessageHandler = u, E.nativeStorageManager = _, E.silentCacheClient = new lo(t, E.nativeStorageManager, o, i, a, s, p, u, k), E;
|
|
10802
10801
|
}
|
|
10803
10802
|
return e.prototype.acquireToken = function(t) {
|
|
10804
10803
|
return T(this, void 0, void 0, function() {
|
|
10805
|
-
var r, o, i, a, s,
|
|
10806
|
-
return I(this, function(
|
|
10807
|
-
switch (
|
|
10804
|
+
var r, o, i, a, s, d, p;
|
|
10805
|
+
return I(this, function(u) {
|
|
10806
|
+
switch (u.label) {
|
|
10808
10807
|
case 0:
|
|
10809
10808
|
return this.logger.trace("NativeInteractionClient - acquireToken called."), r = this.performanceClient.startMeasurement(b.NativeInteractionClientAcquireToken, t.correlationId), o = Ke.nowSeconds(), [4, this.initializeNativeRequest(t)];
|
|
10810
10809
|
case 1:
|
|
10811
|
-
i =
|
|
10810
|
+
i = u.sent(), u.label = 2;
|
|
10812
10811
|
case 2:
|
|
10813
|
-
return
|
|
10812
|
+
return u.trys.push([2, 4, , 5]), [4, this.acquireTokensFromCache(this.accountId, i)];
|
|
10814
10813
|
case 3:
|
|
10815
|
-
return a =
|
|
10814
|
+
return a = u.sent(), r.endMeasurement({
|
|
10816
10815
|
success: !0,
|
|
10817
10816
|
isNativeBroker: !1,
|
|
10818
10817
|
fromCache: !0
|
|
10819
10818
|
}), [2, a];
|
|
10820
10819
|
case 4:
|
|
10821
|
-
return
|
|
10820
|
+
return u.sent(), this.logger.info("MSAL internal Cache does not contain tokens, proceed to make a native call"), [3, 5];
|
|
10822
10821
|
case 5:
|
|
10823
10822
|
return s = {
|
|
10824
10823
|
method: at.GetToken,
|
|
10825
10824
|
request: i
|
|
10826
10825
|
}, [4, this.nativeMessageHandler.sendMessage(s)];
|
|
10827
10826
|
case 6:
|
|
10828
|
-
return
|
|
10827
|
+
return d = u.sent(), p = this.validateNativeResponse(d), [2, this.handleNativeResponse(p, i, o).then(function(f) {
|
|
10829
10828
|
return r.endMeasurement({
|
|
10830
10829
|
success: !0,
|
|
10831
10830
|
isNativeBroker: !0,
|
|
@@ -10853,20 +10852,20 @@ var zt = (
|
|
|
10853
10852
|
}, e.prototype.acquireTokensFromCache = function(t, r) {
|
|
10854
10853
|
return T(this, void 0, void 0, function() {
|
|
10855
10854
|
var o, i, a, s;
|
|
10856
|
-
return I(this, function(
|
|
10857
|
-
switch (
|
|
10855
|
+
return I(this, function(d) {
|
|
10856
|
+
switch (d.label) {
|
|
10858
10857
|
case 0:
|
|
10859
10858
|
if (!t)
|
|
10860
10859
|
throw this.logger.warning("NativeInteractionClient:acquireTokensFromCache - No nativeAccountId provided"), O.createNoAccountFoundError();
|
|
10861
10860
|
if (o = this.browserStorage.getAccountInfoFilteredBy({ nativeAccountId: t }), !o)
|
|
10862
10861
|
throw O.createNoAccountFoundError();
|
|
10863
|
-
|
|
10862
|
+
d.label = 1;
|
|
10864
10863
|
case 1:
|
|
10865
|
-
return
|
|
10864
|
+
return d.trys.push([1, 3, , 4]), i = this.createSilentCacheRequest(r, o), [4, this.silentCacheClient.acquireToken(i)];
|
|
10866
10865
|
case 2:
|
|
10867
|
-
return a =
|
|
10866
|
+
return a = d.sent(), [2, a];
|
|
10868
10867
|
case 3:
|
|
10869
|
-
throw s =
|
|
10868
|
+
throw s = d.sent(), s;
|
|
10870
10869
|
case 4:
|
|
10871
10870
|
return [
|
|
10872
10871
|
2
|
|
@@ -10877,7 +10876,7 @@ var zt = (
|
|
|
10877
10876
|
});
|
|
10878
10877
|
}, e.prototype.acquireTokenRedirect = function(t) {
|
|
10879
10878
|
return T(this, void 0, void 0, function() {
|
|
10880
|
-
var r, o, i, a, s,
|
|
10879
|
+
var r, o, i, a, s, d;
|
|
10881
10880
|
return I(this, function(p) {
|
|
10882
10881
|
switch (p.label) {
|
|
10883
10882
|
case 0:
|
|
@@ -10900,7 +10899,7 @@ var zt = (
|
|
|
10900
10899
|
apiId: oe.acquireTokenRedirect,
|
|
10901
10900
|
timeout: this.config.system.redirectNavigationTimeout,
|
|
10902
10901
|
noHistory: !1
|
|
10903
|
-
},
|
|
10902
|
+
}, d = this.config.auth.navigateToLoginRequestUrl ? window.location.href : this.getRedirectUri(t.redirectUri), [4, this.navigationClient.navigateExternal(d, s)];
|
|
10904
10903
|
case 6:
|
|
10905
10904
|
return p.sent(), [
|
|
10906
10905
|
2
|
|
@@ -10911,9 +10910,9 @@ var zt = (
|
|
|
10911
10910
|
});
|
|
10912
10911
|
}, e.prototype.handleRedirectPromise = function() {
|
|
10913
10912
|
return T(this, void 0, void 0, function() {
|
|
10914
|
-
var t, r, o, i, a, s,
|
|
10915
|
-
return I(this, function(
|
|
10916
|
-
switch (
|
|
10913
|
+
var t, r, o, i, a, s, d, p;
|
|
10914
|
+
return I(this, function(u) {
|
|
10915
|
+
switch (u.label) {
|
|
10917
10916
|
case 0:
|
|
10918
10917
|
if (this.logger.trace("NativeInteractionClient - handleRedirectPromise called."), !this.browserStorage.isInteractionInProgress(!0))
|
|
10919
10918
|
return this.logger.info("handleRedirectPromise called but there is no interaction in progress, returning null."), [2, null];
|
|
@@ -10922,13 +10921,13 @@ var zt = (
|
|
|
10922
10921
|
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 = {
|
|
10923
10922
|
method: at.GetToken,
|
|
10924
10923
|
request: o
|
|
10925
|
-
}, a = Ke.nowSeconds(),
|
|
10924
|
+
}, a = Ke.nowSeconds(), u.label = 1;
|
|
10926
10925
|
case 1:
|
|
10927
|
-
return
|
|
10926
|
+
return u.trys.push([1, 3, , 4]), this.logger.verbose("NativeInteractionClient - handleRedirectPromise sending message to native broker."), [4, this.nativeMessageHandler.sendMessage(i)];
|
|
10928
10927
|
case 2:
|
|
10929
|
-
return s =
|
|
10928
|
+
return s = u.sent(), this.validateNativeResponse(s), d = this.handleNativeResponse(s, o, a), this.browserStorage.setInteractionInProgress(!1), [2, d];
|
|
10930
10929
|
case 3:
|
|
10931
|
-
throw p =
|
|
10930
|
+
throw p = u.sent(), this.browserStorage.setInteractionInProgress(!1), p;
|
|
10932
10931
|
case 4:
|
|
10933
10932
|
return [
|
|
10934
10933
|
2
|
|
@@ -10941,7 +10940,7 @@ var zt = (
|
|
|
10941
10940
|
return this.logger.trace("NativeInteractionClient - logout called."), Promise.reject("Logout not implemented yet");
|
|
10942
10941
|
}, e.prototype.handleNativeResponse = function(t, r, o) {
|
|
10943
10942
|
return T(this, void 0, void 0, function() {
|
|
10944
|
-
var i, a, s,
|
|
10943
|
+
var i, a, s, d, p, u;
|
|
10945
10944
|
return I(this, function(f) {
|
|
10946
10945
|
switch (f.label) {
|
|
10947
10946
|
case 0:
|
|
@@ -10949,9 +10948,9 @@ var zt = (
|
|
|
10949
10948
|
throw tt.createUserSwitchError();
|
|
10950
10949
|
return [4, this.getDiscoveredAuthority(r.authority)];
|
|
10951
10950
|
case 1:
|
|
10952
|
-
return i = f.sent(), a = i.getPreferredCache(), s = this.createIdTokenObj(t),
|
|
10951
|
+
return i = f.sent(), a = i.getPreferredCache(), s = this.createIdTokenObj(t), d = this.createHomeAccountIdentifier(t, s), p = this.createAccountEntity(t, d, s, a), [4, this.generateAuthenticationResult(t, r, s, p, i.canonicalAuthority, o)];
|
|
10953
10952
|
case 2:
|
|
10954
|
-
return
|
|
10953
|
+
return u = f.sent(), this.cacheAccount(p), this.cacheNativeTokens(t, r, d, p, s, u.accessToken, u.tenantId, o), [2, u];
|
|
10955
10954
|
}
|
|
10956
10955
|
});
|
|
10957
10956
|
});
|
|
@@ -10970,7 +10969,7 @@ var zt = (
|
|
|
10970
10969
|
return I(this, function(a) {
|
|
10971
10970
|
switch (a.label) {
|
|
10972
10971
|
case 0:
|
|
10973
|
-
if (r.tokenType !==
|
|
10972
|
+
if (r.tokenType !== ne.POP)
|
|
10974
10973
|
return [3, 2];
|
|
10975
10974
|
if (t.shr)
|
|
10976
10975
|
return this.logger.trace("handleNativeServerResponse: SHR is enabled in native layer"), [2, t.shr];
|
|
@@ -10991,13 +10990,13 @@ var zt = (
|
|
|
10991
10990
|
});
|
|
10992
10991
|
}, e.prototype.generateAuthenticationResult = function(t, r, o, i, a, s) {
|
|
10993
10992
|
return T(this, void 0, void 0, function() {
|
|
10994
|
-
var
|
|
10993
|
+
var d, p, u, f, _, k, E, N;
|
|
10995
10994
|
return I(this, function(Q) {
|
|
10996
10995
|
switch (Q.label) {
|
|
10997
10996
|
case 0:
|
|
10998
|
-
return
|
|
10997
|
+
return d = this.addTelemetryFromNativeResponse(t), p = t.scope ? Ee.fromString(t.scope) : Ee.fromString(r.scope), u = t.account.properties || {}, f = u.UID || o.claims.oid || o.claims.sub || g.EMPTY_STRING, _ = u.TenantId || o.claims.tid || g.EMPTY_STRING, [4, this.generatePopAccessToken(t, r)];
|
|
10999
10998
|
case 1:
|
|
11000
|
-
return k = Q.sent(), E = r.tokenType ===
|
|
10999
|
+
return k = Q.sent(), E = r.tokenType === ne.POP ? ne.POP : ne.BEARER, N = {
|
|
11001
11000
|
authority: a,
|
|
11002
11001
|
uniqueId: f,
|
|
11003
11002
|
tenantId: _,
|
|
@@ -11006,7 +11005,7 @@ var zt = (
|
|
|
11006
11005
|
idToken: t.id_token,
|
|
11007
11006
|
idTokenClaims: o.claims,
|
|
11008
11007
|
accessToken: k,
|
|
11009
|
-
fromCache:
|
|
11008
|
+
fromCache: d ? this.isResponseFromCache(d) : !1,
|
|
11010
11009
|
expiresOn: new Date(Number(s + t.expires_in) * 1e3),
|
|
11011
11010
|
tokenType: E,
|
|
11012
11011
|
correlationId: this.correlationId,
|
|
@@ -11021,8 +11020,8 @@ var zt = (
|
|
|
11021
11020
|
this.browserStorage.setAccount(t), this.browserStorage.removeAccountContext(t).catch(function(o) {
|
|
11022
11021
|
r.logger.error("Error occurred while removing account context from browser storage. " + o);
|
|
11023
11022
|
});
|
|
11024
|
-
}, e.prototype.cacheNativeTokens = function(t, r, o, i, a, s,
|
|
11025
|
-
var
|
|
11023
|
+
}, e.prototype.cacheNativeTokens = function(t, r, o, i, a, s, d, p) {
|
|
11024
|
+
var u = gt.createIdTokenEntity(o, r.authority, t.id_token || g.EMPTY_STRING, r.clientId, a.claims.tid || g.EMPTY_STRING), f = r.tokenType === ne.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 : d, k.printScopes(), _, 0, this.browserCrypto), N = new en(i, u, E);
|
|
11026
11025
|
this.nativeStorageManager.saveCacheRecord(N);
|
|
11027
11026
|
}, e.prototype.addTelemetryFromNativeResponse = function(t) {
|
|
11028
11027
|
var r = this.getMATSFromResponse(t);
|
|
@@ -11059,7 +11058,7 @@ var zt = (
|
|
|
11059
11058
|
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;
|
|
11060
11059
|
}, e.prototype.initializeNativeRequest = function(t) {
|
|
11061
11060
|
return T(this, void 0, void 0, function() {
|
|
11062
|
-
var r, o, i, a, s,
|
|
11061
|
+
var r, o, i, a, s, d, p, u, f, _, k = this;
|
|
11063
11062
|
return I(this, function(E) {
|
|
11064
11063
|
switch (E.label) {
|
|
11065
11064
|
case 0:
|
|
@@ -11067,7 +11066,7 @@ var zt = (
|
|
|
11067
11066
|
case 1:
|
|
11068
11067
|
E.sent(), E.label = 2;
|
|
11069
11068
|
case 2:
|
|
11070
|
-
return o = new W(r), o.validateAsUri(), i = t.scopes, a = br(t, ["scopes"]), s = new Ee(i || []), s.appendScopes(an),
|
|
11069
|
+
return o = new W(r), o.validateAsUri(), i = t.scopes, a = br(t, ["scopes"]), s = new Ee(i || []), s.appendScopes(an), d = function() {
|
|
11071
11070
|
switch (k.apiId) {
|
|
11072
11071
|
case oe.ssoSilent:
|
|
11073
11072
|
case oe.acquireTokenSilent_silentFlow:
|
|
@@ -11091,19 +11090,19 @@ var zt = (
|
|
|
11091
11090
|
authority: o.urlString,
|
|
11092
11091
|
scope: s.printScopes(),
|
|
11093
11092
|
redirectUri: this.getRedirectUri(t.redirectUri),
|
|
11094
|
-
prompt:
|
|
11093
|
+
prompt: d(),
|
|
11095
11094
|
correlationId: this.correlationId,
|
|
11096
11095
|
tokenType: t.authenticationScheme,
|
|
11097
11096
|
windowTitleSubstring: document.title,
|
|
11098
11097
|
extraParameters: B(B(B({}, t.extraQueryParameters), t.tokenQueryParameters), { telemetry: Vt.MATS_TELEMETRY }),
|
|
11099
11098
|
extendedExpiryToken: !1
|
|
11100
11099
|
// Make this configurable?
|
|
11101
|
-
}), t.authenticationScheme !==
|
|
11100
|
+
}), t.authenticationScheme !== ne.POP ? [3, 4] : (u = {
|
|
11102
11101
|
resourceRequestUri: t.resourceRequestUri,
|
|
11103
11102
|
resourceRequestMethod: t.resourceRequestMethod,
|
|
11104
11103
|
shrClaims: t.shrClaims,
|
|
11105
11104
|
shrNonce: t.shrNonce
|
|
11106
|
-
}, f = new xt(this.browserCrypto), [4, f.generateCnf(
|
|
11105
|
+
}, f = new xt(this.browserCrypto), [4, f.generateCnf(u)]);
|
|
11107
11106
|
case 3:
|
|
11108
11107
|
_ = E.sent(), p.reqCnf = _.reqCnfString, p.keyId = _.kid, E.label = 4;
|
|
11109
11108
|
case 4:
|
|
@@ -11225,8 +11224,8 @@ var yt = (
|
|
|
11225
11224
|
return t.trace("isNativeAvailable: WAM extension provider is not initialized, returning false"), !1;
|
|
11226
11225
|
if (o)
|
|
11227
11226
|
switch (o) {
|
|
11228
|
-
case
|
|
11229
|
-
case
|
|
11227
|
+
case ne.BEARER:
|
|
11228
|
+
case ne.POP:
|
|
11230
11229
|
return t.trace("isNativeAvailable: authenticationScheme is supported, returning true"), !0;
|
|
11231
11230
|
default:
|
|
11232
11231
|
return t.trace("isNativeAvailable: authenticationScheme is not supported, returning false"), !1;
|
|
@@ -11240,13 +11239,13 @@ var Yi = (
|
|
|
11240
11239
|
/** @class */
|
|
11241
11240
|
function(n) {
|
|
11242
11241
|
be(e, n);
|
|
11243
|
-
function e(t, r, o, i, a, s,
|
|
11244
|
-
var _ = n.call(this, t, r, o, i, a, s,
|
|
11242
|
+
function e(t, r, o, i, a, s, d, p, u, f) {
|
|
11243
|
+
var _ = n.call(this, t, r, o, i, a, s, d, u, f) || this;
|
|
11245
11244
|
return _.nativeStorage = p, _;
|
|
11246
11245
|
}
|
|
11247
11246
|
return e.prototype.acquireToken = function(t) {
|
|
11248
11247
|
return T(this, void 0, void 0, function() {
|
|
11249
|
-
var r, o, i, a, s,
|
|
11248
|
+
var r, o, i, a, s, d, p, u, f, _ = this;
|
|
11250
11249
|
return I(this, function(k) {
|
|
11251
11250
|
switch (k.label) {
|
|
11252
11251
|
case 0:
|
|
@@ -11260,12 +11259,12 @@ var Yi = (
|
|
|
11260
11259
|
case 3:
|
|
11261
11260
|
return a = k.sent(), this.performanceClient.setPreQueueTime(b.StandardInteractionClientCreateAuthCodeClient, t.correlationId), [4, this.createAuthCodeClient(o, r.authority, r.azureCloudOptions)];
|
|
11262
11261
|
case 4:
|
|
11263
|
-
return s = k.sent(), this.logger.verbose("Auth code client created"),
|
|
11262
|
+
return s = k.sent(), this.logger.verbose("Auth code client created"), d = 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) }))];
|
|
11264
11263
|
case 5:
|
|
11265
|
-
return p = k.sent(),
|
|
11264
|
+
return p = k.sent(), u = this.getRedirectStartPage(t.redirectStartPage), this.logger.verbosePii("Redirect start page: " + u), window.addEventListener("pageshow", i), [4, d.initiateAuthRequest(p, {
|
|
11266
11265
|
navigationClient: this.navigationClient,
|
|
11267
11266
|
redirectTimeout: this.config.system.redirectNavigationTimeout,
|
|
11268
|
-
redirectStartPage:
|
|
11267
|
+
redirectStartPage: u,
|
|
11269
11268
|
onRedirectNavigate: t.onRedirectNavigate
|
|
11270
11269
|
})];
|
|
11271
11270
|
case 6:
|
|
@@ -11282,7 +11281,7 @@ var Yi = (
|
|
|
11282
11281
|
});
|
|
11283
11282
|
}, e.prototype.handleRedirectPromise = function(t) {
|
|
11284
11283
|
return T(this, void 0, void 0, function() {
|
|
11285
|
-
var r, o, i, a, s,
|
|
11284
|
+
var r, o, i, a, s, d, p, u, f, _, k, E;
|
|
11286
11285
|
return I(this, function(N) {
|
|
11287
11286
|
switch (N.label) {
|
|
11288
11287
|
case 0:
|
|
@@ -11298,17 +11297,17 @@ var Yi = (
|
|
|
11298
11297
|
} catch (Q) {
|
|
11299
11298
|
return this.logger.info("handleRedirectPromise was unable to extract state due to: " + Q), this.browserStorage.cleanRequestByInteractionType(x.Redirect), [2, null];
|
|
11300
11299
|
}
|
|
11301
|
-
return s = this.browserStorage.getTemporaryCache(J.ORIGIN_URI, !0) || g.EMPTY_STRING,
|
|
11300
|
+
return s = this.browserStorage.getTemporaryCache(J.ORIGIN_URI, !0) || g.EMPTY_STRING, d = W.removeHashFromUrl(s), p = W.removeHashFromUrl(window.location.href), d === p && this.config.auth.navigateToLoginRequestUrl ? (this.logger.verbose("Current page is loginRequestUrl, handling hash"), [4, this.handleHash(o, i, r)]) : [3, 3];
|
|
11302
11301
|
case 2:
|
|
11303
|
-
return
|
|
11302
|
+
return u = N.sent(), s.indexOf("#") > -1 && ue.replaceHash(s), [2, u];
|
|
11304
11303
|
case 3:
|
|
11305
11304
|
return this.config.auth.navigateToLoginRequestUrl ? [3, 4] : (this.logger.verbose("NavigateToLoginRequestUrl set to false, handling hash"), [2, this.handleHash(o, i, r)]);
|
|
11306
11305
|
case 4:
|
|
11307
|
-
return !
|
|
11306
|
+
return !ue.isInIframe() || this.config.system.allowRedirectInIframe ? (this.browserStorage.setTemporaryCache(J.URL_HASH, o, !0), f = {
|
|
11308
11307
|
apiId: oe.handleRedirectPromise,
|
|
11309
11308
|
timeout: this.config.system.redirectNavigationTimeout,
|
|
11310
11309
|
noHistory: !0
|
|
11311
|
-
}, _ = !0, !s || s === "null" ? (k =
|
|
11310
|
+
}, _ = !0, !s || s === "null" ? (k = ue.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];
|
|
11312
11311
|
case 5:
|
|
11313
11312
|
return _ = N.sent(), [3, 8];
|
|
11314
11313
|
case 6:
|
|
@@ -11335,20 +11334,20 @@ var Yi = (
|
|
|
11335
11334
|
this.logger.verbose("getRedirectResponseHash called");
|
|
11336
11335
|
var r = W.hashContainsKnownProperties(t);
|
|
11337
11336
|
if (r)
|
|
11338
|
-
return
|
|
11337
|
+
return ue.clearHash(window), this.logger.verbose("Hash contains known properties, returning response hash"), t;
|
|
11339
11338
|
var o = this.browserStorage.getTemporaryCache(J.URL_HASH, !0);
|
|
11340
11339
|
return this.browserStorage.removeItem(this.browserStorage.generateCacheKey(J.URL_HASH)), this.logger.verbose("Hash does not contain known properties, returning cached hash"), o;
|
|
11341
11340
|
}, e.prototype.handleHash = function(t, r, o) {
|
|
11342
11341
|
return T(this, void 0, void 0, function() {
|
|
11343
|
-
var i, a, s,
|
|
11342
|
+
var i, a, s, d, p, u, f, _ = this;
|
|
11344
11343
|
return I(this, function(k) {
|
|
11345
11344
|
switch (k.label) {
|
|
11346
11345
|
case 0:
|
|
11347
11346
|
if (i = this.browserStorage.getCachedRequest(r, this.browserCrypto), this.logger.verbose("handleHash called, retrieved cached request"), a = W.getDeserializedHash(t), a.accountId) {
|
|
11348
11347
|
if (this.logger.verbose("Account id found in hash, calling WAM for token"), !this.nativeMessageHandler)
|
|
11349
11348
|
throw M.createNativeConnectionNotEstablishedError();
|
|
11350
|
-
return s = new zt(this.config, this.browserStorage, this.browserCrypto, this.logger, this.eventHandler, this.navigationClient, oe.acquireTokenPopup, this.performanceClient, this.nativeMessageHandler, a.accountId, this.nativeStorage, i.correlationId),
|
|
11351
|
-
state:
|
|
11349
|
+
return s = new zt(this.config, this.browserStorage, this.browserCrypto, this.logger, this.eventHandler, this.navigationClient, oe.acquireTokenPopup, this.performanceClient, this.nativeMessageHandler, a.accountId, this.nativeStorage, i.correlationId), d = st.parseRequestState(this.browserCrypto, r).userRequestState, [2, s.acquireToken(B(B({}, i), {
|
|
11350
|
+
state: d,
|
|
11352
11351
|
prompt: void 0
|
|
11353
11352
|
// Server should handle the prompt, ideally native broker can do this part silently
|
|
11354
11353
|
})).finally(function() {
|
|
@@ -11359,7 +11358,7 @@ var Yi = (
|
|
|
11359
11358
|
throw M.createNoCachedAuthorityError();
|
|
11360
11359
|
return this.performanceClient.setPreQueueTime(b.StandardInteractionClientCreateAuthCodeClient, i.correlationId), [4, this.createAuthCodeClient(o, p)];
|
|
11361
11360
|
case 1:
|
|
11362
|
-
return
|
|
11361
|
+
return u = k.sent(), this.logger.verbose("Auth code client created"), yn.removeThrottle(this.browserStorage, this.config.auth.clientId, i), f = new Ur(u, this.browserStorage, i, this.logger, this.browserCrypto, this.performanceClient), [4, f.handleCodeResponseFromHash(t, r, u.authority, this.networkClient)];
|
|
11363
11362
|
case 2:
|
|
11364
11363
|
return [2, k.sent()];
|
|
11365
11364
|
}
|
|
@@ -11367,41 +11366,41 @@ var Yi = (
|
|
|
11367
11366
|
});
|
|
11368
11367
|
}, e.prototype.logout = function(t) {
|
|
11369
11368
|
return T(this, void 0, void 0, function() {
|
|
11370
|
-
var r, o, i, a, s,
|
|
11371
|
-
return I(this, function(
|
|
11372
|
-
switch (
|
|
11369
|
+
var r, o, i, a, s, d, p;
|
|
11370
|
+
return I(this, function(u) {
|
|
11371
|
+
switch (u.label) {
|
|
11373
11372
|
case 0:
|
|
11374
|
-
this.logger.verbose("logoutRedirect called"), r = this.initializeLogoutRequest(t), o = this.initializeServerTelemetryManager(oe.logout),
|
|
11373
|
+
this.logger.verbose("logoutRedirect called"), r = this.initializeLogoutRequest(t), o = this.initializeServerTelemetryManager(oe.logout), u.label = 1;
|
|
11375
11374
|
case 1:
|
|
11376
|
-
return
|
|
11375
|
+
return u.trys.push([1, 10, , 11]), this.eventHandler.emitEvent(q.LOGOUT_START, x.Redirect, t), [4, this.clearCacheOnLogout(r.account)];
|
|
11377
11376
|
case 2:
|
|
11378
|
-
return
|
|
11377
|
+
return u.sent(), i = {
|
|
11379
11378
|
apiId: oe.logout,
|
|
11380
11379
|
timeout: this.config.system.redirectNavigationTimeout,
|
|
11381
11380
|
noHistory: !1
|
|
11382
11381
|
}, this.performanceClient.setPreQueueTime(b.StandardInteractionClientCreateAuthCodeClient, r.correlationId), [4, this.createAuthCodeClient(o, t && t.authority)];
|
|
11383
11382
|
case 3:
|
|
11384
|
-
return a =
|
|
11383
|
+
return a = u.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" ? (d = t.onRedirectNavigate(s), d === !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];
|
|
11385
11384
|
case 4:
|
|
11386
|
-
return
|
|
11385
|
+
return u.sent(), [
|
|
11387
11386
|
2
|
|
11388
11387
|
/*return*/
|
|
11389
11388
|
];
|
|
11390
11389
|
case 5:
|
|
11391
|
-
this.browserStorage.setInteractionInProgress(!1), this.logger.verbose("Logout onRedirectNavigate returned false, stopping navigation"),
|
|
11390
|
+
this.browserStorage.setInteractionInProgress(!1), this.logger.verbose("Logout onRedirectNavigate returned false, stopping navigation"), u.label = 6;
|
|
11392
11391
|
case 6:
|
|
11393
11392
|
return [3, 9];
|
|
11394
11393
|
case 7:
|
|
11395
11394
|
return this.browserStorage.getInteractionInProgress() || this.browserStorage.setInteractionInProgress(!0), [4, this.navigationClient.navigateExternal(s, i)];
|
|
11396
11395
|
case 8:
|
|
11397
|
-
return
|
|
11396
|
+
return u.sent(), [
|
|
11398
11397
|
2
|
|
11399
11398
|
/*return*/
|
|
11400
11399
|
];
|
|
11401
11400
|
case 9:
|
|
11402
11401
|
return [3, 11];
|
|
11403
11402
|
case 10:
|
|
11404
|
-
throw p =
|
|
11403
|
+
throw p = u.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;
|
|
11405
11404
|
case 11:
|
|
11406
11405
|
return this.eventHandler.emitEvent(q.LOGOUT_END, x.Redirect), [
|
|
11407
11406
|
2
|
|
@@ -11412,7 +11411,7 @@ var Yi = (
|
|
|
11412
11411
|
});
|
|
11413
11412
|
}, e.prototype.getRedirectStartPage = function(t) {
|
|
11414
11413
|
var r = t || window.location.href;
|
|
11415
|
-
return W.getAbsoluteUrl(r,
|
|
11414
|
+
return W.getAbsoluteUrl(r, ue.getCurrentUri());
|
|
11416
11415
|
}, e;
|
|
11417
11416
|
}(jt)
|
|
11418
11417
|
);
|
|
@@ -11421,8 +11420,8 @@ var Wi = (
|
|
|
11421
11420
|
/** @class */
|
|
11422
11421
|
function(n) {
|
|
11423
11422
|
be(e, n);
|
|
11424
|
-
function e(t, r, o, i, a, s,
|
|
11425
|
-
var _ = n.call(this, t, r, o, i, a, s,
|
|
11423
|
+
function e(t, r, o, i, a, s, d, p, u, f) {
|
|
11424
|
+
var _ = n.call(this, t, r, o, i, a, s, d, u, f) || this;
|
|
11426
11425
|
return _.unloadWindow = _.unloadWindow.bind(_), _.nativeStorage = p, _;
|
|
11427
11426
|
}
|
|
11428
11427
|
return e.prototype.acquireToken = function(t) {
|
|
@@ -11443,14 +11442,14 @@ var Wi = (
|
|
|
11443
11442
|
if (this.config.system.asyncPopups)
|
|
11444
11443
|
return this.logger.verbose("asyncPopups set to true"), this.logoutPopupAsync(r, o, s, i, void 0, a);
|
|
11445
11444
|
this.logger.verbose("asyncPopup set to false, opening popup");
|
|
11446
|
-
var
|
|
11447
|
-
return this.logoutPopupAsync(r, o, s, i,
|
|
11445
|
+
var d = this.openSizedPopup("about:blank", o, s);
|
|
11446
|
+
return this.logoutPopupAsync(r, o, s, i, d, a);
|
|
11448
11447
|
} catch (p) {
|
|
11449
11448
|
return Promise.reject(p);
|
|
11450
11449
|
}
|
|
11451
11450
|
}, e.prototype.acquireTokenPopupAsync = function(t, r, o, i) {
|
|
11452
11451
|
return T(this, void 0, void 0, function() {
|
|
11453
|
-
var a, s,
|
|
11452
|
+
var a, s, d, p, u, f, _, k, E, N, Q, X, G, $, Ae, xe, Ve, Ct = this;
|
|
11454
11453
|
return I(this, function(ce) {
|
|
11455
11454
|
switch (ce.label) {
|
|
11456
11455
|
case 0:
|
|
@@ -11460,17 +11459,17 @@ var Wi = (
|
|
|
11460
11459
|
case 2:
|
|
11461
11460
|
return ce.trys.push([2, 8, , 9]), this.performanceClient.setPreQueueTime(b.StandardInteractionClientInitializeAuthorizationCodeRequest, t.correlationId), [4, this.initializeAuthorizationCodeRequest(s)];
|
|
11462
11461
|
case 3:
|
|
11463
|
-
return
|
|
11462
|
+
return d = ce.sent(), this.performanceClient.setPreQueueTime(b.StandardInteractionClientCreateAuthCodeClient, t.correlationId), [4, this.createAuthCodeClient(a, s.authority, s.azureCloudOptions)];
|
|
11464
11463
|
case 4:
|
|
11465
|
-
return p = ce.sent(), this.logger.verbose("Auth code client created"),
|
|
11464
|
+
return p = ce.sent(), this.logger.verbose("Auth code client created"), u = yt.isNativeAvailable(this.config, this.logger, this.nativeMessageHandler, t.authenticationScheme), f = void 0, u && (f = this.performanceClient.startMeasurement(b.FetchAccountIdWithNativeBroker, t.correlationId)), [4, p.getAuthCodeUrl(B(B({}, s), { nativeBroker: u }))];
|
|
11466
11465
|
case 5:
|
|
11467
|
-
return _ = ce.sent(), k = new or(p, this.browserStorage,
|
|
11466
|
+
return _ = ce.sent(), k = new or(p, this.browserStorage, d, this.logger, this.performanceClient), E = {
|
|
11468
11467
|
popup: i,
|
|
11469
11468
|
popupName: r,
|
|
11470
11469
|
popupWindowAttributes: o
|
|
11471
11470
|
}, N = this.initiateAuthRequest(_, E), this.eventHandler.emitEvent(q.POPUP_OPENED, x.Popup, { popupWindow: N }, null), [4, this.monitorPopupForHash(N)];
|
|
11472
11471
|
case 6:
|
|
11473
|
-
if (Q = ce.sent(), X = W.getDeserializedHash(Q), G = this.validateAndExtractStateFromHash(X, x.Popup, s.correlationId), yn.removeThrottle(this.browserStorage, this.config.auth.clientId,
|
|
11472
|
+
if (Q = ce.sent(), X = W.getDeserializedHash(Q), G = this.validateAndExtractStateFromHash(X, x.Popup, s.correlationId), yn.removeThrottle(this.browserStorage, this.config.auth.clientId, d), X.accountId) {
|
|
11474
11473
|
if (this.logger.verbose("Account id found in hash, calling WAM for token"), f && f.endMeasurement({
|
|
11475
11474
|
success: !0,
|
|
11476
11475
|
isNativeBroker: !0
|
|
@@ -11499,25 +11498,25 @@ var Wi = (
|
|
|
11499
11498
|
});
|
|
11500
11499
|
}, e.prototype.logoutPopupAsync = function(t, r, o, i, a, s) {
|
|
11501
11500
|
return T(this, void 0, void 0, function() {
|
|
11502
|
-
var
|
|
11501
|
+
var d, p, u, f, _, k, E;
|
|
11503
11502
|
return I(this, function(N) {
|
|
11504
11503
|
switch (N.label) {
|
|
11505
11504
|
case 0:
|
|
11506
|
-
this.logger.verbose("logoutPopupAsync called"), this.eventHandler.emitEvent(q.LOGOUT_START, x.Popup, t),
|
|
11505
|
+
this.logger.verbose("logoutPopupAsync called"), this.eventHandler.emitEvent(q.LOGOUT_START, x.Popup, t), d = this.initializeServerTelemetryManager(oe.logoutPopup), N.label = 1;
|
|
11507
11506
|
case 1:
|
|
11508
11507
|
return N.trys.push([1, 5, , 6]), [4, this.clearCacheOnLogout(t.account)];
|
|
11509
11508
|
case 2:
|
|
11510
|
-
return N.sent(), this.performanceClient.setPreQueueTime(b.StandardInteractionClientCreateAuthCodeClient, t.correlationId), [4, this.createAuthCodeClient(
|
|
11509
|
+
return N.sent(), this.performanceClient.setPreQueueTime(b.StandardInteractionClientCreateAuthCodeClient, t.correlationId), [4, this.createAuthCodeClient(d, i)];
|
|
11511
11510
|
case 3:
|
|
11512
|
-
return p = N.sent(), this.logger.verbose("Auth code client created"),
|
|
11511
|
+
return p = N.sent(), this.logger.verbose("Auth code client created"), u = p.getLogoutUri(t), this.eventHandler.emitEvent(q.LOGOUT_SUCCESS, x.Popup, t), f = this.openPopup(u, { popupName: r, popupWindowAttributes: o, popup: a }), this.eventHandler.emitEvent(q.POPUP_OPENED, x.Popup, { popupWindow: f }, null), [4, this.waitForLogoutPopup(f)];
|
|
11513
11512
|
case 4:
|
|
11514
11513
|
return N.sent(), s ? (_ = {
|
|
11515
11514
|
apiId: oe.logoutPopup,
|
|
11516
11515
|
timeout: this.config.system.redirectNavigationTimeout,
|
|
11517
11516
|
noHistory: !1
|
|
11518
|
-
}, k = W.getAbsoluteUrl(s,
|
|
11517
|
+
}, k = W.getAbsoluteUrl(s, ue.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];
|
|
11519
11518
|
case 5:
|
|
11520
|
-
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),
|
|
11519
|
+
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), d.cacheFailedRequest(E), E;
|
|
11521
11520
|
case 6:
|
|
11522
11521
|
return this.eventHandler.emitEvent(q.LOGOUT_END, x.Popup), [
|
|
11523
11522
|
2
|
|
@@ -11535,17 +11534,17 @@ var Wi = (
|
|
|
11535
11534
|
return new Promise(function(o, i) {
|
|
11536
11535
|
var a = r.config.system.windowHashTimeout / r.config.system.pollIntervalMilliseconds, s = 0;
|
|
11537
11536
|
r.logger.verbose("PopupHandler.monitorPopupForHash - polling started");
|
|
11538
|
-
var
|
|
11537
|
+
var d = setInterval(function() {
|
|
11539
11538
|
if (t.closed) {
|
|
11540
|
-
r.logger.error("PopupHandler.monitorPopupForHash - window closed"), r.cleanPopup(), clearInterval(
|
|
11539
|
+
r.logger.error("PopupHandler.monitorPopupForHash - window closed"), r.cleanPopup(), clearInterval(d), i(M.createUserCancelledError());
|
|
11541
11540
|
return;
|
|
11542
11541
|
}
|
|
11543
|
-
var p = g.EMPTY_STRING,
|
|
11542
|
+
var p = g.EMPTY_STRING, u = g.EMPTY_STRING;
|
|
11544
11543
|
try {
|
|
11545
|
-
p = t.location.href,
|
|
11544
|
+
p = t.location.href, u = t.location.hash;
|
|
11546
11545
|
} catch {
|
|
11547
11546
|
}
|
|
11548
|
-
L.isEmpty(p) || p === "about:blank" || (r.logger.verbose("PopupHandler.monitorPopupForHash - popup window is on same origin as caller"), s++,
|
|
11547
|
+
L.isEmpty(p) || p === "about:blank" || (r.logger.verbose("PopupHandler.monitorPopupForHash - popup window is on same origin as caller"), s++, u ? (r.logger.verbose("PopupHandler.monitorPopupForHash - found hash in url"), clearInterval(d), r.cleanPopup(t), W.hashContainsKnownProperties(u) ? (r.logger.verbose("PopupHandler.monitorPopupForHash - hash contains known properties, returning."), o(u)) : (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: " + u), i(M.createHashDoesNotContainKnownPropertiesError()))) : s > a && (r.logger.error("PopupHandler.monitorPopupForHash - unable to find hash in url, timing out"), clearInterval(d), i(M.createMonitorPopupTimeoutError())));
|
|
11549
11548
|
}, r.config.system.pollIntervalMilliseconds);
|
|
11550
11549
|
});
|
|
11551
11550
|
}, e.prototype.waitForLogoutPopup = function(t) {
|
|
@@ -11572,8 +11571,8 @@ var Wi = (
|
|
|
11572
11571
|
throw this.logger.error("error opening popup " + i.message), this.browserStorage.setInteractionInProgress(!1), M.createPopupWindowError(i.toString());
|
|
11573
11572
|
}
|
|
11574
11573
|
}, e.prototype.openSizedPopup = function(t, r, o) {
|
|
11575
|
-
var i, a, s,
|
|
11576
|
-
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 +
|
|
11574
|
+
var i, a, s, d, p = window.screenLeft ? window.screenLeft : window.screenX, u = 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 = (d = o.popupPosition) === null || d === void 0 ? void 0 : d.left;
|
|
11575
|
+
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 + u)), (!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");
|
|
11577
11576
|
}, e.prototype.unloadWindow = function(t) {
|
|
11578
11577
|
this.browserStorage.cleanRequestByInteractionType(x.Popup), this.currentWindow && this.currentWindow.close(), t.preventDefault();
|
|
11579
11578
|
}, e.prototype.cleanPopup = function(t) {
|
|
@@ -11632,21 +11631,21 @@ function ea(n, e) {
|
|
|
11632
11631
|
// 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
|
|
11633
11632
|
cacheMigrationEnabled: !!(r && r.cacheLocation === pe.LocalStorage),
|
|
11634
11633
|
claimsBasedCachingEnabled: !0
|
|
11635
|
-
},
|
|
11634
|
+
}, d = {
|
|
11636
11635
|
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
|
11637
11636
|
loggerCallback: function() {
|
|
11638
11637
|
},
|
|
11639
11638
|
logLevel: ve.Info,
|
|
11640
11639
|
piiLoggingEnabled: !1
|
|
11641
11640
|
}, p = B(B({}, no), {
|
|
11642
|
-
loggerOptions:
|
|
11643
|
-
networkClient: e ?
|
|
11641
|
+
loggerOptions: d,
|
|
11642
|
+
networkClient: e ? ue.getBrowserNetworkClient() : Di,
|
|
11644
11643
|
navigationClient: new $i(),
|
|
11645
11644
|
loadFrameTimeout: 0,
|
|
11646
11645
|
// If loadFrameTimeout is provided, use that as default.
|
|
11647
11646
|
windowHashTimeout: (o == null ? void 0 : o.loadFrameTimeout) || Ji,
|
|
11648
11647
|
iframeHashTimeout: (o == null ? void 0 : o.loadFrameTimeout) || Jn,
|
|
11649
|
-
navigateFrameWait: e &&
|
|
11648
|
+
navigateFrameWait: e && ue.detectIEOrEdge() ? 500 : 0,
|
|
11650
11649
|
redirectNavigationTimeout: Xi,
|
|
11651
11650
|
asyncPopups: !1,
|
|
11652
11651
|
allowRedirectInIframe: !1,
|
|
@@ -11657,7 +11656,7 @@ function ea(n, e) {
|
|
|
11657
11656
|
useMsrCrypto: !1,
|
|
11658
11657
|
entropy: void 0
|
|
11659
11658
|
}
|
|
11660
|
-
}),
|
|
11659
|
+
}), u = B(B({}, o), { loggerOptions: (o == null ? void 0 : o.loggerOptions) || d }), f = {
|
|
11661
11660
|
application: {
|
|
11662
11661
|
appName: g.EMPTY_STRING,
|
|
11663
11662
|
appVersion: g.EMPTY_STRING
|
|
@@ -11665,7 +11664,7 @@ function ea(n, e) {
|
|
|
11665
11664
|
}, _ = {
|
|
11666
11665
|
auth: B(B({}, a), t),
|
|
11667
11666
|
cache: B(B({}, s), r),
|
|
11668
|
-
system: B(B({}, p),
|
|
11667
|
+
system: B(B({}, p), u),
|
|
11669
11668
|
telemetry: B(B({}, f), i)
|
|
11670
11669
|
};
|
|
11671
11670
|
return _;
|
|
@@ -11676,8 +11675,8 @@ var uo = (
|
|
|
11676
11675
|
function(n) {
|
|
11677
11676
|
be(e, n);
|
|
11678
11677
|
function e(t, r, o, i, a, s) {
|
|
11679
|
-
var
|
|
11680
|
-
return
|
|
11678
|
+
var d = n.call(this, t, r, o, i, s) || this;
|
|
11679
|
+
return d.navigateFrameWait = a.navigateFrameWait, d.pollIntervalMilliseconds = a.pollIntervalMilliseconds, d;
|
|
11681
11680
|
}
|
|
11682
11681
|
return e.prototype.initiateAuthRequest = function(t) {
|
|
11683
11682
|
return T(this, void 0, void 0, function() {
|
|
@@ -11698,17 +11697,17 @@ var uo = (
|
|
|
11698
11697
|
var o = this;
|
|
11699
11698
|
return this.performanceClient.addQueueMeasurement(b.SilentHandlerMonitorIframeForHash, this.authCodeRequest.correlationId), new Promise(function(i, a) {
|
|
11700
11699
|
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.");
|
|
11701
|
-
var s = window.performance.now(),
|
|
11702
|
-
if (window.performance.now() >
|
|
11700
|
+
var s = window.performance.now(), d = s + r, p = setInterval(function() {
|
|
11701
|
+
if (window.performance.now() > d) {
|
|
11703
11702
|
o.removeHiddenIframe(t), clearInterval(p), a(M.createMonitorIframeTimeoutError());
|
|
11704
11703
|
return;
|
|
11705
11704
|
}
|
|
11706
|
-
var
|
|
11705
|
+
var u = g.EMPTY_STRING, f = t.contentWindow;
|
|
11707
11706
|
try {
|
|
11708
|
-
|
|
11707
|
+
u = f ? f.location.href : g.EMPTY_STRING;
|
|
11709
11708
|
} catch {
|
|
11710
11709
|
}
|
|
11711
|
-
if (!L.isEmpty(
|
|
11710
|
+
if (!L.isEmpty(u)) {
|
|
11712
11711
|
var _ = f ? f.location.hash : g.EMPTY_STRING;
|
|
11713
11712
|
if (W.hashContainsKnownProperties(_)) {
|
|
11714
11713
|
o.removeHiddenIframe(t), clearInterval(p), i(_);
|
|
@@ -11745,15 +11744,15 @@ var ta = (
|
|
|
11745
11744
|
/** @class */
|
|
11746
11745
|
function(n) {
|
|
11747
11746
|
be(e, n);
|
|
11748
|
-
function e(t, r, o, i, a, s,
|
|
11747
|
+
function e(t, r, o, i, a, s, d, p, u, f, _) {
|
|
11749
11748
|
var k = n.call(this, t, r, o, i, a, s, p, f, _) || this;
|
|
11750
|
-
return k.apiId =
|
|
11749
|
+
return k.apiId = d, k.nativeStorage = u, k;
|
|
11751
11750
|
}
|
|
11752
11751
|
return e.prototype.acquireToken = function(t) {
|
|
11753
11752
|
return T(this, void 0, void 0, function() {
|
|
11754
11753
|
var r, o, i, a, s;
|
|
11755
|
-
return I(this, function(
|
|
11756
|
-
switch (
|
|
11754
|
+
return I(this, function(d) {
|
|
11755
|
+
switch (d.label) {
|
|
11757
11756
|
case 0:
|
|
11758
11757
|
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)
|
|
11759
11758
|
throw r.endMeasurement({
|
|
@@ -11761,11 +11760,11 @@ var ta = (
|
|
|
11761
11760
|
}), M.createSilentPromptValueError(t.prompt);
|
|
11762
11761
|
return this.performanceClient.setPreQueueTime(b.StandardInteractionClientInitializeAuthorizationRequest, t.correlationId), [4, this.initializeAuthorizationRequest(B(B({}, t), { prompt: t.prompt || Te.NONE }), x.Silent)];
|
|
11763
11762
|
case 1:
|
|
11764
|
-
o =
|
|
11763
|
+
o = d.sent(), this.browserStorage.updateCacheEntries(o.state, o.nonce, o.authority, o.loginHint || g.EMPTY_STRING, o.account || null), i = this.initializeServerTelemetryManager(this.apiId), d.label = 2;
|
|
11765
11764
|
case 2:
|
|
11766
|
-
return
|
|
11765
|
+
return d.trys.push([2, 5, , 6]), this.performanceClient.setPreQueueTime(b.StandardInteractionClientCreateAuthCodeClient, t.correlationId), [4, this.createAuthCodeClient(i, o.authority, o.azureCloudOptions)];
|
|
11767
11766
|
case 3:
|
|
11768
|
-
return a =
|
|
11767
|
+
return a = d.sent(), this.logger.verbose("Auth code client created"), this.performanceClient.setPreQueueTime(b.SilentIframeClientTokenHelper, t.correlationId), [4, this.silentTokenHelper(a, o).then(function(p) {
|
|
11769
11768
|
return r.endMeasurement({
|
|
11770
11769
|
success: !0,
|
|
11771
11770
|
fromCache: !1,
|
|
@@ -11773,9 +11772,9 @@ var ta = (
|
|
|
11773
11772
|
}), p;
|
|
11774
11773
|
})];
|
|
11775
11774
|
case 4:
|
|
11776
|
-
return [2,
|
|
11775
|
+
return [2, d.sent()];
|
|
11777
11776
|
case 5:
|
|
11778
|
-
throw s =
|
|
11777
|
+
throw s = d.sent(), s instanceof D && s.setCorrelationId(this.correlationId), i.cacheFailedRequest(s), this.browserStorage.cleanRequestByState(o.state), r.endMeasurement({
|
|
11779
11778
|
errorCode: s instanceof D && s.errorCode || void 0,
|
|
11780
11779
|
subErrorCode: s instanceof D && s.subError || void 0,
|
|
11781
11780
|
success: !1
|
|
@@ -11792,7 +11791,7 @@ var ta = (
|
|
|
11792
11791
|
return Promise.reject(M.createSilentLogoutUnsupportedError());
|
|
11793
11792
|
}, e.prototype.silentTokenHelper = function(t, r) {
|
|
11794
11793
|
return T(this, void 0, void 0, function() {
|
|
11795
|
-
var o, i, a, s,
|
|
11794
|
+
var o, i, a, s, d, p, u, f, _, k = this;
|
|
11796
11795
|
return I(this, function(E) {
|
|
11797
11796
|
switch (E.label) {
|
|
11798
11797
|
case 0:
|
|
@@ -11804,14 +11803,14 @@ var ta = (
|
|
|
11804
11803
|
case 3:
|
|
11805
11804
|
return s = E.sent(), this.performanceClient.setPreQueueTime(b.SilentHandlerMonitorIframeForHash, r.correlationId), [4, a.monitorIframeForHash(s, this.config.system.iframeHashTimeout)];
|
|
11806
11805
|
case 4:
|
|
11807
|
-
if (
|
|
11806
|
+
if (d = E.sent(), p = W.getDeserializedHash(d), u = this.validateAndExtractStateFromHash(p, x.Silent, o.correlationId), p.accountId) {
|
|
11808
11807
|
if (this.logger.verbose("Account id found in hash, calling WAM for token"), !this.nativeMessageHandler)
|
|
11809
11808
|
throw M.createNativeConnectionNotEstablishedError();
|
|
11810
|
-
return f = new zt(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,
|
|
11811
|
-
k.browserStorage.cleanRequestByState(
|
|
11809
|
+
return f = new zt(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, u).userRequestState, [2, f.acquireToken(B(B({}, r), { state: _, prompt: r.prompt || Te.NONE })).finally(function() {
|
|
11810
|
+
k.browserStorage.cleanRequestByState(u);
|
|
11812
11811
|
})];
|
|
11813
11812
|
}
|
|
11814
|
-
return this.performanceClient.setPreQueueTime(b.HandleCodeResponseFromHash, r.correlationId), [2, a.handleCodeResponseFromHash(
|
|
11813
|
+
return this.performanceClient.setPreQueueTime(b.HandleCodeResponseFromHash, r.correlationId), [2, a.handleCodeResponseFromHash(d, u, t.authority, this.networkClient)];
|
|
11815
11814
|
}
|
|
11816
11815
|
});
|
|
11817
11816
|
});
|
|
@@ -11828,7 +11827,7 @@ var na = (
|
|
|
11828
11827
|
}
|
|
11829
11828
|
return e.prototype.acquireToken = function(t) {
|
|
11830
11829
|
return T(this, void 0, void 0, function() {
|
|
11831
|
-
var r, o, i, a, s,
|
|
11830
|
+
var r, o, i, a, s, d = this;
|
|
11832
11831
|
return I(this, function(p) {
|
|
11833
11832
|
switch (p.label) {
|
|
11834
11833
|
case 0:
|
|
@@ -11836,18 +11835,18 @@ var na = (
|
|
|
11836
11835
|
case 1:
|
|
11837
11836
|
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)];
|
|
11838
11837
|
case 2:
|
|
11839
|
-
return s = p.sent(), this.logger.verbose("Refresh token client created"), this.performanceClient.setPreQueueTime(b.RefreshTokenClientAcquireTokenByRefreshToken, t.correlationId), [2, s.acquireTokenByRefreshToken(r).then(function(
|
|
11838
|
+
return s = p.sent(), this.logger.verbose("Refresh token client created"), this.performanceClient.setPreQueueTime(b.RefreshTokenClientAcquireTokenByRefreshToken, t.correlationId), [2, s.acquireTokenByRefreshToken(r).then(function(u) {
|
|
11840
11839
|
return i.endMeasurement({
|
|
11841
11840
|
success: !0,
|
|
11842
|
-
fromCache:
|
|
11843
|
-
requestId:
|
|
11844
|
-
}),
|
|
11845
|
-
}).catch(function(
|
|
11846
|
-
throw
|
|
11847
|
-
errorCode:
|
|
11848
|
-
subErrorCode:
|
|
11841
|
+
fromCache: u.fromCache,
|
|
11842
|
+
requestId: u.requestId
|
|
11843
|
+
}), u;
|
|
11844
|
+
}).catch(function(u) {
|
|
11845
|
+
throw u instanceof D && u.setCorrelationId(d.correlationId), a.cacheFailedRequest(u), i.endMeasurement({
|
|
11846
|
+
errorCode: u.errorCode,
|
|
11847
|
+
subErrorCode: u.subError,
|
|
11849
11848
|
success: !1
|
|
11850
|
-
}),
|
|
11849
|
+
}), u;
|
|
11851
11850
|
})];
|
|
11852
11851
|
}
|
|
11853
11852
|
});
|
|
@@ -11898,8 +11897,8 @@ var ra = (
|
|
|
11898
11897
|
error: o || null,
|
|
11899
11898
|
timestamp: Date.now()
|
|
11900
11899
|
};
|
|
11901
|
-
this.logger.info("Emitting event: " + e), this.eventCallbacks.forEach(function(s,
|
|
11902
|
-
i.logger.verbose("Emitting event to callback " +
|
|
11900
|
+
this.logger.info("Emitting event: " + e), this.eventCallbacks.forEach(function(s, d) {
|
|
11901
|
+
i.logger.verbose("Emitting event to callback " + d + ": " + e), s.apply(null, [a]);
|
|
11903
11902
|
});
|
|
11904
11903
|
}
|
|
11905
11904
|
}, n.prototype.handleAccountCacheChange = function(e) {
|
|
@@ -11962,8 +11961,8 @@ var ct = (
|
|
|
11962
11961
|
return n.stringToUtf8Arr = function(e) {
|
|
11963
11962
|
for (var t, r = 0, o = e.length, i = 0; i < o; i++)
|
|
11964
11963
|
t = e.charCodeAt(i), r += t < 128 ? 1 : t < 2048 ? 2 : t < 65536 ? 3 : t < 2097152 ? 4 : t < 67108864 ? 5 : 6;
|
|
11965
|
-
for (var a = new Uint8Array(r), s = 0,
|
|
11966
|
-
t = e.charCodeAt(
|
|
11964
|
+
for (var a = new Uint8Array(r), s = 0, d = 0; s < r; d++)
|
|
11965
|
+
t = e.charCodeAt(d), 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));
|
|
11967
11966
|
return a;
|
|
11968
11967
|
}, n.stringToArrayBuffer = function(e) {
|
|
11969
11968
|
for (var t = new ArrayBuffer(e.length), r = new Uint8Array(t), o = 0; o < e.length; o++)
|
|
@@ -12043,10 +12042,10 @@ var oa = (
|
|
|
12043
12042
|
var r = this.base64DecToArr(t);
|
|
12044
12043
|
return ct.utf8ArrToString(r);
|
|
12045
12044
|
}, n.prototype.base64DecToArr = function(e, t) {
|
|
12046
|
-
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,
|
|
12047
|
-
if (
|
|
12048
|
-
for (s = 0; s < 3 &&
|
|
12049
|
-
a[
|
|
12045
|
+
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, d = void 0, p = 0, u = 0, f = 0; f < o; f++)
|
|
12046
|
+
if (d = f & 3, p |= this.b64ToUint6(r.charCodeAt(f)) << 18 - 6 * d, d === 3 || o - f === 1) {
|
|
12047
|
+
for (s = 0; s < 3 && u < i; s++, u++)
|
|
12048
|
+
a[u] = p >>> (16 >>> s & 24) & 255;
|
|
12050
12049
|
p = 0;
|
|
12051
12050
|
}
|
|
12052
12051
|
return a;
|
|
@@ -12205,10 +12204,10 @@ var la = (
|
|
|
12205
12204
|
return I(this, function(o) {
|
|
12206
12205
|
return [2, new Promise(function(i, a) {
|
|
12207
12206
|
var s = window.msCrypto.subtle.generateKey(e, t, r);
|
|
12208
|
-
s.addEventListener("complete", function(
|
|
12209
|
-
i(
|
|
12210
|
-
}), s.addEventListener("error", function(
|
|
12211
|
-
a(
|
|
12207
|
+
s.addEventListener("complete", function(d) {
|
|
12208
|
+
i(d.target.result);
|
|
12209
|
+
}), s.addEventListener("error", function(d) {
|
|
12210
|
+
a(d);
|
|
12212
12211
|
});
|
|
12213
12212
|
})];
|
|
12214
12213
|
});
|
|
@@ -12219,9 +12218,9 @@ var la = (
|
|
|
12219
12218
|
return [2, new Promise(function(r, o) {
|
|
12220
12219
|
var i = window.msCrypto.subtle.exportKey(Bt, e);
|
|
12221
12220
|
i.addEventListener("complete", function(a) {
|
|
12222
|
-
var s = a.target.result,
|
|
12221
|
+
var s = a.target.result, d = 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);
|
|
12223
12222
|
try {
|
|
12224
|
-
r(JSON.parse(
|
|
12223
|
+
r(JSON.parse(d));
|
|
12225
12224
|
} catch (p) {
|
|
12226
12225
|
o(p);
|
|
12227
12226
|
}
|
|
@@ -12235,11 +12234,11 @@ var la = (
|
|
|
12235
12234
|
return T(this, void 0, void 0, function() {
|
|
12236
12235
|
var i, a;
|
|
12237
12236
|
return I(this, function(s) {
|
|
12238
|
-
return i = ct.getSortedObjectString(e), a = ct.stringToArrayBuffer(i), [2, new Promise(function(
|
|
12239
|
-
var
|
|
12240
|
-
|
|
12241
|
-
|
|
12242
|
-
}),
|
|
12237
|
+
return i = ct.getSortedObjectString(e), a = ct.stringToArrayBuffer(i), [2, new Promise(function(d, p) {
|
|
12238
|
+
var u = window.msCrypto.subtle.importKey(Bt, a, t, r, o);
|
|
12239
|
+
u.addEventListener("complete", function(f) {
|
|
12240
|
+
d(f.target.result);
|
|
12241
|
+
}), u.addEventListener("error", function(f) {
|
|
12243
12242
|
p(f);
|
|
12244
12243
|
});
|
|
12245
12244
|
})];
|
|
@@ -12250,10 +12249,10 @@ var la = (
|
|
|
12250
12249
|
return I(this, function(o) {
|
|
12251
12250
|
return [2, new Promise(function(i, a) {
|
|
12252
12251
|
var s = window.msCrypto.subtle.sign(e, t, r);
|
|
12253
|
-
s.addEventListener("complete", function(
|
|
12254
|
-
i(
|
|
12255
|
-
}), s.addEventListener("error", function(
|
|
12256
|
-
a(
|
|
12252
|
+
s.addEventListener("complete", function(d) {
|
|
12253
|
+
i(d.target.result);
|
|
12254
|
+
}), s.addEventListener("error", function(d) {
|
|
12255
|
+
a(d);
|
|
12257
12256
|
});
|
|
12258
12257
|
})];
|
|
12259
12258
|
});
|
|
@@ -12275,7 +12274,7 @@ var la = (
|
|
|
12275
12274
|
}()
|
|
12276
12275
|
);
|
|
12277
12276
|
/*! @azure/msal-browser v2.38.3 2023-10-27 */
|
|
12278
|
-
var
|
|
12277
|
+
var da = "RSASSA-PKCS1-v1_5", xr = "SHA-256", ua = 2048, pa = new Uint8Array([1, 0, 1]), mo = (
|
|
12279
12278
|
/** @class */
|
|
12280
12279
|
function() {
|
|
12281
12280
|
function n(e, t) {
|
|
@@ -12294,9 +12293,9 @@ var ua = "RSASSA-PKCS1-v1_5", xr = "SHA-256", da = 2048, pa = new Uint8Array([1,
|
|
|
12294
12293
|
this.logger.verbose("BrowserCrypto: Entropy provided"), this.subtleCrypto.initPrng(this.cryptoOptions.entropy);
|
|
12295
12294
|
}
|
|
12296
12295
|
this.keygenAlgorithmOptions = {
|
|
12297
|
-
name:
|
|
12296
|
+
name: da,
|
|
12298
12297
|
hash: xr,
|
|
12299
|
-
modulusLength:
|
|
12298
|
+
modulusLength: ua,
|
|
12300
12299
|
publicExponent: pa
|
|
12301
12300
|
};
|
|
12302
12301
|
}
|
|
@@ -12397,11 +12396,11 @@ var ha = (
|
|
|
12397
12396
|
return r.sent(), [2, new Promise(function(o, i) {
|
|
12398
12397
|
if (!t.db)
|
|
12399
12398
|
return i(M.createDatabaseNotOpenError());
|
|
12400
|
-
var a = t.db.transaction([t.tableName], "readonly"), s = a.objectStore(t.tableName),
|
|
12401
|
-
|
|
12402
|
-
var
|
|
12403
|
-
t.closeConnection(), o(
|
|
12404
|
-
}),
|
|
12399
|
+
var a = t.db.transaction([t.tableName], "readonly"), s = a.objectStore(t.tableName), d = s.get(e);
|
|
12400
|
+
d.addEventListener("success", function(p) {
|
|
12401
|
+
var u = p;
|
|
12402
|
+
t.closeConnection(), o(u.target.result);
|
|
12403
|
+
}), d.addEventListener("error", function(p) {
|
|
12405
12404
|
t.closeConnection(), i(p);
|
|
12406
12405
|
});
|
|
12407
12406
|
})];
|
|
@@ -12419,11 +12418,11 @@ var ha = (
|
|
|
12419
12418
|
return o.sent(), [2, new Promise(function(i, a) {
|
|
12420
12419
|
if (!r.db)
|
|
12421
12420
|
return a(M.createDatabaseNotOpenError());
|
|
12422
|
-
var s = r.db.transaction([r.tableName], "readwrite"),
|
|
12421
|
+
var s = r.db.transaction([r.tableName], "readwrite"), d = s.objectStore(r.tableName), p = d.put(t, e);
|
|
12423
12422
|
p.addEventListener("success", function() {
|
|
12424
12423
|
r.closeConnection(), i();
|
|
12425
|
-
}), p.addEventListener("error", function(
|
|
12426
|
-
r.closeConnection(), a(
|
|
12424
|
+
}), p.addEventListener("error", function(u) {
|
|
12425
|
+
r.closeConnection(), a(u);
|
|
12427
12426
|
});
|
|
12428
12427
|
})];
|
|
12429
12428
|
}
|
|
@@ -12440,10 +12439,10 @@ var ha = (
|
|
|
12440
12439
|
return r.sent(), [2, new Promise(function(o, i) {
|
|
12441
12440
|
if (!t.db)
|
|
12442
12441
|
return i(M.createDatabaseNotOpenError());
|
|
12443
|
-
var a = t.db.transaction([t.tableName], "readwrite"), s = a.objectStore(t.tableName),
|
|
12444
|
-
|
|
12442
|
+
var a = t.db.transaction([t.tableName], "readwrite"), s = a.objectStore(t.tableName), d = s.delete(e);
|
|
12443
|
+
d.addEventListener("success", function() {
|
|
12445
12444
|
t.closeConnection(), o();
|
|
12446
|
-
}),
|
|
12445
|
+
}), d.addEventListener("error", function(p) {
|
|
12447
12446
|
t.closeConnection(), i(p);
|
|
12448
12447
|
});
|
|
12449
12448
|
})];
|
|
@@ -12462,11 +12461,11 @@ var ha = (
|
|
|
12462
12461
|
if (!e.db)
|
|
12463
12462
|
return o(M.createDatabaseNotOpenError());
|
|
12464
12463
|
var i = e.db.transaction([e.tableName], "readonly"), a = i.objectStore(e.tableName), s = a.getAllKeys();
|
|
12465
|
-
s.addEventListener("success", function(
|
|
12466
|
-
var p =
|
|
12464
|
+
s.addEventListener("success", function(d) {
|
|
12465
|
+
var p = d;
|
|
12467
12466
|
e.closeConnection(), r(p.target.result);
|
|
12468
|
-
}), s.addEventListener("error", function(
|
|
12469
|
-
e.closeConnection(), o(
|
|
12467
|
+
}), s.addEventListener("error", function(d) {
|
|
12468
|
+
e.closeConnection(), o(d);
|
|
12470
12469
|
});
|
|
12471
12470
|
})];
|
|
12472
12471
|
}
|
|
@@ -12483,11 +12482,11 @@ var ha = (
|
|
|
12483
12482
|
return r.sent(), [2, new Promise(function(o, i) {
|
|
12484
12483
|
if (!t.db)
|
|
12485
12484
|
return i(M.createDatabaseNotOpenError());
|
|
12486
|
-
var a = t.db.transaction([t.tableName], "readonly"), s = a.objectStore(t.tableName),
|
|
12487
|
-
|
|
12488
|
-
var
|
|
12489
|
-
t.closeConnection(), o(
|
|
12490
|
-
}),
|
|
12485
|
+
var a = t.db.transaction([t.tableName], "readonly"), s = a.objectStore(t.tableName), d = s.count(e);
|
|
12486
|
+
d.addEventListener("success", function(p) {
|
|
12487
|
+
var u = p;
|
|
12488
|
+
t.closeConnection(), o(u.target.result === 1);
|
|
12489
|
+
}), d.addEventListener("error", function(p) {
|
|
12491
12490
|
t.closeConnection(), i(p);
|
|
12492
12491
|
});
|
|
12493
12492
|
})];
|
|
@@ -12707,7 +12706,7 @@ var fa = (
|
|
|
12707
12706
|
}, n.prototype.getPublicKeyThumbprint = function(e) {
|
|
12708
12707
|
var t;
|
|
12709
12708
|
return T(this, void 0, void 0, function() {
|
|
12710
|
-
var r, o, i, a, s,
|
|
12709
|
+
var r, o, i, a, s, d, p, u;
|
|
12711
12710
|
return I(this, function(f) {
|
|
12712
12711
|
switch (f.label) {
|
|
12713
12712
|
case 0:
|
|
@@ -12721,12 +12720,12 @@ var fa = (
|
|
|
12721
12720
|
n: i.n
|
|
12722
12721
|
}, s = ct.getSortedObjectString(a), [4, this.hashString(s)];
|
|
12723
12722
|
case 3:
|
|
12724
|
-
return
|
|
12723
|
+
return d = f.sent(), [4, this.browserCrypto.exportJwk(o.privateKey)];
|
|
12725
12724
|
case 4:
|
|
12726
12725
|
return p = f.sent(), [4, this.browserCrypto.importJwk(p, !1, ["sign"])];
|
|
12727
12726
|
case 5:
|
|
12728
|
-
return
|
|
12729
|
-
privateKey:
|
|
12727
|
+
return u = f.sent(), [4, this.cache.asymmetricKeys.setItem(d, {
|
|
12728
|
+
privateKey: u,
|
|
12730
12729
|
publicKey: o.publicKey,
|
|
12731
12730
|
requestMethod: e.resourceRequestMethod,
|
|
12732
12731
|
requestUri: e.resourceRequestUri
|
|
@@ -12734,7 +12733,7 @@ var fa = (
|
|
|
12734
12733
|
case 6:
|
|
12735
12734
|
return f.sent(), r && r.endMeasurement({
|
|
12736
12735
|
success: !0
|
|
12737
|
-
}), [2,
|
|
12736
|
+
}), [2, d];
|
|
12738
12737
|
}
|
|
12739
12738
|
});
|
|
12740
12739
|
});
|
|
@@ -12766,7 +12765,7 @@ var fa = (
|
|
|
12766
12765
|
}, n.prototype.signJwt = function(e, t, r) {
|
|
12767
12766
|
var o;
|
|
12768
12767
|
return T(this, void 0, void 0, function() {
|
|
12769
|
-
var i, a, s,
|
|
12768
|
+
var i, a, s, d, p, u, f, _, k, E, N, Q, X;
|
|
12770
12769
|
return I(this, function(G) {
|
|
12771
12770
|
switch (G.label) {
|
|
12772
12771
|
case 0:
|
|
@@ -12776,8 +12775,8 @@ var fa = (
|
|
|
12776
12775
|
throw M.createSigningKeyNotFoundInStorageError(t);
|
|
12777
12776
|
return [4, this.browserCrypto.exportJwk(a.publicKey)];
|
|
12778
12777
|
case 2:
|
|
12779
|
-
return s = G.sent(),
|
|
12780
|
-
jwk: JSON.parse(
|
|
12778
|
+
return s = G.sent(), d = ct.getSortedObjectString(s), p = this.b64Encode.urlEncode(JSON.stringify({ kid: t })), u = Hi.getShrHeaderString({ kid: p, alg: s.alg }), f = this.b64Encode.urlEncode(u), e.cnf = {
|
|
12779
|
+
jwk: JSON.parse(d)
|
|
12781
12780
|
}, _ = this.b64Encode.urlEncode(JSON.stringify(e)), k = f + "." + _, E = ct.stringToArrayBuffer(k), [4, this.browserCrypto.sign(a.privateKey, E)];
|
|
12782
12781
|
case 3:
|
|
12783
12782
|
return N = G.sent(), Q = this.b64Encode.urlEncodeArr(new Uint8Array(N)), X = k + "." + Q, i && i.endMeasurement({
|
|
@@ -12856,9 +12855,9 @@ var ga = (
|
|
|
12856
12855
|
/** @class */
|
|
12857
12856
|
function(n) {
|
|
12858
12857
|
be(e, n);
|
|
12859
|
-
function e(t, r, o, i, a, s,
|
|
12858
|
+
function e(t, r, o, i, a, s, d) {
|
|
12860
12859
|
var p = n.call(this, t, r, o, i, a, s) || this;
|
|
12861
|
-
return p.browserCrypto = new mo(p.logger,
|
|
12860
|
+
return p.browserCrypto = new mo(p.logger, d), p.guidGenerator = new po(p.browserCrypto), p;
|
|
12862
12861
|
}
|
|
12863
12862
|
return e.prototype.startPerformanceMeasuremeant = function(t, r) {
|
|
12864
12863
|
return new Dr(t, r);
|
|
@@ -12877,8 +12876,8 @@ var ga = (
|
|
|
12877
12876
|
}, e.prototype.startMeasurement = function(t, r) {
|
|
12878
12877
|
var o = this, i = this.getPageVisibility(), a = n.prototype.startMeasurement.call(this, t, r);
|
|
12879
12878
|
return B(B({}, a), { endMeasurement: function(s) {
|
|
12880
|
-
var
|
|
12881
|
-
return o.deleteIncompleteSubMeasurements(a),
|
|
12879
|
+
var d = a.endMeasurement(B({ startPageVisibility: i, endPageVisibility: o.getPageVisibility() }, s));
|
|
12880
|
+
return o.deleteIncompleteSubMeasurements(a), d;
|
|
12882
12881
|
}, discardMeasurement: function() {
|
|
12883
12882
|
a.discardMeasurement(), o.deleteIncompleteSubMeasurements(a), a.measurement.flushMeasurement();
|
|
12884
12883
|
} });
|
|
@@ -12904,8 +12903,8 @@ var ga = (
|
|
|
12904
12903
|
}
|
|
12905
12904
|
var a = n.prototype.getPreQueueTime.call(this, t, r);
|
|
12906
12905
|
if (a) {
|
|
12907
|
-
var s = window.performance.now(),
|
|
12908
|
-
return n.prototype.addQueueMeasurement.call(this, t, r,
|
|
12906
|
+
var s = window.performance.now(), d = o || n.prototype.calculateQueuedTime.call(this, a, s);
|
|
12907
|
+
return n.prototype.addQueueMeasurement.call(this, t, r, d, i);
|
|
12909
12908
|
}
|
|
12910
12909
|
}, e;
|
|
12911
12910
|
}(ao)
|
|
@@ -12925,14 +12924,14 @@ var _a = (
|
|
|
12925
12924
|
var s = this.loadAccount(o, e.account.environment, void 0, void 0, e.account.homeAccountId);
|
|
12926
12925
|
i = new en(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));
|
|
12927
12926
|
} else if (e.authority) {
|
|
12928
|
-
var
|
|
12927
|
+
var d = on.generateAuthority(e.authority, e.azureCloudOptions), p = {
|
|
12929
12928
|
protocolMode: this.config.auth.protocolMode,
|
|
12930
12929
|
knownAuthorities: this.config.auth.knownAuthorities,
|
|
12931
12930
|
cloudDiscoveryMetadata: this.config.auth.cloudDiscoveryMetadata,
|
|
12932
12931
|
authorityMetadata: this.config.auth.authorityMetadata,
|
|
12933
12932
|
skipAuthorityMetadataCache: this.config.auth.skipAuthorityMetadataCache
|
|
12934
12933
|
};
|
|
12935
|
-
if (a = new on(
|
|
12934
|
+
if (a = new on(d, this.config.system.networkClient, this.storage, p, this.logger), r.clientInfo) {
|
|
12936
12935
|
this.logger.trace("TokenCache - homeAccountId from options");
|
|
12937
12936
|
var s = this.loadAccount(o, a.hostnameAndPort, r.clientInfo, a.authorityType);
|
|
12938
12937
|
i = new en(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));
|
|
@@ -12965,9 +12964,9 @@ var _a = (
|
|
|
12965
12964
|
throw M.createUnableToLoadTokenError("Please ensure server response includes expires_in value.");
|
|
12966
12965
|
if (!a.extendedExpiresOn)
|
|
12967
12966
|
throw M.createUnableToLoadTokenError("Please provide an extendedExpiresOn value in the options.");
|
|
12968
|
-
var s = new Ee(e.scopes).printScopes(),
|
|
12967
|
+
var s = new Ee(e.scopes).printScopes(), d = a.expiresOn || t.expires_in + (/* @__PURE__ */ new Date()).getTime() / 1e3, p = a.extendedExpiresOn, u = _t.createAccessTokenEntity(r, o, t.access_token, this.config.auth.clientId, i, s, d, p, this.cryptoObj);
|
|
12969
12968
|
if (this.isBrowserEnvironment)
|
|
12970
|
-
return this.logger.verbose("TokenCache - loading access token"), this.storage.setAccessTokenCredential(
|
|
12969
|
+
return this.logger.verbose("TokenCache - loading access token"), this.storage.setAccessTokenCredential(u), u;
|
|
12971
12970
|
throw M.createUnableToLoadTokenError("loadExternalTokens is designed to work in browser environments only.");
|
|
12972
12971
|
}, n.prototype.loadRefreshToken = function(e, t, r, o) {
|
|
12973
12972
|
if (!t.refresh_token)
|
|
@@ -12977,8 +12976,8 @@ var _a = (
|
|
|
12977
12976
|
return this.logger.verbose("TokenCache - loading refresh token"), this.storage.setRefreshTokenCredential(i), i;
|
|
12978
12977
|
throw M.createUnableToLoadTokenError("loadExternalTokens is designed to work in browser environments only.");
|
|
12979
12978
|
}, n.prototype.generateAuthenticationResult = function(e, t, r, o) {
|
|
12980
|
-
var i, a, s,
|
|
12981
|
-
r != null && r.accessToken && (
|
|
12979
|
+
var i, a, s, d = g.EMPTY_STRING, p = [], u = null, f;
|
|
12980
|
+
r != null && r.accessToken && (d = r.accessToken.secret, p = Ee.fromString(r.accessToken.target).asArray(), u = new Date(Number(r.accessToken.expiresOn) * 1e3), f = new Date(Number(r.accessToken.extendedExpiresOn) * 1e3));
|
|
12982
12981
|
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;
|
|
12983
12982
|
return {
|
|
12984
12983
|
authority: o ? o.canonicalAuthority : g.EMPTY_STRING,
|
|
@@ -12988,9 +12987,9 @@ var _a = (
|
|
|
12988
12987
|
account: r != null && r.account ? r.account.getAccountInfo() : null,
|
|
12989
12988
|
idToken: t ? t.rawToken : g.EMPTY_STRING,
|
|
12990
12989
|
idTokenClaims: t ? t.claims : {},
|
|
12991
|
-
accessToken:
|
|
12990
|
+
accessToken: d,
|
|
12992
12991
|
fromCache: !0,
|
|
12993
|
-
expiresOn:
|
|
12992
|
+
expiresOn: u,
|
|
12994
12993
|
correlationId: e.correlationId || g.EMPTY_STRING,
|
|
12995
12994
|
requestId: g.EMPTY_STRING,
|
|
12996
12995
|
extExpiresOn: f,
|
|
@@ -13022,32 +13021,32 @@ var ya = (
|
|
|
13022
13021
|
/** @class */
|
|
13023
13022
|
function(n) {
|
|
13024
13023
|
be(e, n);
|
|
13025
|
-
function e(t, r, o, i, a, s,
|
|
13026
|
-
var _ = n.call(this, t, r, o, i, a, s, p,
|
|
13027
|
-
return _.apiId =
|
|
13024
|
+
function e(t, r, o, i, a, s, d, p, u, f) {
|
|
13025
|
+
var _ = n.call(this, t, r, o, i, a, s, p, u, f) || this;
|
|
13026
|
+
return _.apiId = d, _;
|
|
13028
13027
|
}
|
|
13029
13028
|
return e.prototype.acquireToken = function(t) {
|
|
13030
13029
|
return T(this, void 0, void 0, function() {
|
|
13031
|
-
var r, o, i, a, s,
|
|
13032
|
-
return I(this, function(
|
|
13033
|
-
switch (
|
|
13030
|
+
var r, o, i, a, s, d, p;
|
|
13031
|
+
return I(this, function(u) {
|
|
13032
|
+
switch (u.label) {
|
|
13034
13033
|
case 0:
|
|
13035
13034
|
if (this.logger.trace("SilentAuthCodeClient.acquireToken called"), !t.code)
|
|
13036
13035
|
throw M.createAuthCodeRequiredError();
|
|
13037
13036
|
return this.performanceClient.setPreQueueTime(b.StandardInteractionClientInitializeAuthorizationRequest, t.correlationId), [4, this.initializeAuthorizationRequest(t, x.Silent)];
|
|
13038
13037
|
case 1:
|
|
13039
|
-
r =
|
|
13038
|
+
r = u.sent(), this.browserStorage.updateCacheEntries(r.state, r.nonce, r.authority, r.loginHint || g.EMPTY_STRING, r.account || null), o = this.initializeServerTelemetryManager(this.apiId), u.label = 2;
|
|
13040
13039
|
case 2:
|
|
13041
|
-
return
|
|
13040
|
+
return u.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)];
|
|
13042
13041
|
case 3:
|
|
13043
|
-
return a =
|
|
13042
|
+
return a = u.sent(), s = new va(a), this.logger.verbose("Auth code client created"), d = new uo(s, this.browserStorage, i, this.logger, this.config.system, this.performanceClient), [2, d.handleCodeResponseFromServer({
|
|
13044
13043
|
code: t.code,
|
|
13045
13044
|
msgraph_host: t.msGraphHost,
|
|
13046
13045
|
cloud_graph_host_name: t.cloudGraphHostName,
|
|
13047
13046
|
cloud_instance_host_name: t.cloudInstanceHostName
|
|
13048
13047
|
}, r.state, s.authority, this.networkClient, !1)];
|
|
13049
13048
|
case 4:
|
|
13050
|
-
throw p =
|
|
13049
|
+
throw p = u.sent(), p instanceof D && p.setCorrelationId(this.correlationId), o.cacheFailedRequest(p), this.browserStorage.cleanRequestByState(r.state), p;
|
|
13051
13050
|
case 5:
|
|
13052
13051
|
return [
|
|
13053
13052
|
2
|
|
@@ -13111,32 +13110,32 @@ var ka = (
|
|
|
13111
13110
|
});
|
|
13112
13111
|
}, n.prototype.handleRedirectPromise = function(e) {
|
|
13113
13112
|
return T(this, void 0, void 0, function() {
|
|
13114
|
-
var t, r, o, i, a, s,
|
|
13113
|
+
var t, r, o, i, a, s, d, p, u = this;
|
|
13115
13114
|
return I(this, function(f) {
|
|
13116
|
-
return this.logger.verbose("handleRedirectPromise called"),
|
|
13115
|
+
return this.logger.verbose("handleRedirectPromise called"), ue.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 zt(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"), d = this.browserStorage.getTemporaryCache(J.CORRELATION_ID, !0) || g.EMPTY_STRING, p = this.createRedirectClient(d), a = p.handleRedirectPromise(e)), o = a.then(function(_) {
|
|
13117
13116
|
if (_) {
|
|
13118
|
-
var k = t.length <
|
|
13119
|
-
k ? (
|
|
13117
|
+
var k = t.length < u.getAllAccounts().length;
|
|
13118
|
+
k ? (u.eventHandler.emitEvent(q.LOGIN_SUCCESS, x.Redirect, _), u.logger.verbose("handleRedirectResponse returned result, login success")) : (u.eventHandler.emitEvent(q.ACQUIRE_TOKEN_SUCCESS, x.Redirect, _), u.logger.verbose("handleRedirectResponse returned result, acquire token success"));
|
|
13120
13119
|
}
|
|
13121
|
-
return
|
|
13120
|
+
return u.eventHandler.emitEvent(q.HANDLE_REDIRECT_END, x.Redirect), _;
|
|
13122
13121
|
}).catch(function(_) {
|
|
13123
|
-
throw t.length > 0 ?
|
|
13122
|
+
throw t.length > 0 ? u.eventHandler.emitEvent(q.ACQUIRE_TOKEN_FAILURE, x.Redirect, null, _) : u.eventHandler.emitEvent(q.LOGIN_FAILURE, x.Redirect, null, _), u.eventHandler.emitEvent(q.HANDLE_REDIRECT_END, x.Redirect), _;
|
|
13124
13123
|
}), 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]);
|
|
13125
13124
|
});
|
|
13126
13125
|
});
|
|
13127
13126
|
}, n.prototype.acquireTokenRedirect = function(e) {
|
|
13128
13127
|
return T(this, void 0, void 0, function() {
|
|
13129
13128
|
var t, r, o, i, a, s = this;
|
|
13130
|
-
return I(this, function(
|
|
13129
|
+
return I(this, function(d) {
|
|
13131
13130
|
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 zt(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) {
|
|
13132
13131
|
if (p instanceof tt && p.isFatal()) {
|
|
13133
13132
|
s.nativeExtensionProvider = void 0;
|
|
13134
|
-
var
|
|
13135
|
-
return
|
|
13133
|
+
var u = s.createRedirectClient(e.correlationId);
|
|
13134
|
+
return u.acquireToken(e);
|
|
13136
13135
|
} else if (p instanceof Ye) {
|
|
13137
13136
|
s.logger.verbose("acquireTokenRedirect - Resolving interaction required error thrown by native broker by falling back to web flow");
|
|
13138
|
-
var
|
|
13139
|
-
return
|
|
13137
|
+
var u = s.createRedirectClient(e.correlationId);
|
|
13138
|
+
return u.acquireToken(e);
|
|
13140
13139
|
}
|
|
13141
13140
|
throw s.browserStorage.setInteractionInProgress(!1), p;
|
|
13142
13141
|
})) : (a = this.createRedirectClient(e.correlationId), o = a.acquireToken(e)), [2, o.catch(function(p) {
|
|
@@ -13148,50 +13147,50 @@ var ka = (
|
|
|
13148
13147
|
var t = this, r = this.getRequestCorrelationId(e), o = this.performanceClient.startMeasurement(b.AcquireTokenPopup, r);
|
|
13149
13148
|
try {
|
|
13150
13149
|
this.logger.verbose("acquireTokenPopup called", r), this.preflightBrowserEnvironmentCheck(x.Popup);
|
|
13151
|
-
} catch (
|
|
13152
|
-
return Promise.reject(
|
|
13150
|
+
} catch (d) {
|
|
13151
|
+
return Promise.reject(d);
|
|
13153
13152
|
}
|
|
13154
13153
|
var i = this.getAllAccounts();
|
|
13155
13154
|
i.length > 0 ? this.eventHandler.emitEvent(q.ACQUIRE_TOKEN_START, x.Popup, e) : this.eventHandler.emitEvent(q.LOGIN_START, x.Popup, e);
|
|
13156
13155
|
var a;
|
|
13157
13156
|
if (this.canUseNative(e))
|
|
13158
|
-
a = this.acquireTokenNative(e, oe.acquireTokenPopup).then(function(
|
|
13157
|
+
a = this.acquireTokenNative(e, oe.acquireTokenPopup).then(function(d) {
|
|
13159
13158
|
return t.browserStorage.setInteractionInProgress(!1), o.endMeasurement({
|
|
13160
13159
|
success: !0,
|
|
13161
13160
|
isNativeBroker: !0,
|
|
13162
|
-
requestId:
|
|
13163
|
-
}),
|
|
13164
|
-
}).catch(function(
|
|
13165
|
-
if (
|
|
13161
|
+
requestId: d.requestId
|
|
13162
|
+
}), d;
|
|
13163
|
+
}).catch(function(d) {
|
|
13164
|
+
if (d instanceof tt && d.isFatal()) {
|
|
13166
13165
|
t.nativeExtensionProvider = void 0;
|
|
13167
13166
|
var p = t.createPopupClient(e.correlationId);
|
|
13168
13167
|
return p.acquireToken(e);
|
|
13169
|
-
} else if (
|
|
13168
|
+
} else if (d instanceof Ye) {
|
|
13170
13169
|
t.logger.verbose("acquireTokenPopup - Resolving interaction required error thrown by native broker by falling back to web flow");
|
|
13171
13170
|
var p = t.createPopupClient(e.correlationId);
|
|
13172
13171
|
return p.acquireToken(e);
|
|
13173
13172
|
}
|
|
13174
|
-
throw t.browserStorage.setInteractionInProgress(!1),
|
|
13173
|
+
throw t.browserStorage.setInteractionInProgress(!1), d;
|
|
13175
13174
|
});
|
|
13176
13175
|
else {
|
|
13177
13176
|
var s = this.createPopupClient(e.correlationId);
|
|
13178
13177
|
a = s.acquireToken(e);
|
|
13179
13178
|
}
|
|
13180
|
-
return a.then(function(
|
|
13179
|
+
return a.then(function(d) {
|
|
13181
13180
|
var p = i.length < t.getAllAccounts().length;
|
|
13182
|
-
return p ? t.eventHandler.emitEvent(q.LOGIN_SUCCESS, x.Popup,
|
|
13183
|
-
accessTokenSize:
|
|
13184
|
-
idTokenSize:
|
|
13181
|
+
return p ? t.eventHandler.emitEvent(q.LOGIN_SUCCESS, x.Popup, d) : t.eventHandler.emitEvent(q.ACQUIRE_TOKEN_SUCCESS, x.Popup, d), o.addStaticFields({
|
|
13182
|
+
accessTokenSize: d.accessToken.length,
|
|
13183
|
+
idTokenSize: d.idToken.length
|
|
13185
13184
|
}), o.endMeasurement({
|
|
13186
13185
|
success: !0,
|
|
13187
|
-
requestId:
|
|
13188
|
-
}),
|
|
13189
|
-
}).catch(function(
|
|
13190
|
-
return i.length > 0 ? t.eventHandler.emitEvent(q.ACQUIRE_TOKEN_FAILURE, x.Popup, null,
|
|
13191
|
-
errorCode:
|
|
13192
|
-
subErrorCode:
|
|
13186
|
+
requestId: d.requestId
|
|
13187
|
+
}), d;
|
|
13188
|
+
}).catch(function(d) {
|
|
13189
|
+
return i.length > 0 ? t.eventHandler.emitEvent(q.ACQUIRE_TOKEN_FAILURE, x.Popup, null, d) : t.eventHandler.emitEvent(q.LOGIN_FAILURE, x.Popup, null, d), o.endMeasurement({
|
|
13190
|
+
errorCode: d.errorCode,
|
|
13191
|
+
subErrorCode: d.subError,
|
|
13193
13192
|
success: !1
|
|
13194
|
-
}), Promise.reject(
|
|
13193
|
+
}), Promise.reject(d);
|
|
13195
13194
|
});
|
|
13196
13195
|
}, n.prototype.trackPageVisibilityWithMeasurement = function() {
|
|
13197
13196
|
var e = this.ssoSilentMeasurement || this.acquireTokenByCodeAsyncMeasurement;
|
|
@@ -13202,7 +13201,7 @@ var ka = (
|
|
|
13202
13201
|
var t;
|
|
13203
13202
|
return T(this, void 0, void 0, function() {
|
|
13204
13203
|
var r, o, i, a, s = this;
|
|
13205
|
-
return I(this, function(
|
|
13204
|
+
return I(this, function(d) {
|
|
13206
13205
|
return r = this.getRequestCorrelationId(e), o = B(B({}, e), {
|
|
13207
13206
|
// will be PromptValue.NONE or PromptValue.NO_SESSION
|
|
13208
13207
|
prompt: e.prompt,
|
|
@@ -13212,13 +13211,13 @@ var ka = (
|
|
|
13212
13211
|
}), 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) {
|
|
13213
13212
|
if (p instanceof tt && p.isFatal()) {
|
|
13214
13213
|
s.nativeExtensionProvider = void 0;
|
|
13215
|
-
var
|
|
13216
|
-
return
|
|
13214
|
+
var u = s.createSilentIframeClient(o.correlationId);
|
|
13215
|
+
return u.acquireToken(o);
|
|
13217
13216
|
}
|
|
13218
13217
|
throw p;
|
|
13219
13218
|
}) : (a = this.createSilentIframeClient(o.correlationId), i = a.acquireToken(o)), [2, i.then(function(p) {
|
|
13220
|
-
var
|
|
13221
|
-
return s.eventHandler.emitEvent(q.SSO_SILENT_SUCCESS, x.Silent, p), (
|
|
13219
|
+
var u, f;
|
|
13220
|
+
return s.eventHandler.emitEvent(q.SSO_SILENT_SUCCESS, x.Silent, p), (u = s.ssoSilentMeasurement) === null || u === void 0 || u.addStaticFields({
|
|
13222
13221
|
accessTokenSize: p.accessToken.length,
|
|
13223
13222
|
idTokenSize: p.idToken.length
|
|
13224
13223
|
}), (f = s.ssoSilentMeasurement) === null || f === void 0 || f.endMeasurement({
|
|
@@ -13227,8 +13226,8 @@ var ka = (
|
|
|
13227
13226
|
requestId: p.requestId
|
|
13228
13227
|
}), p;
|
|
13229
13228
|
}).catch(function(p) {
|
|
13230
|
-
var
|
|
13231
|
-
throw s.eventHandler.emitEvent(q.SSO_SILENT_FAILURE, x.Silent, null, p), (
|
|
13229
|
+
var u;
|
|
13230
|
+
throw s.eventHandler.emitEvent(q.SSO_SILENT_FAILURE, x.Silent, null, p), (u = s.ssoSilentMeasurement) === null || u === void 0 || u.endMeasurement({
|
|
13232
13231
|
errorCode: p.errorCode,
|
|
13233
13232
|
subErrorCode: p.subError,
|
|
13234
13233
|
success: !1
|
|
@@ -13247,36 +13246,36 @@ var ka = (
|
|
|
13247
13246
|
if (e.code && e.nativeAccountId)
|
|
13248
13247
|
throw M.createSpaCodeAndNativeAccountIdPresentError();
|
|
13249
13248
|
if (e.code)
|
|
13250
|
-
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(
|
|
13251
|
-
return a.eventHandler.emitEvent(q.ACQUIRE_TOKEN_BY_CODE_SUCCESS, x.Silent,
|
|
13252
|
-
accessTokenSize:
|
|
13253
|
-
idTokenSize:
|
|
13249
|
+
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(d) {
|
|
13250
|
+
return a.eventHandler.emitEvent(q.ACQUIRE_TOKEN_BY_CODE_SUCCESS, x.Silent, d), a.hybridAuthCodeResponses.delete(o), r.addStaticFields({
|
|
13251
|
+
accessTokenSize: d.accessToken.length,
|
|
13252
|
+
idTokenSize: d.idToken.length
|
|
13254
13253
|
}), r.endMeasurement({
|
|
13255
13254
|
success: !0,
|
|
13256
|
-
isNativeBroker:
|
|
13257
|
-
requestId:
|
|
13258
|
-
}),
|
|
13259
|
-
}).catch(function(
|
|
13260
|
-
throw a.hybridAuthCodeResponses.delete(o), a.eventHandler.emitEvent(q.ACQUIRE_TOKEN_BY_CODE_FAILURE, x.Silent, null,
|
|
13261
|
-
errorCode:
|
|
13262
|
-
subErrorCode:
|
|
13255
|
+
isNativeBroker: d.fromNativeBroker,
|
|
13256
|
+
requestId: d.requestId
|
|
13257
|
+
}), d;
|
|
13258
|
+
}).catch(function(d) {
|
|
13259
|
+
throw a.hybridAuthCodeResponses.delete(o), a.eventHandler.emitEvent(q.ACQUIRE_TOKEN_BY_CODE_FAILURE, x.Silent, null, d), r.endMeasurement({
|
|
13260
|
+
errorCode: d.errorCode,
|
|
13261
|
+
subErrorCode: d.subError,
|
|
13263
13262
|
success: !1
|
|
13264
|
-
}),
|
|
13263
|
+
}), d;
|
|
13265
13264
|
}), this.hybridAuthCodeResponses.set(o, i)), [2, i];
|
|
13266
13265
|
if (e.nativeAccountId) {
|
|
13267
13266
|
if (this.canUseNative(e, e.nativeAccountId))
|
|
13268
|
-
return [2, this.acquireTokenNative(e, oe.acquireTokenByCode, e.nativeAccountId).catch(function(
|
|
13269
|
-
throw
|
|
13267
|
+
return [2, this.acquireTokenNative(e, oe.acquireTokenByCode, e.nativeAccountId).catch(function(d) {
|
|
13268
|
+
throw d instanceof tt && d.isFatal() && (a.nativeExtensionProvider = void 0), d;
|
|
13270
13269
|
})];
|
|
13271
13270
|
throw M.createUnableToAcquireTokenFromNativePlatformError();
|
|
13272
13271
|
} else
|
|
13273
13272
|
throw M.createAuthCodeOrNativeAccountIdRequiredError();
|
|
13274
|
-
} catch (
|
|
13275
|
-
throw this.eventHandler.emitEvent(q.ACQUIRE_TOKEN_BY_CODE_FAILURE, x.Silent, null,
|
|
13276
|
-
errorCode:
|
|
13277
|
-
subErrorCode:
|
|
13273
|
+
} catch (d) {
|
|
13274
|
+
throw this.eventHandler.emitEvent(q.ACQUIRE_TOKEN_BY_CODE_FAILURE, x.Silent, null, d), r.endMeasurement({
|
|
13275
|
+
errorCode: d instanceof D && d.errorCode || void 0,
|
|
13276
|
+
subErrorCode: d instanceof D && d.subError || void 0,
|
|
13278
13277
|
success: !1
|
|
13279
|
-
}),
|
|
13278
|
+
}), d;
|
|
13280
13279
|
}
|
|
13281
13280
|
return [
|
|
13282
13281
|
2
|
|
@@ -13294,16 +13293,16 @@ var ka = (
|
|
|
13294
13293
|
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({
|
|
13295
13294
|
visibilityChangeCount: 0
|
|
13296
13295
|
}), document.addEventListener("visibilitychange", this.trackPageVisibilityWithMeasurement), r = this.createSilentAuthCodeClient(e.correlationId), [4, r.acquireToken(e).then(function(s) {
|
|
13297
|
-
var
|
|
13298
|
-
return (
|
|
13296
|
+
var d;
|
|
13297
|
+
return (d = i.acquireTokenByCodeAsyncMeasurement) === null || d === void 0 || d.endMeasurement({
|
|
13299
13298
|
success: !0,
|
|
13300
13299
|
fromCache: s.fromCache,
|
|
13301
13300
|
isNativeBroker: s.fromNativeBroker,
|
|
13302
13301
|
requestId: s.requestId
|
|
13303
13302
|
}), s;
|
|
13304
13303
|
}).catch(function(s) {
|
|
13305
|
-
var
|
|
13306
|
-
throw (
|
|
13304
|
+
var d;
|
|
13305
|
+
throw (d = i.acquireTokenByCodeAsyncMeasurement) === null || d === void 0 || d.endMeasurement({
|
|
13307
13306
|
errorCode: s.errorCode,
|
|
13308
13307
|
subErrorCode: s.subError,
|
|
13309
13308
|
success: !1
|
|
@@ -13404,11 +13403,11 @@ var ka = (
|
|
|
13404
13403
|
}, n.prototype.getActiveAccount = function() {
|
|
13405
13404
|
return this.browserStorage.getActiveAccount();
|
|
13406
13405
|
}, n.prototype.preflightBrowserEnvironmentCheck = function(e, t) {
|
|
13407
|
-
if (t === void 0 && (t = !0), this.logger.verbose("preflightBrowserEnvironmentCheck started"),
|
|
13406
|
+
if (t === void 0 && (t = !0), this.logger.verbose("preflightBrowserEnvironmentCheck started"), ue.blockNonBrowserEnvironment(this.isBrowserEnvironment), ue.blockRedirectInIframe(e, this.config.system.allowRedirectInIframe), ue.blockReloadInHiddenIframes(), ue.blockAcquireTokenInPopups(), ue.blockNativeBrokerCalledBeforeInitialized(this.config.system.allowNativeBroker, this.initialized), e === x.Redirect && this.config.cache.cacheLocation === pe.MemoryStorage && !this.config.cache.storeAuthStateInCookie)
|
|
13408
13407
|
throw En.createInMemoryRedirectUnavailableError();
|
|
13409
13408
|
(e === x.Redirect || e === x.Popup) && this.preflightInteractiveRequest(t);
|
|
13410
13409
|
}, n.prototype.preflightInteractiveRequest = function(e) {
|
|
13411
|
-
this.logger.verbose("preflightInteractiveRequest called, validating app environment"),
|
|
13410
|
+
this.logger.verbose("preflightInteractiveRequest called, validating app environment"), ue.blockReloadInHiddenIframes(), e && this.browserStorage.setInteractionInProgress(!0);
|
|
13412
13411
|
}, n.prototype.acquireTokenNative = function(e, t, r) {
|
|
13413
13412
|
return T(this, void 0, void 0, function() {
|
|
13414
13413
|
var o;
|
|
@@ -13497,7 +13496,7 @@ var wa = (
|
|
|
13497
13496
|
return this.logger.verbose("loginPopup called", r), this.acquireTokenPopup(B({ correlationId: r }, t || Lr));
|
|
13498
13497
|
}, e.prototype.acquireTokenSilent = function(t) {
|
|
13499
13498
|
return T(this, void 0, void 0, function() {
|
|
13500
|
-
var r, o, i, a, s,
|
|
13499
|
+
var r, o, i, a, s, d, p, u = this;
|
|
13501
13500
|
return I(this, function(f) {
|
|
13502
13501
|
if (r = this.getRequestCorrelationId(t), o = this.performanceClient.startMeasurement(b.AcquireTokenSilent, r), o.addStaticFields({
|
|
13503
13502
|
cacheLookupPolicy: t.cacheLookupPolicy
|
|
@@ -13514,8 +13513,8 @@ var wa = (
|
|
|
13514
13513
|
resourceRequestUri: t.resourceRequestUri,
|
|
13515
13514
|
shrClaims: t.shrClaims,
|
|
13516
13515
|
sshKid: t.sshKid
|
|
13517
|
-
}, s = JSON.stringify(a),
|
|
13518
|
-
return
|
|
13516
|
+
}, s = JSON.stringify(a), d = this.activeSilentTokenRequests.get(s), typeof d > "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(_) {
|
|
13517
|
+
return u.activeSilentTokenRequests.delete(s), o.addStaticFields({
|
|
13519
13518
|
accessTokenSize: _.accessToken.length,
|
|
13520
13519
|
idTokenSize: _.idToken.length
|
|
13521
13520
|
}), o.endMeasurement({
|
|
@@ -13526,12 +13525,12 @@ var wa = (
|
|
|
13526
13525
|
requestId: _.requestId
|
|
13527
13526
|
}), _;
|
|
13528
13527
|
}).catch(function(_) {
|
|
13529
|
-
throw
|
|
13528
|
+
throw u.activeSilentTokenRequests.delete(s), o.endMeasurement({
|
|
13530
13529
|
errorCode: _.errorCode,
|
|
13531
13530
|
subErrorCode: _.subError,
|
|
13532
13531
|
success: !1
|
|
13533
13532
|
}), _;
|
|
13534
|
-
}), 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,
|
|
13533
|
+
}), 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, d]);
|
|
13535
13534
|
});
|
|
13536
13535
|
});
|
|
13537
13536
|
}, e.prototype.trackPageVisibility = function() {
|
|
@@ -13541,14 +13540,14 @@ var wa = (
|
|
|
13541
13540
|
}, e.prototype.acquireTokenSilentAsync = function(t, r) {
|
|
13542
13541
|
var o;
|
|
13543
13542
|
return T(this, void 0, void 0, function() {
|
|
13544
|
-
var i, a, s,
|
|
13543
|
+
var i, a, s, d, p, u = this;
|
|
13545
13544
|
return I(this, function(f) {
|
|
13546
13545
|
switch (f.label) {
|
|
13547
13546
|
case 0:
|
|
13548
13547
|
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({
|
|
13549
13548
|
visibilityChangeCount: 0
|
|
13550
13549
|
}), 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(_) {
|
|
13551
|
-
return T(
|
|
13550
|
+
return T(u, void 0, void 0, function() {
|
|
13552
13551
|
var k;
|
|
13553
13552
|
return I(this, function(E) {
|
|
13554
13553
|
if (_ instanceof tt && _.isFatal())
|
|
@@ -13560,23 +13559,23 @@ var wa = (
|
|
|
13560
13559
|
case 1:
|
|
13561
13560
|
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)];
|
|
13562
13561
|
case 2:
|
|
13563
|
-
|
|
13562
|
+
d = f.sent(), p = B(B({}, t), {
|
|
13564
13563
|
// set the request's CacheLookupPolicy to Default if it was not optionally passed in
|
|
13565
13564
|
cacheLookupPolicy: t.cacheLookupPolicy || Le.Default
|
|
13566
|
-
}), this.performanceClient.setPreQueueTime(b.AcquireTokenFromCache,
|
|
13565
|
+
}), this.performanceClient.setPreQueueTime(b.AcquireTokenFromCache, d.correlationId), i = this.acquireTokenFromCache(s, d, p).catch(function(_) {
|
|
13567
13566
|
if (p.cacheLookupPolicy === Le.AccessToken)
|
|
13568
13567
|
throw _;
|
|
13569
|
-
return
|
|
13568
|
+
return ue.blockReloadInHiddenIframes(), u.eventHandler.emitEvent(q.ACQUIRE_TOKEN_NETWORK_START, x.Silent, d), u.performanceClient.setPreQueueTime(b.AcquireTokenByRefreshToken, d.correlationId), u.acquireTokenByRefreshToken(d, p).catch(function(k) {
|
|
13570
13569
|
var E = k instanceof bt, N = k instanceof Ye, Q = k.errorCode === Nt.noTokensFoundError.code, X = k.errorCode === Qe.INVALID_GRANT_ERROR;
|
|
13571
13570
|
if ((!E || !X || N || p.cacheLookupPolicy === Le.AccessTokenAndRefreshToken || p.cacheLookupPolicy === Le.RefreshToken) && p.cacheLookupPolicy !== Le.Skip && !Q)
|
|
13572
13571
|
throw k;
|
|
13573
|
-
return
|
|
13572
|
+
return u.logger.verbose("Refresh token expired/invalid or CacheLookupPolicy is set to Skip, attempting acquire token by iframe.", t.correlationId), u.performanceClient.setPreQueueTime(b.AcquireTokenBySilentIframe, d.correlationId), u.acquireTokenBySilentIframe(d);
|
|
13574
13573
|
});
|
|
13575
13574
|
}), f.label = 3;
|
|
13576
13575
|
case 3:
|
|
13577
13576
|
return [2, i.then(function(_) {
|
|
13578
13577
|
var k;
|
|
13579
|
-
return
|
|
13578
|
+
return u.eventHandler.emitEvent(q.ACQUIRE_TOKEN_SUCCESS, x.Silent, _), (k = u.astsAsyncMeasurement) === null || k === void 0 || k.endMeasurement({
|
|
13580
13579
|
success: !0,
|
|
13581
13580
|
fromCache: _.fromCache,
|
|
13582
13581
|
isNativeBroker: _.fromNativeBroker,
|
|
@@ -13584,13 +13583,13 @@ var wa = (
|
|
|
13584
13583
|
}), _;
|
|
13585
13584
|
}).catch(function(_) {
|
|
13586
13585
|
var k;
|
|
13587
|
-
throw
|
|
13586
|
+
throw u.eventHandler.emitEvent(q.ACQUIRE_TOKEN_FAILURE, x.Silent, null, _), (k = u.astsAsyncMeasurement) === null || k === void 0 || k.endMeasurement({
|
|
13588
13587
|
errorCode: _.errorCode,
|
|
13589
13588
|
subErrorCode: _.subError,
|
|
13590
13589
|
success: !1
|
|
13591
13590
|
}), _;
|
|
13592
13591
|
}).finally(function() {
|
|
13593
|
-
document.removeEventListener("visibilitychange",
|
|
13592
|
+
document.removeEventListener("visibilitychange", u.trackPageVisibility);
|
|
13594
13593
|
})];
|
|
13595
13594
|
}
|
|
13596
13595
|
});
|
|
@@ -13683,18 +13682,18 @@ const An = {
|
|
|
13683
13682
|
if (t)
|
|
13684
13683
|
return console.log("Error: " + JSON.stringify(t)), this.microsoftLoad = !1;
|
|
13685
13684
|
if (this.referral && (r.ref = this.referral), this.display === "popup" && (r.response_type = "code"), r && (r.accessToken || r.idToken)) {
|
|
13686
|
-
const [s,
|
|
13685
|
+
const [s, d] = await Z(
|
|
13687
13686
|
Ne.microsoftSDK(r, this.$storage)
|
|
13688
13687
|
);
|
|
13689
13688
|
if (s)
|
|
13690
13689
|
return this.microsoftLoad = !1, this.microsoftSSOLoad = !1, U.$emit("ssoEvent", { name: "setLoading", data: !1 }), this.errorHandler(s);
|
|
13691
|
-
if (
|
|
13690
|
+
if (d.data.success) {
|
|
13692
13691
|
if (this.display === "popup")
|
|
13693
13692
|
return (a = window.parent) == null ? void 0 : a.postMessage(
|
|
13694
|
-
{ code:
|
|
13693
|
+
{ code: d.data.auth_code, state: this.$route.query.state },
|
|
13695
13694
|
"*"
|
|
13696
13695
|
);
|
|
13697
|
-
await this.loginSetup(
|
|
13696
|
+
await this.loginSetup(d), await this.getLoggedInAccounts(), this.loginSuccess({ ...d, isModal: this.isModal }), setTimeout(() => {
|
|
13698
13697
|
this.microsoftLoad = !1, this.microsoftSSOLoad = !1;
|
|
13699
13698
|
}, 1e3);
|
|
13700
13699
|
} else
|
|
@@ -13721,7 +13720,7 @@ const An = {
|
|
|
13721
13720
|
},
|
|
13722
13721
|
compareLangKeys() {
|
|
13723
13722
|
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);
|
|
13724
|
-
console.log("In en but not in de", n.filter((
|
|
13723
|
+
console.log("In en but not in de", n.filter((d) => !e.includes(d))), console.log("In de but not in en", e.filter((d) => !n.includes(d))), console.log(), console.log("In en but not in es", n.filter((d) => !t.includes(d))), console.log("In es but not in en", t.filter((d) => !n.includes(d))), console.log(), console.log("In en but not in kr", n.filter((d) => !r.includes(d))), console.log("In kr but not in en", r.filter((d) => !n.includes(d))), console.log(), console.log("In en but not in it", n.filter((d) => !o.includes(d))), console.log("In it but not in en", o.filter((d) => !n.includes(d))), console.log(), console.log("In en but not in fr", n.filter((d) => !i.includes(d))), console.log("In fr but not in en", i.filter((d) => !n.includes(d))), console.log(), console.log("In en but not in sr", n.filter((d) => !a.includes(d))), console.log("In sr but not in en", a.filter((d) => !n.includes(d))), console.log(), console.log("In en but not in tr", n.filter((d) => !s.includes(d))), console.log("In tr but not in en", s.filter((d) => !n.includes(d))), console.log();
|
|
13725
13724
|
},
|
|
13726
13725
|
base64ImageToBlob(n) {
|
|
13727
13726
|
const e = n.split(";base64,"), t = e[0].split(":")[1], r = window.atob(e[1]), o = new Uint8Array(r.length);
|
|
@@ -13755,8 +13754,8 @@ const An = {
|
|
|
13755
13754
|
cropCardScan(n, e) {
|
|
13756
13755
|
const t = new window.Image(), r = document.createElement("canvas"), o = r.getContext("2d");
|
|
13757
13756
|
t.src = "data:image/jpeg;base64," + n, t.onload = () => {
|
|
13758
|
-
const i = t.width, a = t.width / 1.65, s = 0,
|
|
13759
|
-
r.width = p, r.height =
|
|
13757
|
+
const i = t.width, a = t.width / 1.65, s = 0, d = t.height / 2 - a / 2, p = i, u = a;
|
|
13758
|
+
r.width = p, r.height = u, o.drawImage(t, s, d, i, a, 0, 0, p, u);
|
|
13760
13759
|
const f = r.toDataURL();
|
|
13761
13760
|
return e(f), f;
|
|
13762
13761
|
};
|
|
@@ -13782,7 +13781,7 @@ const An = {
|
|
|
13782
13781
|
},
|
|
13783
13782
|
async decryptAES(n, e, t) {
|
|
13784
13783
|
try {
|
|
13785
|
-
const r = (
|
|
13784
|
+
const r = (d) => Uint8Array.from(atob(d), (p) => p.charCodeAt(0));
|
|
13786
13785
|
t = t.replace(/ /g, "+");
|
|
13787
13786
|
const o = new TextEncoder(), i = new TextDecoder();
|
|
13788
13787
|
n = o.encode(n), e = o.encode(e), t = r(t, storage);
|
|
@@ -13832,11 +13831,11 @@ const An = {
|
|
|
13832
13831
|
localStorage.setItem("pkce_code_verifier", r);
|
|
13833
13832
|
let o = await Ut.pkceChallengeFromVerifier(r), i = n.domain + "/v1/authorize", a;
|
|
13834
13833
|
this.isNative ? a = "tapni://t.link/callback/okta" : a = location.origin + "/callback/okta";
|
|
13835
|
-
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",
|
|
13836
|
-
window.addEventListener("message", async (
|
|
13837
|
-
if (!this.allowedOrigins.includes(
|
|
13834
|
+
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", d = this, p;
|
|
13835
|
+
window.addEventListener("message", async (u) => {
|
|
13836
|
+
if (!this.allowedOrigins.includes(u.origin))
|
|
13838
13837
|
return console.log("Origin is not allowed!");
|
|
13839
|
-
|
|
13838
|
+
u.data.type === "okta" && (p = u.data.code, await d.exchangeCode({ domain: n.domain, code: p, clientID: n.clientID }));
|
|
13840
13839
|
}, { once: !0 }), this.isNative ? await hn.open({ url: s, presentationStyle: "popover" }) : window.open(s, "popup", "width=600,height=600");
|
|
13841
13840
|
},
|
|
13842
13841
|
async handleOktaRedirect() {
|
|
@@ -13876,10 +13875,10 @@ function Aa(n, e, t) {
|
|
|
13876
13875
|
return (e + t) * 3 / 4 - t;
|
|
13877
13876
|
}
|
|
13878
13877
|
function Ra(n) {
|
|
13879
|
-
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,
|
|
13880
|
-
for (
|
|
13881
|
-
e = je[n.charCodeAt(
|
|
13882
|
-
return o === 2 && (e = je[n.charCodeAt(
|
|
13878
|
+
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, d;
|
|
13879
|
+
for (d = 0; d < s; d += 4)
|
|
13880
|
+
e = je[n.charCodeAt(d)] << 18 | je[n.charCodeAt(d + 1)] << 12 | je[n.charCodeAt(d + 2)] << 6 | je[n.charCodeAt(d + 3)], i[a++] = e >> 16 & 255, i[a++] = e >> 8 & 255, i[a++] = e & 255;
|
|
13881
|
+
return o === 2 && (e = je[n.charCodeAt(d)] << 2 | je[n.charCodeAt(d + 1)] >> 4, i[a++] = e & 255), o === 1 && (e = je[n.charCodeAt(d)] << 10 | je[n.charCodeAt(d + 1)] << 4 | je[n.charCodeAt(d + 2)] >> 2, i[a++] = e >> 8 & 255, i[a++] = e & 255), i;
|
|
13883
13882
|
}
|
|
13884
13883
|
function Pa(n) {
|
|
13885
13884
|
return et[n >> 18 & 63] + et[n >> 12 & 63] + et[n >> 6 & 63] + et[n & 63];
|
|
@@ -13901,23 +13900,23 @@ function Na(n) {
|
|
|
13901
13900
|
var ir = {};
|
|
13902
13901
|
/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
|
|
13903
13902
|
ir.read = function(n, e, t, r, o) {
|
|
13904
|
-
var i, a, s = o * 8 - r - 1,
|
|
13905
|
-
for (f += _, i = k & (1 << -
|
|
13903
|
+
var i, a, s = o * 8 - r - 1, d = (1 << s) - 1, p = d >> 1, u = -7, f = t ? o - 1 : 0, _ = t ? -1 : 1, k = n[e + f];
|
|
13904
|
+
for (f += _, i = k & (1 << -u) - 1, k >>= -u, u += s; u > 0; i = i * 256 + n[e + f], f += _, u -= 8)
|
|
13906
13905
|
;
|
|
13907
|
-
for (a = i & (1 << -
|
|
13906
|
+
for (a = i & (1 << -u) - 1, i >>= -u, u += r; u > 0; a = a * 256 + n[e + f], f += _, u -= 8)
|
|
13908
13907
|
;
|
|
13909
13908
|
if (i === 0)
|
|
13910
13909
|
i = 1 - p;
|
|
13911
13910
|
else {
|
|
13912
|
-
if (i ===
|
|
13911
|
+
if (i === d)
|
|
13913
13912
|
return a ? NaN : (k ? -1 : 1) * (1 / 0);
|
|
13914
13913
|
a = a + Math.pow(2, r), i = i - p;
|
|
13915
13914
|
}
|
|
13916
13915
|
return (k ? -1 : 1) * a * Math.pow(2, i - r);
|
|
13917
13916
|
};
|
|
13918
13917
|
ir.write = function(n, e, t, r, o, i) {
|
|
13919
|
-
var a, s,
|
|
13920
|
-
for (e = Math.abs(e), isNaN(e) || e === 1 / 0 ? (s = isNaN(e) ? 1 : 0, a =
|
|
13918
|
+
var a, s, d, p = i * 8 - o - 1, u = (1 << p) - 1, f = u >> 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;
|
|
13919
|
+
for (e = Math.abs(e), isNaN(e) || e === 1 / 0 ? (s = isNaN(e) ? 1 : 0, a = u) : (a = Math.floor(Math.log(e) / Math.LN2), e * (d = Math.pow(2, -a)) < 1 && (a--, d *= 2), a + f >= 1 ? e += _ / d : e += _ * Math.pow(2, 1 - f), e * d >= 2 && (a++, d /= 2), a + f >= u ? (s = 0, a = u) : a + f >= 1 ? (s = (e * d - 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)
|
|
13921
13920
|
;
|
|
13922
13921
|
for (a = a << o | s, p += o; p > 0; n[t + k] = a & 255, k += E, a /= 256, p -= 8)
|
|
13923
13922
|
;
|
|
@@ -13931,14 +13930,14 @@ ir.write = function(n, e, t, r, o, i) {
|
|
|
13931
13930
|
*/
|
|
13932
13931
|
(function(n) {
|
|
13933
13932
|
const e = Pn, t = ir, r = typeof Symbol == "function" && typeof Symbol.for == "function" ? Symbol.for("nodejs.util.inspect.custom") : null;
|
|
13934
|
-
n.Buffer =
|
|
13933
|
+
n.Buffer = u, n.SlowBuffer = xe, n.INSPECT_MAX_BYTES = 50;
|
|
13935
13934
|
const o = 2147483647;
|
|
13936
13935
|
n.kMaxLength = o;
|
|
13937
13936
|
const { Uint8Array: i, ArrayBuffer: a, SharedArrayBuffer: s } = globalThis;
|
|
13938
|
-
|
|
13937
|
+
u.TYPED_ARRAY_SUPPORT = d(), !u.TYPED_ARRAY_SUPPORT && typeof console < "u" && typeof console.error == "function" && console.error(
|
|
13939
13938
|
"This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."
|
|
13940
13939
|
);
|
|
13941
|
-
function
|
|
13940
|
+
function d() {
|
|
13942
13941
|
try {
|
|
13943
13942
|
const h = new i(1), c = { foo: function() {
|
|
13944
13943
|
return 42;
|
|
@@ -13948,16 +13947,16 @@ ir.write = function(n, e, t, r, o, i) {
|
|
|
13948
13947
|
return !1;
|
|
13949
13948
|
}
|
|
13950
13949
|
}
|
|
13951
|
-
Object.defineProperty(
|
|
13950
|
+
Object.defineProperty(u.prototype, "parent", {
|
|
13952
13951
|
enumerable: !0,
|
|
13953
13952
|
get: function() {
|
|
13954
|
-
if (
|
|
13953
|
+
if (u.isBuffer(this))
|
|
13955
13954
|
return this.buffer;
|
|
13956
13955
|
}
|
|
13957
|
-
}), Object.defineProperty(
|
|
13956
|
+
}), Object.defineProperty(u.prototype, "offset", {
|
|
13958
13957
|
enumerable: !0,
|
|
13959
13958
|
get: function() {
|
|
13960
|
-
if (
|
|
13959
|
+
if (u.isBuffer(this))
|
|
13961
13960
|
return this.byteOffset;
|
|
13962
13961
|
}
|
|
13963
13962
|
});
|
|
@@ -13965,9 +13964,9 @@ ir.write = function(n, e, t, r, o, i) {
|
|
|
13965
13964
|
if (h > o)
|
|
13966
13965
|
throw new RangeError('The value "' + h + '" is invalid for option "size"');
|
|
13967
13966
|
const c = new i(h);
|
|
13968
|
-
return Object.setPrototypeOf(c,
|
|
13967
|
+
return Object.setPrototypeOf(c, u.prototype), c;
|
|
13969
13968
|
}
|
|
13970
|
-
function
|
|
13969
|
+
function u(h, c, l) {
|
|
13971
13970
|
if (typeof h == "number") {
|
|
13972
13971
|
if (typeof c == "string")
|
|
13973
13972
|
throw new TypeError(
|
|
@@ -13977,7 +13976,7 @@ ir.write = function(n, e, t, r, o, i) {
|
|
|
13977
13976
|
}
|
|
13978
13977
|
return f(h, c, l);
|
|
13979
13978
|
}
|
|
13980
|
-
|
|
13979
|
+
u.poolSize = 8192;
|
|
13981
13980
|
function f(h, c, l) {
|
|
13982
13981
|
if (typeof h == "string")
|
|
13983
13982
|
return N(h, c);
|
|
@@ -13995,19 +13994,19 @@ ir.write = function(n, e, t, r, o, i) {
|
|
|
13995
13994
|
);
|
|
13996
13995
|
const m = h.valueOf && h.valueOf();
|
|
13997
13996
|
if (m != null && m !== h)
|
|
13998
|
-
return
|
|
13997
|
+
return u.from(m, c, l);
|
|
13999
13998
|
const v = $(h);
|
|
14000
13999
|
if (v)
|
|
14001
14000
|
return v;
|
|
14002
14001
|
if (typeof Symbol < "u" && Symbol.toPrimitive != null && typeof h[Symbol.toPrimitive] == "function")
|
|
14003
|
-
return
|
|
14002
|
+
return u.from(h[Symbol.toPrimitive]("string"), c, l);
|
|
14004
14003
|
throw new TypeError(
|
|
14005
14004
|
"The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type " + typeof h
|
|
14006
14005
|
);
|
|
14007
14006
|
}
|
|
14008
|
-
|
|
14007
|
+
u.from = function(h, c, l) {
|
|
14009
14008
|
return f(h, c, l);
|
|
14010
|
-
}, Object.setPrototypeOf(
|
|
14009
|
+
}, Object.setPrototypeOf(u.prototype, i.prototype), Object.setPrototypeOf(u, i);
|
|
14011
14010
|
function _(h) {
|
|
14012
14011
|
if (typeof h != "number")
|
|
14013
14012
|
throw new TypeError('"size" argument must be of type number');
|
|
@@ -14017,19 +14016,19 @@ ir.write = function(n, e, t, r, o, i) {
|
|
|
14017
14016
|
function k(h, c, l) {
|
|
14018
14017
|
return _(h), h <= 0 ? p(h) : c !== void 0 ? typeof l == "string" ? p(h).fill(c, l) : p(h).fill(c) : p(h);
|
|
14019
14018
|
}
|
|
14020
|
-
|
|
14019
|
+
u.alloc = function(h, c, l) {
|
|
14021
14020
|
return k(h, c, l);
|
|
14022
14021
|
};
|
|
14023
14022
|
function E(h) {
|
|
14024
14023
|
return _(h), p(h < 0 ? 0 : Ae(h) | 0);
|
|
14025
14024
|
}
|
|
14026
|
-
|
|
14025
|
+
u.allocUnsafe = function(h) {
|
|
14027
14026
|
return E(h);
|
|
14028
|
-
},
|
|
14027
|
+
}, u.allocUnsafeSlow = function(h) {
|
|
14029
14028
|
return E(h);
|
|
14030
14029
|
};
|
|
14031
14030
|
function N(h, c) {
|
|
14032
|
-
if ((typeof c != "string" || c === "") && (c = "utf8"), !
|
|
14031
|
+
if ((typeof c != "string" || c === "") && (c = "utf8"), !u.isEncoding(c))
|
|
14033
14032
|
throw new TypeError("Unknown encoding: " + c);
|
|
14034
14033
|
const l = Ve(h, c) | 0;
|
|
14035
14034
|
let m = p(l);
|
|
@@ -14055,10 +14054,10 @@ ir.write = function(n, e, t, r, o, i) {
|
|
|
14055
14054
|
if (h.byteLength < c + (l || 0))
|
|
14056
14055
|
throw new RangeError('"length" is outside of buffer bounds');
|
|
14057
14056
|
let m;
|
|
14058
|
-
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,
|
|
14057
|
+
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, u.prototype), m;
|
|
14059
14058
|
}
|
|
14060
14059
|
function $(h) {
|
|
14061
|
-
if (
|
|
14060
|
+
if (u.isBuffer(h)) {
|
|
14062
14061
|
const c = Ae(h.length) | 0, l = p(c);
|
|
14063
14062
|
return l.length === 0 || h.copy(l, 0, 0, c), l;
|
|
14064
14063
|
}
|
|
@@ -14073,12 +14072,12 @@ ir.write = function(n, e, t, r, o, i) {
|
|
|
14073
14072
|
return h | 0;
|
|
14074
14073
|
}
|
|
14075
14074
|
function xe(h) {
|
|
14076
|
-
return +h != h && (h = 0),
|
|
14075
|
+
return +h != h && (h = 0), u.alloc(+h);
|
|
14077
14076
|
}
|
|
14078
|
-
|
|
14079
|
-
return c != null && c._isBuffer === !0 && c !==
|
|
14080
|
-
},
|
|
14081
|
-
if ($e(c, i) && (c =
|
|
14077
|
+
u.isBuffer = function(c) {
|
|
14078
|
+
return c != null && c._isBuffer === !0 && c !== u.prototype;
|
|
14079
|
+
}, u.compare = function(c, l) {
|
|
14080
|
+
if ($e(c, i) && (c = u.from(c, c.offset, c.byteLength)), $e(l, i) && (l = u.from(l, l.offset, l.byteLength)), !u.isBuffer(c) || !u.isBuffer(l))
|
|
14082
14081
|
throw new TypeError(
|
|
14083
14082
|
'The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array'
|
|
14084
14083
|
);
|
|
@@ -14091,7 +14090,7 @@ ir.write = function(n, e, t, r, o, i) {
|
|
|
14091
14090
|
break;
|
|
14092
14091
|
}
|
|
14093
14092
|
return m < v ? -1 : v < m ? 1 : 0;
|
|
14094
|
-
},
|
|
14093
|
+
}, u.isEncoding = function(c) {
|
|
14095
14094
|
switch (String(c).toLowerCase()) {
|
|
14096
14095
|
case "hex":
|
|
14097
14096
|
case "utf8":
|
|
@@ -14108,26 +14107,26 @@ ir.write = function(n, e, t, r, o, i) {
|
|
|
14108
14107
|
default:
|
|
14109
14108
|
return !1;
|
|
14110
14109
|
}
|
|
14111
|
-
},
|
|
14110
|
+
}, u.concat = function(c, l) {
|
|
14112
14111
|
if (!Array.isArray(c))
|
|
14113
14112
|
throw new TypeError('"list" argument must be an Array of Buffers');
|
|
14114
14113
|
if (c.length === 0)
|
|
14115
|
-
return
|
|
14114
|
+
return u.alloc(0);
|
|
14116
14115
|
let m;
|
|
14117
14116
|
if (l === void 0)
|
|
14118
14117
|
for (l = 0, m = 0; m < c.length; ++m)
|
|
14119
14118
|
l += c[m].length;
|
|
14120
|
-
const v =
|
|
14119
|
+
const v = u.allocUnsafe(l);
|
|
14121
14120
|
let w = 0;
|
|
14122
14121
|
for (m = 0; m < c.length; ++m) {
|
|
14123
14122
|
let C = c[m];
|
|
14124
14123
|
if ($e(C, i))
|
|
14125
|
-
w + C.length > v.length ? (
|
|
14124
|
+
w + C.length > v.length ? (u.isBuffer(C) || (C = u.from(C)), C.copy(v, w)) : i.prototype.set.call(
|
|
14126
14125
|
v,
|
|
14127
14126
|
C,
|
|
14128
14127
|
w
|
|
14129
14128
|
);
|
|
14130
|
-
else if (
|
|
14129
|
+
else if (u.isBuffer(C))
|
|
14131
14130
|
C.copy(v, w);
|
|
14132
14131
|
else
|
|
14133
14132
|
throw new TypeError('"list" argument must be an Array of Buffers');
|
|
@@ -14136,7 +14135,7 @@ ir.write = function(n, e, t, r, o, i) {
|
|
|
14136
14135
|
return v;
|
|
14137
14136
|
};
|
|
14138
14137
|
function Ve(h, c) {
|
|
14139
|
-
if (
|
|
14138
|
+
if (u.isBuffer(h))
|
|
14140
14139
|
return h.length;
|
|
14141
14140
|
if (a.isView(h) || $e(h, a))
|
|
14142
14141
|
return h.byteLength;
|
|
@@ -14172,7 +14171,7 @@ ir.write = function(n, e, t, r, o, i) {
|
|
|
14172
14171
|
c = ("" + c).toLowerCase(), v = !0;
|
|
14173
14172
|
}
|
|
14174
14173
|
}
|
|
14175
|
-
|
|
14174
|
+
u.byteLength = Ve;
|
|
14176
14175
|
function Ct(h, c, l) {
|
|
14177
14176
|
let m = !1;
|
|
14178
14177
|
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))
|
|
@@ -14202,45 +14201,45 @@ ir.write = function(n, e, t, r, o, i) {
|
|
|
14202
14201
|
h = (h + "").toLowerCase(), m = !0;
|
|
14203
14202
|
}
|
|
14204
14203
|
}
|
|
14205
|
-
|
|
14204
|
+
u.prototype._isBuffer = !0;
|
|
14206
14205
|
function ce(h, c, l) {
|
|
14207
14206
|
const m = h[c];
|
|
14208
14207
|
h[c] = h[l], h[l] = m;
|
|
14209
14208
|
}
|
|
14210
|
-
|
|
14209
|
+
u.prototype.swap16 = function() {
|
|
14211
14210
|
const c = this.length;
|
|
14212
14211
|
if (c % 2 !== 0)
|
|
14213
14212
|
throw new RangeError("Buffer size must be a multiple of 16-bits");
|
|
14214
14213
|
for (let l = 0; l < c; l += 2)
|
|
14215
14214
|
ce(this, l, l + 1);
|
|
14216
14215
|
return this;
|
|
14217
|
-
},
|
|
14216
|
+
}, u.prototype.swap32 = function() {
|
|
14218
14217
|
const c = this.length;
|
|
14219
14218
|
if (c % 4 !== 0)
|
|
14220
14219
|
throw new RangeError("Buffer size must be a multiple of 32-bits");
|
|
14221
14220
|
for (let l = 0; l < c; l += 4)
|
|
14222
14221
|
ce(this, l, l + 3), ce(this, l + 1, l + 2);
|
|
14223
14222
|
return this;
|
|
14224
|
-
},
|
|
14223
|
+
}, u.prototype.swap64 = function() {
|
|
14225
14224
|
const c = this.length;
|
|
14226
14225
|
if (c % 8 !== 0)
|
|
14227
14226
|
throw new RangeError("Buffer size must be a multiple of 64-bits");
|
|
14228
14227
|
for (let l = 0; l < c; l += 8)
|
|
14229
14228
|
ce(this, l, l + 7), ce(this, l + 1, l + 6), ce(this, l + 2, l + 5), ce(this, l + 3, l + 4);
|
|
14230
14229
|
return this;
|
|
14231
|
-
},
|
|
14230
|
+
}, u.prototype.toString = function() {
|
|
14232
14231
|
const c = this.length;
|
|
14233
14232
|
return c === 0 ? "" : arguments.length === 0 ? cr(this, 0, c) : Ct.apply(this, arguments);
|
|
14234
|
-
},
|
|
14235
|
-
if (!
|
|
14233
|
+
}, u.prototype.toLocaleString = u.prototype.toString, u.prototype.equals = function(c) {
|
|
14234
|
+
if (!u.isBuffer(c))
|
|
14236
14235
|
throw new TypeError("Argument must be a Buffer");
|
|
14237
|
-
return this === c ? !0 :
|
|
14238
|
-
},
|
|
14236
|
+
return this === c ? !0 : u.compare(this, c) === 0;
|
|
14237
|
+
}, u.prototype.inspect = function() {
|
|
14239
14238
|
let c = "";
|
|
14240
14239
|
const l = n.INSPECT_MAX_BYTES;
|
|
14241
14240
|
return c = this.toString("hex", 0, l).replace(/(.{2})/g, "$1 ").trim(), this.length > l && (c += " ... "), "<Buffer " + c + ">";
|
|
14242
|
-
}, r && (
|
|
14243
|
-
if ($e(c, i) && (c =
|
|
14241
|
+
}, r && (u.prototype[r] = u.prototype.inspect), u.prototype.compare = function(c, l, m, v, w) {
|
|
14242
|
+
if ($e(c, i) && (c = u.from(c, c.offset, c.byteLength)), !u.isBuffer(c))
|
|
14244
14243
|
throw new TypeError(
|
|
14245
14244
|
'The "target" argument must be one of type Buffer or Uint8Array. Received type ' + typeof c
|
|
14246
14245
|
);
|
|
@@ -14255,10 +14254,10 @@ ir.write = function(n, e, t, r, o, i) {
|
|
|
14255
14254
|
if (l >>>= 0, m >>>= 0, v >>>= 0, w >>>= 0, this === c)
|
|
14256
14255
|
return 0;
|
|
14257
14256
|
let C = w - v, Y = m - l;
|
|
14258
|
-
const le = Math.min(C, Y), ae = this.slice(v, w),
|
|
14257
|
+
const le = Math.min(C, Y), ae = this.slice(v, w), de = c.slice(l, m);
|
|
14259
14258
|
for (let re = 0; re < le; ++re)
|
|
14260
|
-
if (ae[re] !==
|
|
14261
|
-
C = ae[re], Y =
|
|
14259
|
+
if (ae[re] !== de[re]) {
|
|
14260
|
+
C = ae[re], Y = de[re];
|
|
14262
14261
|
break;
|
|
14263
14262
|
}
|
|
14264
14263
|
return C < Y ? -1 : Y < C ? 1 : 0;
|
|
@@ -14275,7 +14274,7 @@ ir.write = function(n, e, t, r, o, i) {
|
|
|
14275
14274
|
l = 0;
|
|
14276
14275
|
else
|
|
14277
14276
|
return -1;
|
|
14278
|
-
if (typeof c == "string" && (c =
|
|
14277
|
+
if (typeof c == "string" && (c = u.from(c, m)), u.isBuffer(c))
|
|
14279
14278
|
return c.length === 0 ? -1 : sr(h, c, l, m, v);
|
|
14280
14279
|
if (typeof c == "number")
|
|
14281
14280
|
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);
|
|
@@ -14288,36 +14287,36 @@ ir.write = function(n, e, t, r, o, i) {
|
|
|
14288
14287
|
return -1;
|
|
14289
14288
|
w = 2, C /= 2, Y /= 2, l /= 2;
|
|
14290
14289
|
}
|
|
14291
|
-
function le(
|
|
14292
|
-
return w === 1 ?
|
|
14290
|
+
function le(de, re) {
|
|
14291
|
+
return w === 1 ? de[re] : de.readUInt16BE(re * w);
|
|
14293
14292
|
}
|
|
14294
14293
|
let ae;
|
|
14295
14294
|
if (v) {
|
|
14296
|
-
let
|
|
14295
|
+
let de = -1;
|
|
14297
14296
|
for (ae = l; ae < C; ae++)
|
|
14298
|
-
if (le(h, ae) === le(c,
|
|
14299
|
-
if (
|
|
14300
|
-
return
|
|
14297
|
+
if (le(h, ae) === le(c, de === -1 ? 0 : ae - de)) {
|
|
14298
|
+
if (de === -1 && (de = ae), ae - de + 1 === Y)
|
|
14299
|
+
return de * w;
|
|
14301
14300
|
} else
|
|
14302
|
-
|
|
14301
|
+
de !== -1 && (ae -= ae - de), de = -1;
|
|
14303
14302
|
} else
|
|
14304
14303
|
for (l + Y > C && (l = C - Y), ae = l; ae >= 0; ae--) {
|
|
14305
|
-
let
|
|
14304
|
+
let de = !0;
|
|
14306
14305
|
for (let re = 0; re < Y; re++)
|
|
14307
14306
|
if (le(h, ae + re) !== le(c, re)) {
|
|
14308
|
-
|
|
14307
|
+
de = !1;
|
|
14309
14308
|
break;
|
|
14310
14309
|
}
|
|
14311
|
-
if (
|
|
14310
|
+
if (de)
|
|
14312
14311
|
return ae;
|
|
14313
14312
|
}
|
|
14314
14313
|
return -1;
|
|
14315
14314
|
}
|
|
14316
|
-
|
|
14315
|
+
u.prototype.includes = function(c, l, m) {
|
|
14317
14316
|
return this.indexOf(c, l, m) !== -1;
|
|
14318
|
-
},
|
|
14317
|
+
}, u.prototype.indexOf = function(c, l, m) {
|
|
14319
14318
|
return ar(this, c, l, m, !0);
|
|
14320
|
-
},
|
|
14319
|
+
}, u.prototype.lastIndexOf = function(c, l, m) {
|
|
14321
14320
|
return ar(this, c, l, m, !1);
|
|
14322
14321
|
};
|
|
14323
14322
|
function Io(h, c, l, m) {
|
|
@@ -14347,7 +14346,7 @@ ir.write = function(n, e, t, r, o, i) {
|
|
|
14347
14346
|
function Po(h, c, l, m) {
|
|
14348
14347
|
return sn(qo(c, h.length - l), h, l, m);
|
|
14349
14348
|
}
|
|
14350
|
-
|
|
14349
|
+
u.prototype.write = function(c, l, m, v) {
|
|
14351
14350
|
if (l === void 0)
|
|
14352
14351
|
v = "utf8", m = this.length, l = 0;
|
|
14353
14352
|
else if (m === void 0 && typeof l == "string")
|
|
@@ -14386,7 +14385,7 @@ ir.write = function(n, e, t, r, o, i) {
|
|
|
14386
14385
|
throw new TypeError("Unknown encoding: " + v);
|
|
14387
14386
|
v = ("" + v).toLowerCase(), C = !0;
|
|
14388
14387
|
}
|
|
14389
|
-
},
|
|
14388
|
+
}, u.prototype.toJSON = function() {
|
|
14390
14389
|
return {
|
|
14391
14390
|
type: "Buffer",
|
|
14392
14391
|
data: Array.prototype.slice.call(this._arr || this, 0)
|
|
@@ -14403,7 +14402,7 @@ ir.write = function(n, e, t, r, o, i) {
|
|
|
14403
14402
|
const w = h[v];
|
|
14404
14403
|
let C = null, Y = w > 239 ? 4 : w > 223 ? 3 : w > 191 ? 2 : 1;
|
|
14405
14404
|
if (v + Y <= l) {
|
|
14406
|
-
let le, ae,
|
|
14405
|
+
let le, ae, de, re;
|
|
14407
14406
|
switch (Y) {
|
|
14408
14407
|
case 1:
|
|
14409
14408
|
w < 128 && (C = w);
|
|
@@ -14415,7 +14414,7 @@ ir.write = function(n, e, t, r, o, i) {
|
|
|
14415
14414
|
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));
|
|
14416
14415
|
break;
|
|
14417
14416
|
case 4:
|
|
14418
|
-
le = h[v + 1], ae = h[v + 2],
|
|
14417
|
+
le = h[v + 1], ae = h[v + 2], de = h[v + 3], (le & 192) === 128 && (ae & 192) === 128 && (de & 192) === 128 && (re = (w & 15) << 18 | (le & 63) << 12 | (ae & 63) << 6 | de & 63, re > 65535 && re < 1114112 && (C = re));
|
|
14419
14418
|
}
|
|
14420
14419
|
}
|
|
14421
14420
|
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;
|
|
@@ -14464,11 +14463,11 @@ ir.write = function(n, e, t, r, o, i) {
|
|
|
14464
14463
|
v += String.fromCharCode(m[w] + m[w + 1] * 256);
|
|
14465
14464
|
return v;
|
|
14466
14465
|
}
|
|
14467
|
-
|
|
14466
|
+
u.prototype.slice = function(c, l) {
|
|
14468
14467
|
const m = this.length;
|
|
14469
14468
|
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);
|
|
14470
14469
|
const v = this.subarray(c, l);
|
|
14471
|
-
return Object.setPrototypeOf(v,
|
|
14470
|
+
return Object.setPrototypeOf(v, u.prototype), v;
|
|
14472
14471
|
};
|
|
14473
14472
|
function ge(h, c, l) {
|
|
14474
14473
|
if (h % 1 !== 0 || h < 0)
|
|
@@ -14476,97 +14475,97 @@ ir.write = function(n, e, t, r, o, i) {
|
|
|
14476
14475
|
if (h + c > l)
|
|
14477
14476
|
throw new RangeError("Trying to access beyond buffer length");
|
|
14478
14477
|
}
|
|
14479
|
-
|
|
14478
|
+
u.prototype.readUintLE = u.prototype.readUIntLE = function(c, l, m) {
|
|
14480
14479
|
c = c >>> 0, l = l >>> 0, m || ge(c, l, this.length);
|
|
14481
14480
|
let v = this[c], w = 1, C = 0;
|
|
14482
14481
|
for (; ++C < l && (w *= 256); )
|
|
14483
14482
|
v += this[c + C] * w;
|
|
14484
14483
|
return v;
|
|
14485
|
-
},
|
|
14484
|
+
}, u.prototype.readUintBE = u.prototype.readUIntBE = function(c, l, m) {
|
|
14486
14485
|
c = c >>> 0, l = l >>> 0, m || ge(c, l, this.length);
|
|
14487
14486
|
let v = this[c + --l], w = 1;
|
|
14488
14487
|
for (; l > 0 && (w *= 256); )
|
|
14489
14488
|
v += this[c + --l] * w;
|
|
14490
14489
|
return v;
|
|
14491
|
-
},
|
|
14490
|
+
}, u.prototype.readUint8 = u.prototype.readUInt8 = function(c, l) {
|
|
14492
14491
|
return c = c >>> 0, l || ge(c, 1, this.length), this[c];
|
|
14493
|
-
},
|
|
14492
|
+
}, u.prototype.readUint16LE = u.prototype.readUInt16LE = function(c, l) {
|
|
14494
14493
|
return c = c >>> 0, l || ge(c, 2, this.length), this[c] | this[c + 1] << 8;
|
|
14495
|
-
},
|
|
14494
|
+
}, u.prototype.readUint16BE = u.prototype.readUInt16BE = function(c, l) {
|
|
14496
14495
|
return c = c >>> 0, l || ge(c, 2, this.length), this[c] << 8 | this[c + 1];
|
|
14497
|
-
},
|
|
14496
|
+
}, u.prototype.readUint32LE = u.prototype.readUInt32LE = function(c, l) {
|
|
14498
14497
|
return c = c >>> 0, l || ge(c, 4, this.length), (this[c] | this[c + 1] << 8 | this[c + 2] << 16) + this[c + 3] * 16777216;
|
|
14499
|
-
},
|
|
14498
|
+
}, u.prototype.readUint32BE = u.prototype.readUInt32BE = function(c, l) {
|
|
14500
14499
|
return c = c >>> 0, l || ge(c, 4, this.length), this[c] * 16777216 + (this[c + 1] << 16 | this[c + 2] << 8 | this[c + 3]);
|
|
14501
|
-
},
|
|
14500
|
+
}, u.prototype.readBigUInt64LE = dt(function(c) {
|
|
14502
14501
|
c = c >>> 0, Tt(c, "offset");
|
|
14503
14502
|
const l = this[c], m = this[c + 7];
|
|
14504
14503
|
(l === void 0 || m === void 0) && Kt(c, this.length - 8);
|
|
14505
14504
|
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;
|
|
14506
14505
|
return BigInt(v) + (BigInt(w) << BigInt(32));
|
|
14507
|
-
}),
|
|
14506
|
+
}), u.prototype.readBigUInt64BE = dt(function(c) {
|
|
14508
14507
|
c = c >>> 0, Tt(c, "offset");
|
|
14509
14508
|
const l = this[c], m = this[c + 7];
|
|
14510
14509
|
(l === void 0 || m === void 0) && Kt(c, this.length - 8);
|
|
14511
14510
|
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;
|
|
14512
14511
|
return (BigInt(v) << BigInt(32)) + BigInt(w);
|
|
14513
|
-
}),
|
|
14512
|
+
}), u.prototype.readIntLE = function(c, l, m) {
|
|
14514
14513
|
c = c >>> 0, l = l >>> 0, m || ge(c, l, this.length);
|
|
14515
14514
|
let v = this[c], w = 1, C = 0;
|
|
14516
14515
|
for (; ++C < l && (w *= 256); )
|
|
14517
14516
|
v += this[c + C] * w;
|
|
14518
14517
|
return w *= 128, v >= w && (v -= Math.pow(2, 8 * l)), v;
|
|
14519
|
-
},
|
|
14518
|
+
}, u.prototype.readIntBE = function(c, l, m) {
|
|
14520
14519
|
c = c >>> 0, l = l >>> 0, m || ge(c, l, this.length);
|
|
14521
14520
|
let v = l, w = 1, C = this[c + --v];
|
|
14522
14521
|
for (; v > 0 && (w *= 256); )
|
|
14523
14522
|
C += this[c + --v] * w;
|
|
14524
14523
|
return w *= 128, C >= w && (C -= Math.pow(2, 8 * l)), C;
|
|
14525
|
-
},
|
|
14524
|
+
}, u.prototype.readInt8 = function(c, l) {
|
|
14526
14525
|
return c = c >>> 0, l || ge(c, 1, this.length), this[c] & 128 ? (255 - this[c] + 1) * -1 : this[c];
|
|
14527
|
-
},
|
|
14526
|
+
}, u.prototype.readInt16LE = function(c, l) {
|
|
14528
14527
|
c = c >>> 0, l || ge(c, 2, this.length);
|
|
14529
14528
|
const m = this[c] | this[c + 1] << 8;
|
|
14530
14529
|
return m & 32768 ? m | 4294901760 : m;
|
|
14531
|
-
},
|
|
14530
|
+
}, u.prototype.readInt16BE = function(c, l) {
|
|
14532
14531
|
c = c >>> 0, l || ge(c, 2, this.length);
|
|
14533
14532
|
const m = this[c + 1] | this[c] << 8;
|
|
14534
14533
|
return m & 32768 ? m | 4294901760 : m;
|
|
14535
|
-
},
|
|
14534
|
+
}, u.prototype.readInt32LE = function(c, l) {
|
|
14536
14535
|
return c = c >>> 0, l || ge(c, 4, this.length), this[c] | this[c + 1] << 8 | this[c + 2] << 16 | this[c + 3] << 24;
|
|
14537
|
-
},
|
|
14536
|
+
}, u.prototype.readInt32BE = function(c, l) {
|
|
14538
14537
|
return c = c >>> 0, l || ge(c, 4, this.length), this[c] << 24 | this[c + 1] << 16 | this[c + 2] << 8 | this[c + 3];
|
|
14539
|
-
},
|
|
14538
|
+
}, u.prototype.readBigInt64LE = dt(function(c) {
|
|
14540
14539
|
c = c >>> 0, Tt(c, "offset");
|
|
14541
14540
|
const l = this[c], m = this[c + 7];
|
|
14542
14541
|
(l === void 0 || m === void 0) && Kt(c, this.length - 8);
|
|
14543
14542
|
const v = this[c + 4] + this[c + 5] * 2 ** 8 + this[c + 6] * 2 ** 16 + (m << 24);
|
|
14544
14543
|
return (BigInt(v) << BigInt(32)) + BigInt(l + this[++c] * 2 ** 8 + this[++c] * 2 ** 16 + this[++c] * 2 ** 24);
|
|
14545
|
-
}),
|
|
14544
|
+
}), u.prototype.readBigInt64BE = dt(function(c) {
|
|
14546
14545
|
c = c >>> 0, Tt(c, "offset");
|
|
14547
14546
|
const l = this[c], m = this[c + 7];
|
|
14548
14547
|
(l === void 0 || m === void 0) && Kt(c, this.length - 8);
|
|
14549
14548
|
const v = (l << 24) + // Overflow
|
|
14550
14549
|
this[++c] * 2 ** 16 + this[++c] * 2 ** 8 + this[++c];
|
|
14551
14550
|
return (BigInt(v) << BigInt(32)) + BigInt(this[++c] * 2 ** 24 + this[++c] * 2 ** 16 + this[++c] * 2 ** 8 + m);
|
|
14552
|
-
}),
|
|
14551
|
+
}), u.prototype.readFloatLE = function(c, l) {
|
|
14553
14552
|
return c = c >>> 0, l || ge(c, 4, this.length), t.read(this, c, !0, 23, 4);
|
|
14554
|
-
},
|
|
14553
|
+
}, u.prototype.readFloatBE = function(c, l) {
|
|
14555
14554
|
return c = c >>> 0, l || ge(c, 4, this.length), t.read(this, c, !1, 23, 4);
|
|
14556
|
-
},
|
|
14555
|
+
}, u.prototype.readDoubleLE = function(c, l) {
|
|
14557
14556
|
return c = c >>> 0, l || ge(c, 8, this.length), t.read(this, c, !0, 52, 8);
|
|
14558
|
-
},
|
|
14557
|
+
}, u.prototype.readDoubleBE = function(c, l) {
|
|
14559
14558
|
return c = c >>> 0, l || ge(c, 8, this.length), t.read(this, c, !1, 52, 8);
|
|
14560
14559
|
};
|
|
14561
14560
|
function Re(h, c, l, m, v, w) {
|
|
14562
|
-
if (!
|
|
14561
|
+
if (!u.isBuffer(h))
|
|
14563
14562
|
throw new TypeError('"buffer" argument must be a Buffer instance');
|
|
14564
14563
|
if (c > v || c < w)
|
|
14565
14564
|
throw new RangeError('"value" argument is out of bounds');
|
|
14566
14565
|
if (l + m > h.length)
|
|
14567
14566
|
throw new RangeError("Index out of range");
|
|
14568
14567
|
}
|
|
14569
|
-
|
|
14568
|
+
u.prototype.writeUintLE = u.prototype.writeUIntLE = function(c, l, m, v) {
|
|
14570
14569
|
if (c = +c, l = l >>> 0, m = m >>> 0, !v) {
|
|
14571
14570
|
const Y = Math.pow(2, 8 * m) - 1;
|
|
14572
14571
|
Re(this, c, l, m, Y, 0);
|
|
@@ -14575,7 +14574,7 @@ ir.write = function(n, e, t, r, o, i) {
|
|
|
14575
14574
|
for (this[l] = c & 255; ++C < m && (w *= 256); )
|
|
14576
14575
|
this[l + C] = c / w & 255;
|
|
14577
14576
|
return l + m;
|
|
14578
|
-
},
|
|
14577
|
+
}, u.prototype.writeUintBE = u.prototype.writeUIntBE = function(c, l, m, v) {
|
|
14579
14578
|
if (c = +c, l = l >>> 0, m = m >>> 0, !v) {
|
|
14580
14579
|
const Y = Math.pow(2, 8 * m) - 1;
|
|
14581
14580
|
Re(this, c, l, m, Y, 0);
|
|
@@ -14584,36 +14583,36 @@ ir.write = function(n, e, t, r, o, i) {
|
|
|
14584
14583
|
for (this[l + w] = c & 255; --w >= 0 && (C *= 256); )
|
|
14585
14584
|
this[l + w] = c / C & 255;
|
|
14586
14585
|
return l + m;
|
|
14587
|
-
},
|
|
14586
|
+
}, u.prototype.writeUint8 = u.prototype.writeUInt8 = function(c, l, m) {
|
|
14588
14587
|
return c = +c, l = l >>> 0, m || Re(this, c, l, 1, 255, 0), this[l] = c & 255, l + 1;
|
|
14589
|
-
},
|
|
14588
|
+
}, u.prototype.writeUint16LE = u.prototype.writeUInt16LE = function(c, l, m) {
|
|
14590
14589
|
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;
|
|
14591
|
-
},
|
|
14590
|
+
}, u.prototype.writeUint16BE = u.prototype.writeUInt16BE = function(c, l, m) {
|
|
14592
14591
|
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;
|
|
14593
|
-
},
|
|
14592
|
+
}, u.prototype.writeUint32LE = u.prototype.writeUInt32LE = function(c, l, m) {
|
|
14594
14593
|
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;
|
|
14595
|
-
},
|
|
14594
|
+
}, u.prototype.writeUint32BE = u.prototype.writeUInt32BE = function(c, l, m) {
|
|
14596
14595
|
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;
|
|
14597
14596
|
};
|
|
14598
|
-
function
|
|
14597
|
+
function dr(h, c, l, m, v) {
|
|
14599
14598
|
gr(c, m, v, h, l, 7);
|
|
14600
14599
|
let w = Number(c & BigInt(4294967295));
|
|
14601
14600
|
h[l++] = w, w = w >> 8, h[l++] = w, w = w >> 8, h[l++] = w, w = w >> 8, h[l++] = w;
|
|
14602
14601
|
let C = Number(c >> BigInt(32) & BigInt(4294967295));
|
|
14603
14602
|
return h[l++] = C, C = C >> 8, h[l++] = C, C = C >> 8, h[l++] = C, C = C >> 8, h[l++] = C, l;
|
|
14604
14603
|
}
|
|
14605
|
-
function
|
|
14604
|
+
function ur(h, c, l, m, v) {
|
|
14606
14605
|
gr(c, m, v, h, l, 7);
|
|
14607
14606
|
let w = Number(c & BigInt(4294967295));
|
|
14608
14607
|
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;
|
|
14609
14608
|
let C = Number(c >> BigInt(32) & BigInt(4294967295));
|
|
14610
14609
|
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;
|
|
14611
14610
|
}
|
|
14612
|
-
|
|
14613
|
-
return ur(this, c, l, BigInt(0), BigInt("0xffffffffffffffff"));
|
|
14614
|
-
}), d.prototype.writeBigUInt64BE = ut(function(c, l = 0) {
|
|
14611
|
+
u.prototype.writeBigUInt64LE = dt(function(c, l = 0) {
|
|
14615
14612
|
return dr(this, c, l, BigInt(0), BigInt("0xffffffffffffffff"));
|
|
14616
|
-
}),
|
|
14613
|
+
}), u.prototype.writeBigUInt64BE = dt(function(c, l = 0) {
|
|
14614
|
+
return ur(this, c, l, BigInt(0), BigInt("0xffffffffffffffff"));
|
|
14615
|
+
}), u.prototype.writeIntLE = function(c, l, m, v) {
|
|
14617
14616
|
if (c = +c, l = l >>> 0, !v) {
|
|
14618
14617
|
const le = Math.pow(2, 8 * m - 1);
|
|
14619
14618
|
Re(this, c, l, m, le - 1, -le);
|
|
@@ -14622,7 +14621,7 @@ ir.write = function(n, e, t, r, o, i) {
|
|
|
14622
14621
|
for (this[l] = c & 255; ++w < m && (C *= 256); )
|
|
14623
14622
|
c < 0 && Y === 0 && this[l + w - 1] !== 0 && (Y = 1), this[l + w] = (c / C >> 0) - Y & 255;
|
|
14624
14623
|
return l + m;
|
|
14625
|
-
},
|
|
14624
|
+
}, u.prototype.writeIntBE = function(c, l, m, v) {
|
|
14626
14625
|
if (c = +c, l = l >>> 0, !v) {
|
|
14627
14626
|
const le = Math.pow(2, 8 * m - 1);
|
|
14628
14627
|
Re(this, c, l, m, le - 1, -le);
|
|
@@ -14631,20 +14630,20 @@ ir.write = function(n, e, t, r, o, i) {
|
|
|
14631
14630
|
for (this[l + w] = c & 255; --w >= 0 && (C *= 256); )
|
|
14632
14631
|
c < 0 && Y === 0 && this[l + w + 1] !== 0 && (Y = 1), this[l + w] = (c / C >> 0) - Y & 255;
|
|
14633
14632
|
return l + m;
|
|
14634
|
-
},
|
|
14633
|
+
}, u.prototype.writeInt8 = function(c, l, m) {
|
|
14635
14634
|
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;
|
|
14636
|
-
},
|
|
14635
|
+
}, u.prototype.writeInt16LE = function(c, l, m) {
|
|
14637
14636
|
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;
|
|
14638
|
-
},
|
|
14637
|
+
}, u.prototype.writeInt16BE = function(c, l, m) {
|
|
14639
14638
|
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;
|
|
14640
|
-
},
|
|
14639
|
+
}, u.prototype.writeInt32LE = function(c, l, m) {
|
|
14641
14640
|
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;
|
|
14642
|
-
},
|
|
14641
|
+
}, u.prototype.writeInt32BE = function(c, l, m) {
|
|
14643
14642
|
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;
|
|
14644
|
-
},
|
|
14645
|
-
return ur(this, c, l, -BigInt("0x8000000000000000"), BigInt("0x7fffffffffffffff"));
|
|
14646
|
-
}), d.prototype.writeBigInt64BE = ut(function(c, l = 0) {
|
|
14643
|
+
}, u.prototype.writeBigInt64LE = dt(function(c, l = 0) {
|
|
14647
14644
|
return dr(this, c, l, -BigInt("0x8000000000000000"), BigInt("0x7fffffffffffffff"));
|
|
14645
|
+
}), u.prototype.writeBigInt64BE = dt(function(c, l = 0) {
|
|
14646
|
+
return ur(this, c, l, -BigInt("0x8000000000000000"), BigInt("0x7fffffffffffffff"));
|
|
14648
14647
|
});
|
|
14649
14648
|
function pr(h, c, l, m, v, w) {
|
|
14650
14649
|
if (l + m > h.length)
|
|
@@ -14655,20 +14654,20 @@ ir.write = function(n, e, t, r, o, i) {
|
|
|
14655
14654
|
function hr(h, c, l, m, v) {
|
|
14656
14655
|
return c = +c, l = l >>> 0, v || pr(h, c, l, 4), t.write(h, c, l, m, 23, 4), l + 4;
|
|
14657
14656
|
}
|
|
14658
|
-
|
|
14657
|
+
u.prototype.writeFloatLE = function(c, l, m) {
|
|
14659
14658
|
return hr(this, c, l, !0, m);
|
|
14660
|
-
},
|
|
14659
|
+
}, u.prototype.writeFloatBE = function(c, l, m) {
|
|
14661
14660
|
return hr(this, c, l, !1, m);
|
|
14662
14661
|
};
|
|
14663
14662
|
function mr(h, c, l, m, v) {
|
|
14664
14663
|
return c = +c, l = l >>> 0, v || pr(h, c, l, 8), t.write(h, c, l, m, 52, 8), l + 8;
|
|
14665
14664
|
}
|
|
14666
|
-
|
|
14665
|
+
u.prototype.writeDoubleLE = function(c, l, m) {
|
|
14667
14666
|
return mr(this, c, l, !0, m);
|
|
14668
|
-
},
|
|
14667
|
+
}, u.prototype.writeDoubleBE = function(c, l, m) {
|
|
14669
14668
|
return mr(this, c, l, !1, m);
|
|
14670
|
-
},
|
|
14671
|
-
if (!
|
|
14669
|
+
}, u.prototype.copy = function(c, l, m, v) {
|
|
14670
|
+
if (!u.isBuffer(c))
|
|
14672
14671
|
throw new TypeError("argument should be a Buffer");
|
|
14673
14672
|
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)
|
|
14674
14673
|
return 0;
|
|
@@ -14685,11 +14684,11 @@ ir.write = function(n, e, t, r, o, i) {
|
|
|
14685
14684
|
this.subarray(m, v),
|
|
14686
14685
|
l
|
|
14687
14686
|
), w;
|
|
14688
|
-
},
|
|
14687
|
+
}, u.prototype.fill = function(c, l, m, v) {
|
|
14689
14688
|
if (typeof c == "string") {
|
|
14690
14689
|
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")
|
|
14691
14690
|
throw new TypeError("encoding must be a string");
|
|
14692
|
-
if (typeof v == "string" && !
|
|
14691
|
+
if (typeof v == "string" && !u.isEncoding(v))
|
|
14693
14692
|
throw new TypeError("Unknown encoding: " + v);
|
|
14694
14693
|
if (c.length === 1) {
|
|
14695
14694
|
const C = c.charCodeAt(0);
|
|
@@ -14707,7 +14706,7 @@ ir.write = function(n, e, t, r, o, i) {
|
|
|
14707
14706
|
for (w = l; w < m; ++w)
|
|
14708
14707
|
this[w] = c;
|
|
14709
14708
|
else {
|
|
14710
|
-
const C =
|
|
14709
|
+
const C = u.isBuffer(c) ? c : u.from(c, v), Y = C.length;
|
|
14711
14710
|
if (Y === 0)
|
|
14712
14711
|
throw new TypeError('The value "' + c + '" is invalid for argument "value"');
|
|
14713
14712
|
for (w = 0; w < m - l; ++w)
|
|
@@ -14894,7 +14893,7 @@ ir.write = function(n, e, t, r, o, i) {
|
|
|
14894
14893
|
}
|
|
14895
14894
|
return c;
|
|
14896
14895
|
}();
|
|
14897
|
-
function
|
|
14896
|
+
function dt(h) {
|
|
14898
14897
|
return typeof BigInt > "u" ? jo : h;
|
|
14899
14898
|
}
|
|
14900
14899
|
function jo() {
|
|
@@ -15159,7 +15158,7 @@ const La = fo.Buffer, Mn = {
|
|
|
15159
15158
|
}, ls = /* @__PURE__ */ y("img", {
|
|
15160
15159
|
src: "https://cdn.tapni.co/icons/outlook.png",
|
|
15161
15160
|
style: { position: "absolute", "margin-left": "-8px", padding: "10px 0", height: "100%" }
|
|
15162
|
-
}, null, -1),
|
|
15161
|
+
}, null, -1), ds = { key: 0 }, us = {
|
|
15163
15162
|
key: 1,
|
|
15164
15163
|
class: "button--loading-black button__loader"
|
|
15165
15164
|
}, ps = /* @__PURE__ */ y("img", {
|
|
@@ -15197,7 +15196,7 @@ function Ps(n, e, t, r, o, i) {
|
|
|
15197
15196
|
onClick: e[0] || (e[0] = (...s) => i.close && i.close(...s)),
|
|
15198
15197
|
class: "color-black pull-right pointer",
|
|
15199
15198
|
style: { "margin-top": "0px", position: "absolute", right: "-20px", "text-align": "right" }
|
|
15200
|
-
}, xa)) :
|
|
15199
|
+
}, xa)) : te("", !0),
|
|
15201
15200
|
y("h1", Ba, z(this.ssoLang[this.appLanguage].login), 1),
|
|
15202
15201
|
Da,
|
|
15203
15202
|
i.displayFormLogin ? (S(), P("span", Ha, [
|
|
@@ -15229,7 +15228,7 @@ function Ps(n, e, t, r, o, i) {
|
|
|
15229
15228
|
required: "",
|
|
15230
15229
|
minlength: "8"
|
|
15231
15230
|
}, null, 8, Qa), [
|
|
15232
|
-
[
|
|
15231
|
+
[un, o.password]
|
|
15233
15232
|
]),
|
|
15234
15233
|
y("em", {
|
|
15235
15234
|
onClick: e[4] || (e[4] = (s) => o.revealPassword = !o.revealPassword),
|
|
@@ -15246,7 +15245,7 @@ function Ps(n, e, t, r, o, i) {
|
|
|
15246
15245
|
y("button", $a, [
|
|
15247
15246
|
o.submitted ? (S(), P("span", Xa)) : (S(), P("span", Ja, z(n.ssoLang[n.appLanguage].login), 1))
|
|
15248
15247
|
])
|
|
15249
|
-
])) :
|
|
15248
|
+
])) : te("", !0),
|
|
15250
15249
|
Za,
|
|
15251
15250
|
n.displayAppleLogin ? (S(), P("a", {
|
|
15252
15251
|
key: 2,
|
|
@@ -15255,7 +15254,7 @@ function Ps(n, e, t, r, o, i) {
|
|
|
15255
15254
|
}, [
|
|
15256
15255
|
es,
|
|
15257
15256
|
n.appleLoad ? (S(), P("span", ns)) : (S(), P("span", ts, z(n.ssoLang[n.appLanguage].sign_in_with) + " Apple", 1))
|
|
15258
|
-
])) :
|
|
15257
|
+
])) : te("", !0),
|
|
15259
15258
|
n.displayGoogleLogin ? (S(), P("a", {
|
|
15260
15259
|
key: 3,
|
|
15261
15260
|
onClick: e[6] || (e[6] = (...s) => n.googleLogin && n.googleLogin(...s)),
|
|
@@ -15263,7 +15262,7 @@ function Ps(n, e, t, r, o, i) {
|
|
|
15263
15262
|
}, [
|
|
15264
15263
|
rs,
|
|
15265
15264
|
n.googleLoad ? (S(), P("span", is)) : (S(), P("span", os, z(n.ssoLang[n.appLanguage].sign_in_with) + " Google", 1))
|
|
15266
|
-
])) :
|
|
15265
|
+
])) : te("", !0),
|
|
15267
15266
|
n.displayFacebookLogin ? (S(), P("a", {
|
|
15268
15267
|
key: 4,
|
|
15269
15268
|
onClick: e[7] || (e[7] = (...s) => n.facebookLogin && n.facebookLogin(...s)),
|
|
@@ -15271,16 +15270,16 @@ function Ps(n, e, t, r, o, i) {
|
|
|
15271
15270
|
}, [
|
|
15272
15271
|
as,
|
|
15273
15272
|
n.facebookLoad ? (S(), P("span", cs)) : (S(), P("span", ss, z(n.ssoLang[n.appLanguage].sign_in_with) + " Facebook", 1))
|
|
15274
|
-
])) :
|
|
15275
|
-
n.displayMicrosoftSSOLogin ?
|
|
15273
|
+
])) : te("", !0),
|
|
15274
|
+
n.displayMicrosoftSSOLogin ? te("", !0) : (S(), P("a", {
|
|
15276
15275
|
key: 5,
|
|
15277
15276
|
onClick: e[8] || (e[8] = (...s) => n.microsoftLogin && n.microsoftLogin(...s)),
|
|
15278
15277
|
class: "button-center button button-90 google-button pointer"
|
|
15279
15278
|
}, [
|
|
15280
15279
|
ls,
|
|
15281
|
-
n.microsoftLoad ? (S(), P("span",
|
|
15280
|
+
n.microsoftLoad ? (S(), P("span", us)) : (S(), P("span", ds, z(n.ssoLang[n.appLanguage].sign_in_with) + " Outlook", 1))
|
|
15282
15281
|
])),
|
|
15283
|
-
n.displayMicrosoftSSOLogin ?
|
|
15282
|
+
n.displayMicrosoftSSOLogin ? te("", !0) : (S(), P("a", {
|
|
15284
15283
|
key: 6,
|
|
15285
15284
|
onClick: e[9] || (e[9] = (...s) => n.ssoLogin && n.ssoLogin(...s)),
|
|
15286
15285
|
class: "button-center button button-90 google-button pointer"
|
|
@@ -15295,8 +15294,8 @@ function Ps(n, e, t, r, o, i) {
|
|
|
15295
15294
|
}, [
|
|
15296
15295
|
fs,
|
|
15297
15296
|
n.microsoftSSOLoad ? (S(), P("span", gs, z(n.ssoLang[n.appLanguage].sign_in_with) + " SSO", 1)) : (S(), P("span", _s))
|
|
15298
|
-
])) :
|
|
15299
|
-
i.displayFormLogin ?
|
|
15297
|
+
])) : te("", !0),
|
|
15298
|
+
i.displayFormLogin ? te("", !0) : (S(), P("a", {
|
|
15300
15299
|
key: 8,
|
|
15301
15300
|
onClick: e[11] || (e[11] = (s) => o.emailLogin = !0),
|
|
15302
15301
|
class: "button-center button button-90 google-button pointer"
|
|
@@ -15334,7 +15333,7 @@ function Ps(n, e, t, r, o, i) {
|
|
|
15334
15333
|
se(z(n.ssoLang[n.appLanguage].create_account), 1)
|
|
15335
15334
|
]),
|
|
15336
15335
|
_: 1
|
|
15337
|
-
})) :
|
|
15336
|
+
})) : te("", !0),
|
|
15338
15337
|
i.displayResetPasswordLogin ? (S(), qe(a, {
|
|
15339
15338
|
key: 1,
|
|
15340
15339
|
class: "create float-left",
|
|
@@ -15344,7 +15343,7 @@ function Ps(n, e, t, r, o, i) {
|
|
|
15344
15343
|
se(z(n.ssoLang[n.appLanguage].reset_password), 1)
|
|
15345
15344
|
]),
|
|
15346
15345
|
_: 1
|
|
15347
|
-
})) :
|
|
15346
|
+
})) : te("", !0),
|
|
15348
15347
|
Is
|
|
15349
15348
|
]))
|
|
15350
15349
|
], 36);
|
|
@@ -15472,10 +15471,10 @@ const _o = /* @__PURE__ */ We(za, [["render", Ps]]), Ms = {
|
|
|
15472
15471
|
}, cc = /* @__PURE__ */ y("img", {
|
|
15473
15472
|
src: "https://cdn.tapni.co/icons/facebook-blue.png",
|
|
15474
15473
|
style: { position: "absolute", "margin-left": "-10px", padding: "10px 0", height: "100%" }
|
|
15475
|
-
}, null, -1), lc = { key: 0 },
|
|
15474
|
+
}, null, -1), lc = { key: 0 }, dc = {
|
|
15476
15475
|
key: 1,
|
|
15477
15476
|
class: "button--loading button__loader"
|
|
15478
|
-
},
|
|
15477
|
+
}, uc = /* @__PURE__ */ y("img", {
|
|
15479
15478
|
src: "https://cdn.tapni.co/icons/mail.png",
|
|
15480
15479
|
style: { position: "absolute", "margin-left": "-8px", padding: "12px 0", height: "100%" }
|
|
15481
15480
|
}, 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 = {
|
|
@@ -15498,13 +15497,13 @@ function Cc(n, e, t, r, o, i) {
|
|
|
15498
15497
|
onClick: e[0] || (e[0] = (...s) => i.close && i.close(...s)),
|
|
15499
15498
|
class: "color-black pull-right pointer",
|
|
15500
15499
|
style: { "margin-top": "0px", position: "absolute", right: "-20px", "text-align": "right" }
|
|
15501
|
-
}, Ls)) :
|
|
15500
|
+
}, Ls)) : te("", !0),
|
|
15502
15501
|
y("h1", Os, z(n.ssoLang[this.appLanguage].register), 1),
|
|
15503
15502
|
y("p", zs, [
|
|
15504
15503
|
o.usernameRegister ? (S(), P("span", Us, [
|
|
15505
15504
|
se(" t.link/" + z(o.username) + " " + z(n.ssoLang[this.appLanguage].username_is_free) + " ✅ ", 1),
|
|
15506
15505
|
xs
|
|
15507
|
-
])) :
|
|
15506
|
+
])) : te("", !0)
|
|
15508
15507
|
]),
|
|
15509
15508
|
o.emailLogin ? (S(), P("span", Bs, [
|
|
15510
15509
|
y("div", Ds, [
|
|
@@ -15552,7 +15551,7 @@ function Cc(n, e, t, r, o, i) {
|
|
|
15552
15551
|
required: "",
|
|
15553
15552
|
minlength: "8"
|
|
15554
15553
|
}, null, 8, Ws), [
|
|
15555
|
-
[
|
|
15554
|
+
[un, o.password]
|
|
15556
15555
|
]),
|
|
15557
15556
|
y("em", {
|
|
15558
15557
|
onClick: e[6] || (e[6] = (s) => o.revealPassword = !o.revealPassword),
|
|
@@ -15569,7 +15568,7 @@ function Cc(n, e, t, r, o, i) {
|
|
|
15569
15568
|
y("button", Xs, [
|
|
15570
15569
|
o.submitted ? (S(), P("span", ec)) : (S(), P("span", Zs, z(o.formButtonText), 1))
|
|
15571
15570
|
])
|
|
15572
|
-
])) :
|
|
15571
|
+
])) : te("", !0),
|
|
15573
15572
|
tc,
|
|
15574
15573
|
n.displayAppleLogin ? (S(), P("a", {
|
|
15575
15574
|
key: 2,
|
|
@@ -15578,7 +15577,7 @@ function Cc(n, e, t, r, o, i) {
|
|
|
15578
15577
|
}, [
|
|
15579
15578
|
nc,
|
|
15580
15579
|
n.appleLoad ? (S(), P("span", oc)) : (S(), P("span", rc, z(n.ssoLang[this.appLanguage].sign_up_with) + " Apple", 1))
|
|
15581
|
-
])) :
|
|
15580
|
+
])) : te("", !0),
|
|
15582
15581
|
y("a", {
|
|
15583
15582
|
onClick: e[8] || (e[8] = (...s) => n.googleLogin && n.googleLogin(...s)),
|
|
15584
15583
|
class: "button-center button button-90 google-button pointer"
|
|
@@ -15592,14 +15591,14 @@ function Cc(n, e, t, r, o, i) {
|
|
|
15592
15591
|
class: "button-center button button-90 google-button pointer"
|
|
15593
15592
|
}, [
|
|
15594
15593
|
cc,
|
|
15595
|
-
n.facebookLoad ? (S(), P("span",
|
|
15596
|
-
])) :
|
|
15597
|
-
o.emailLogin ?
|
|
15594
|
+
n.facebookLoad ? (S(), P("span", dc)) : (S(), P("span", lc, z(n.ssoLang[this.appLanguage].sign_up_with) + " Facebook", 1))
|
|
15595
|
+
])) : te("", !0),
|
|
15596
|
+
o.emailLogin ? te("", !0) : (S(), P("a", {
|
|
15598
15597
|
key: 4,
|
|
15599
15598
|
onClick: e[10] || (e[10] = (s) => o.emailLogin = !0),
|
|
15600
15599
|
class: "button-center button button-90 google-button pointer"
|
|
15601
15600
|
}, [
|
|
15602
|
-
|
|
15601
|
+
uc,
|
|
15603
15602
|
y("span", null, z(n.ssoLang[this.appLanguage].sign_up_with) + " Email", 1)
|
|
15604
15603
|
])),
|
|
15605
15604
|
pc,
|
|
@@ -15756,7 +15755,7 @@ function $c(n, e, t, r, o, i) {
|
|
|
15756
15755
|
onClick: e[0] || (e[0] = (...s) => i.close && i.close(...s)),
|
|
15757
15756
|
class: "color-black pull-right pointer",
|
|
15758
15757
|
style: { "margin-top": "0px", position: "absolute", right: "-20px", "text-align": "right" }
|
|
15759
|
-
}, Ic)) :
|
|
15758
|
+
}, Ic)) : te("", !0),
|
|
15760
15759
|
y("h1", Sc, z(n.ssoLang[this.appLanguage].verify_account), 1),
|
|
15761
15760
|
Ac,
|
|
15762
15761
|
y("div", Rc, [
|
|
@@ -15906,7 +15905,7 @@ const yo = /* @__PURE__ */ We(Ec, [["render", $c], ["__scopeId", "data-v-75db7f0
|
|
|
15906
15905
|
}, al = {
|
|
15907
15906
|
key: 1,
|
|
15908
15907
|
class: "button--loading button__loader"
|
|
15909
|
-
}, 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"],
|
|
15908
|
+
}, 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"], dl = ["href"], ul = /* @__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 = {
|
|
15910
15909
|
class: "bold no-bottom center-text",
|
|
15911
15910
|
style: { "margin-top": "63px" }
|
|
15912
15911
|
}, 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" } }, [
|
|
@@ -15960,7 +15959,7 @@ function Ll(n, e, t, r, o, i) {
|
|
|
15960
15959
|
placeholder: n.ssoLang[this.appLanguage].password,
|
|
15961
15960
|
required: ""
|
|
15962
15961
|
}, null, 8, vl), [
|
|
15963
|
-
[
|
|
15962
|
+
[un, o.password]
|
|
15964
15963
|
]),
|
|
15965
15964
|
y("em", {
|
|
15966
15965
|
onClick: e[4] || (e[4] = (s) => o.revealPassword = !o.revealPassword)
|
|
@@ -15981,7 +15980,7 @@ function Ll(n, e, t, r, o, i) {
|
|
|
15981
15980
|
placeholder: n.ssoLang[this.appLanguage].password_repeat,
|
|
15982
15981
|
required: ""
|
|
15983
15982
|
}, null, 8, Cl), [
|
|
15984
|
-
[
|
|
15983
|
+
[un, o.passwordRepeat]
|
|
15985
15984
|
]),
|
|
15986
15985
|
y("em", {
|
|
15987
15986
|
onClick: e[6] || (e[6] = (s) => o.revealPassword2 = !o.revealPassword2)
|
|
@@ -16040,9 +16039,9 @@ function Ll(n, e, t, r, o, i) {
|
|
|
16040
16039
|
}, null, 8, ll),
|
|
16041
16040
|
y("a", {
|
|
16042
16041
|
href: "mailto:support@tapni.com?subject=" + n.ssoLang[this.appLanguage].password_reset_t
|
|
16043
|
-
}, " support@tapni.com", 8,
|
|
16042
|
+
}, " support@tapni.com", 8, dl)
|
|
16044
16043
|
]),
|
|
16045
|
-
|
|
16044
|
+
ul,
|
|
16046
16045
|
y("div", pl, [
|
|
16047
16046
|
ke(a, {
|
|
16048
16047
|
class: "create float-right",
|
|
@@ -16273,29 +16272,29 @@ const Co = /* @__PURE__ */ We(Fl, [["render", Jl], ["__scopeId", "data-v-11f19a0
|
|
|
16273
16272
|
class: "responsive-image",
|
|
16274
16273
|
style: { width: "45%" }
|
|
16275
16274
|
})
|
|
16276
|
-
], -1)),
|
|
16275
|
+
], -1)), ed = [
|
|
16277
16276
|
Zl
|
|
16278
|
-
],
|
|
16277
|
+
], td = { class: "bold center-text color-black half-top half-bottom" }, nd = /* @__PURE__ */ Nn(() => /* @__PURE__ */ y("img", {
|
|
16279
16278
|
src: "https://cdn.tapni.co/icons/azure.png",
|
|
16280
16279
|
style: { position: "absolute", "margin-left": "-11px", padding: "8px 0", height: "100%" }
|
|
16281
|
-
}, null, -1)),
|
|
16280
|
+
}, null, -1)), rd = { key: 0 }, od = {
|
|
16282
16281
|
key: 1,
|
|
16283
16282
|
class: "button--loading button__loader"
|
|
16284
|
-
},
|
|
16283
|
+
}, id = /* @__PURE__ */ Nn(() => /* @__PURE__ */ y("img", {
|
|
16285
16284
|
src: "https://cdn.tapni.co/icons/okta.png",
|
|
16286
16285
|
style: { position: "absolute", "margin-left": "-11px", padding: "8px 0", height: "100%" }
|
|
16287
|
-
}, null, -1)),
|
|
16286
|
+
}, null, -1)), ad = { key: 0 }, sd = {
|
|
16288
16287
|
key: 1,
|
|
16289
16288
|
class: "button--loading button__loader"
|
|
16290
|
-
},
|
|
16289
|
+
}, cd = /* @__PURE__ */ Nn(() => /* @__PURE__ */ y("img", {
|
|
16291
16290
|
src: "https://cdn.tapni.co/icons/saml.png",
|
|
16292
16291
|
style: { position: "absolute", "margin-left": "-11px", padding: "8px 0", height: "100%" }
|
|
16293
|
-
}, null, -1)),
|
|
16292
|
+
}, null, -1)), ld = { key: 0 }, dd = {
|
|
16294
16293
|
key: 1,
|
|
16295
16294
|
class: "button--loading button__loader"
|
|
16296
16295
|
};
|
|
16297
|
-
function
|
|
16298
|
-
var a, s,
|
|
16296
|
+
function ud(n, e, t, r, o, i) {
|
|
16297
|
+
var a, s, d;
|
|
16299
16298
|
return S(), P("form", {
|
|
16300
16299
|
onSubmit: e[4] || (e[4] = Oe(() => {
|
|
16301
16300
|
}, ["prevent"])),
|
|
@@ -16306,35 +16305,35 @@ function du(n, e, t, r, o, i) {
|
|
|
16306
16305
|
onClick: e[0] || (e[0] = (...p) => i.forceClose && i.forceClose(...p)),
|
|
16307
16306
|
class: "color-black pull-right pointer",
|
|
16308
16307
|
style: { "margin-top": "5px", position: "absolute", right: "5px" }
|
|
16309
|
-
},
|
|
16310
|
-
y("h3",
|
|
16308
|
+
}, ed),
|
|
16309
|
+
y("h3", td, z(n.ssoLang[n.appLanguage].select_sign_method), 1),
|
|
16311
16310
|
(a = o.sso) != null && a.azure ? (S(), P("a", {
|
|
16312
16311
|
key: 0,
|
|
16313
16312
|
onClick: e[1] || (e[1] = (p) => i.ssoLogin("azure")),
|
|
16314
16313
|
class: "button-center button black-button button-90 google-button pointer"
|
|
16315
16314
|
}, [
|
|
16316
|
-
|
|
16317
|
-
o.azureLoad ? (S(), P("span",
|
|
16318
|
-
])) :
|
|
16315
|
+
nd,
|
|
16316
|
+
o.azureLoad ? (S(), P("span", od)) : (S(), P("span", rd, z(n.ssoLang[n.appLanguage].sign_in_with) + " Azure", 1))
|
|
16317
|
+
])) : te("", !0),
|
|
16319
16318
|
(s = o.sso) != null && s.okta ? (S(), P("a", {
|
|
16320
16319
|
key: 1,
|
|
16321
16320
|
onClick: e[2] || (e[2] = (p) => i.ssoLogin("okta")),
|
|
16322
16321
|
class: "button-center button black-button button-90 google-button pointer"
|
|
16323
16322
|
}, [
|
|
16324
|
-
|
|
16325
|
-
o.oktaLoad ? (S(), P("span",
|
|
16326
|
-
])) :
|
|
16327
|
-
(
|
|
16323
|
+
id,
|
|
16324
|
+
o.oktaLoad ? (S(), P("span", sd)) : (S(), P("span", ad, z(n.ssoLang[n.appLanguage].sign_in_with) + " Okta", 1))
|
|
16325
|
+
])) : te("", !0),
|
|
16326
|
+
(d = o.sso) != null && d.saml ? (S(), P("a", {
|
|
16328
16327
|
key: 2,
|
|
16329
16328
|
onClick: e[3] || (e[3] = (p) => i.ssoLogin("saml")),
|
|
16330
16329
|
class: "button-center button black-button button-90 google-button pointer"
|
|
16331
16330
|
}, [
|
|
16332
|
-
|
|
16333
|
-
o.samlLoad ? (S(), P("span",
|
|
16334
|
-
])) :
|
|
16331
|
+
cd,
|
|
16332
|
+
o.samlLoad ? (S(), P("span", dd)) : (S(), P("span", ld, z(n.ssoLang[n.appLanguage].sign_in_with) + " SAML", 1))
|
|
16333
|
+
])) : te("", !0)
|
|
16335
16334
|
], 34);
|
|
16336
16335
|
}
|
|
16337
|
-
const Eo = /* @__PURE__ */ We(Xl, [["render",
|
|
16336
|
+
const Eo = /* @__PURE__ */ We(Xl, [["render", ud], ["__scopeId", "data-v-4f821f65"]]), pd = {
|
|
16338
16337
|
name: "LinkIcon",
|
|
16339
16338
|
mixins: [ze],
|
|
16340
16339
|
props: {
|
|
@@ -16406,8 +16405,8 @@ const Eo = /* @__PURE__ */ We(Xl, [["render", du], ["__scopeId", "data-v-4f821f6
|
|
|
16406
16405
|
}
|
|
16407
16406
|
},
|
|
16408
16407
|
methods: {}
|
|
16409
|
-
},
|
|
16410
|
-
function
|
|
16408
|
+
}, hd = ["src", "alt"], md = ["src", "alt"], fd = ["src", "alt"], gd = ["src", "alt"];
|
|
16409
|
+
function _d(n, e, t, r, o, i) {
|
|
16411
16410
|
var a, s;
|
|
16412
16411
|
return S(), P("a", {
|
|
16413
16412
|
class: Ie(["disable-select", t.linkStyle + (t.disabled ? " opacity-50" : "")]),
|
|
@@ -16428,31 +16427,31 @@ function _u(n, e, t, r, o, i) {
|
|
|
16428
16427
|
src: "https://cdn.tapni.co/icons/" + t.data.type + ".png",
|
|
16429
16428
|
class: "responsive-image",
|
|
16430
16429
|
alt: t.data.text,
|
|
16431
|
-
onLoad: e[0] || (e[0] = (
|
|
16432
|
-
onError: e[1] || (e[1] = (
|
|
16433
|
-
}, null, 40,
|
|
16430
|
+
onLoad: e[0] || (e[0] = (d) => n.$emit("loaded")),
|
|
16431
|
+
onError: e[1] || (e[1] = (d) => n.$emit("loaded"))
|
|
16432
|
+
}, null, 40, hd)) : !t.data.custom_icon && t.data.type === "customlink" && t.linkAdding ? (S(), P("img", {
|
|
16434
16433
|
key: 1,
|
|
16435
16434
|
src: "https://cdn.tapni.co/icons/custom-icon-128.gif",
|
|
16436
16435
|
class: "responsive-image",
|
|
16437
16436
|
alt: t.data.text,
|
|
16438
|
-
onLoad: e[2] || (e[2] = (
|
|
16439
|
-
onError: e[3] || (e[3] = (
|
|
16440
|
-
}, null, 40,
|
|
16437
|
+
onLoad: e[2] || (e[2] = (d) => n.$emit("loaded")),
|
|
16438
|
+
onError: e[3] || (e[3] = (d) => n.$emit("loaded"))
|
|
16439
|
+
}, null, 40, md)) : !t.data.custom_icon && t.data.type === "customlink" && !t.linkAdding ? (S(), P("img", {
|
|
16441
16440
|
key: 2,
|
|
16442
16441
|
src: "https://cdn.tapni.co/icons/customlink.png",
|
|
16443
16442
|
class: "responsive-image",
|
|
16444
16443
|
alt: t.data.text,
|
|
16445
|
-
onLoad: e[4] || (e[4] = (
|
|
16446
|
-
onError: e[5] || (e[5] = (
|
|
16447
|
-
}, null, 40,
|
|
16444
|
+
onLoad: e[4] || (e[4] = (d) => n.$emit("loaded")),
|
|
16445
|
+
onError: e[5] || (e[5] = (d) => n.$emit("loaded"))
|
|
16446
|
+
}, null, 40, fd)) : (S(), P("img", {
|
|
16448
16447
|
key: 3,
|
|
16449
16448
|
src: t.data.style.custom_icon,
|
|
16450
16449
|
style: { "border-radius": "22.46%" },
|
|
16451
16450
|
class: "responsive-image",
|
|
16452
16451
|
alt: t.data.text,
|
|
16453
|
-
onLoad: e[6] || (e[6] = (
|
|
16454
|
-
onError: e[7] || (e[7] = (
|
|
16455
|
-
}, null, 40,
|
|
16452
|
+
onLoad: e[6] || (e[6] = (d) => n.$emit("loaded")),
|
|
16453
|
+
onError: e[7] || (e[7] = (d) => n.$emit("loaded"))
|
|
16454
|
+
}, null, 40, gd))
|
|
16456
16455
|
], 6),
|
|
16457
16456
|
y("span", {
|
|
16458
16457
|
class: "link-text link-drag color-black",
|
|
@@ -16460,17 +16459,17 @@ function _u(n, e, t, r, o, i) {
|
|
|
16460
16459
|
}, z(i.linkText), 5)
|
|
16461
16460
|
], 6);
|
|
16462
16461
|
}
|
|
16463
|
-
const
|
|
16462
|
+
const vd = /* @__PURE__ */ We(pd, [["render", _d]]), yd = {
|
|
16464
16463
|
ANDROID_VERSION: "5.6",
|
|
16465
16464
|
IOS_VERSION: "5.6",
|
|
16466
16465
|
WEB_VERSION: "5.6.0",
|
|
16467
16466
|
SUPPORTED_LANGUAGES: ["en", "de", "es", "kr", "it", "fr"],
|
|
16468
16467
|
METAPIXEL_ID: "1203678696914368",
|
|
16469
16468
|
GOOGLE_ANALYTICS_ID: ""
|
|
16470
|
-
},
|
|
16469
|
+
}, kd = {
|
|
16471
16470
|
name: "Language",
|
|
16472
16471
|
mixins: [ze],
|
|
16473
|
-
components: { LinkIcon:
|
|
16472
|
+
components: { LinkIcon: vd },
|
|
16474
16473
|
data() {
|
|
16475
16474
|
return {
|
|
16476
16475
|
toggle: !1
|
|
@@ -16481,7 +16480,7 @@ const vu = /* @__PURE__ */ We(pu, [["render", _u]]), yu = {
|
|
|
16481
16480
|
this.toggle = !1;
|
|
16482
16481
|
});
|
|
16483
16482
|
let n = this.isNative ? await pn.getLanguageCode() : Ut.getFirstBrowserLanguage();
|
|
16484
|
-
n &&
|
|
16483
|
+
n && yd.SUPPORTED_LANGUAGES.includes(n) && this.updateLanguage(n);
|
|
16485
16484
|
},
|
|
16486
16485
|
beforeDestroy() {
|
|
16487
16486
|
U._events.toggleLanguageModal.pop();
|
|
@@ -16500,16 +16499,16 @@ const vu = /* @__PURE__ */ We(pu, [["render", _u]]), yu = {
|
|
|
16500
16499
|
this.toggle = !this.toggle;
|
|
16501
16500
|
}
|
|
16502
16501
|
}
|
|
16503
|
-
},
|
|
16502
|
+
}, wd = (n) => (Ht("data-v-34a6b7b2"), n = n(), qt(), n), bd = /* @__PURE__ */ wd(() => /* @__PURE__ */ y("i", { class: "font-17 fa color-black" }, [
|
|
16504
16503
|
/* @__PURE__ */ y("img", {
|
|
16505
16504
|
src: "https://cdn.tapni.co/icons/down-arrow.png",
|
|
16506
16505
|
class: "fa responsive-image",
|
|
16507
16506
|
style: { width: "45%" }
|
|
16508
16507
|
})
|
|
16509
|
-
], -1)),
|
|
16510
|
-
|
|
16511
|
-
],
|
|
16512
|
-
function
|
|
16508
|
+
], -1)), Cd = [
|
|
16509
|
+
bd
|
|
16510
|
+
], Ed = { class: "bold center-text color-black small-bottom" };
|
|
16511
|
+
function Td(n, e, t, r, o, i) {
|
|
16513
16512
|
const a = Dt("LinkIcon");
|
|
16514
16513
|
return S(), P("div", {
|
|
16515
16514
|
class: Ie(["menu-wrapper menu-light menu-white menu-modal center-text activate-page", { "active-menu": o.toggle }]),
|
|
@@ -16519,8 +16518,8 @@ function Tu(n, e, t, r, o, i) {
|
|
|
16519
16518
|
onClick: e[0] || (e[0] = (...s) => i.close && i.close(...s)),
|
|
16520
16519
|
class: "color-black pull-right pointer",
|
|
16521
16520
|
style: { "margin-top": "5px", position: "absolute", right: "5px" }
|
|
16522
|
-
},
|
|
16523
|
-
y("h3",
|
|
16521
|
+
}, Cd),
|
|
16522
|
+
y("h3", Ed, z(n.ssoLang[n.appLanguage].app_language), 1),
|
|
16524
16523
|
ke(a, {
|
|
16525
16524
|
onClick: e[1] || (e[1] = (s) => i.updateLanguage("en")),
|
|
16526
16525
|
"link-style": "link-grid",
|
|
@@ -16579,38 +16578,38 @@ function Tu(n, e, t, r, o, i) {
|
|
|
16579
16578
|
}, null, 8, ["data"])
|
|
16580
16579
|
], 2);
|
|
16581
16580
|
}
|
|
16582
|
-
const To = /* @__PURE__ */ We(
|
|
16583
|
-
var
|
|
16584
|
-
const
|
|
16581
|
+
const To = /* @__PURE__ */ We(kd, [["render", Td], ["__scopeId", "data-v-34a6b7b2"]]);
|
|
16582
|
+
var Id = { 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 };
|
|
16583
|
+
const Sd = { id: "ssoapp" }, Ad = {
|
|
16585
16584
|
key: 0,
|
|
16586
16585
|
href: "/",
|
|
16587
16586
|
class: "header-logo"
|
|
16588
|
-
},
|
|
16587
|
+
}, Rd = /* @__PURE__ */ y("img", {
|
|
16589
16588
|
src: "data:image/png;base64,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",
|
|
16590
16589
|
onerror: "this.onerror=null;this.src='https://cdn.tapni.co/images/logo-dark.png';",
|
|
16591
16590
|
class: "header-logo-img"
|
|
16592
|
-
}, null, -1),
|
|
16593
|
-
|
|
16594
|
-
],
|
|
16591
|
+
}, null, -1), Pd = [
|
|
16592
|
+
Rd
|
|
16593
|
+
], Md = { class: "lang-icon" }, Nd = {
|
|
16595
16594
|
class: "snackbar snackbar-boxed",
|
|
16596
16595
|
id: "snackbar"
|
|
16597
|
-
},
|
|
16596
|
+
}, Ld = {
|
|
16598
16597
|
class: "snack-body",
|
|
16599
16598
|
id: "errorSnack"
|
|
16600
|
-
},
|
|
16599
|
+
}, Od = { id: "errorMessage" }, zd = /* @__PURE__ */ y("img", {
|
|
16601
16600
|
src: "https://cdn.tapni.co/icons/notification-close.png",
|
|
16602
16601
|
style: { width: "100%" }
|
|
16603
|
-
}, null, -1),
|
|
16604
|
-
|
|
16605
|
-
],
|
|
16602
|
+
}, null, -1), Ud = [
|
|
16603
|
+
zd
|
|
16604
|
+
], xd = {
|
|
16606
16605
|
class: "snack-body",
|
|
16607
16606
|
id: "successSnack"
|
|
16608
|
-
},
|
|
16607
|
+
}, Bd = { id: "successMessage" }, Dd = /* @__PURE__ */ y("img", {
|
|
16609
16608
|
src: "https://cdn.tapni.co/icons/notification-close.png",
|
|
16610
16609
|
style: { width: "100%" }
|
|
16611
|
-
}, null, -1),
|
|
16612
|
-
|
|
16613
|
-
],
|
|
16610
|
+
}, null, -1), Hd = [
|
|
16611
|
+
Dd
|
|
16612
|
+
], qd = {
|
|
16614
16613
|
name: "TapniAuth",
|
|
16615
16614
|
mixins: [ze],
|
|
16616
16615
|
data() {
|
|
@@ -16654,7 +16653,7 @@ const Su = { id: "ssoapp" }, Au = {
|
|
|
16654
16653
|
return;
|
|
16655
16654
|
this.isSetup = !0, this.setToken(this.$storage.token);
|
|
16656
16655
|
const n = this.getRefreshTokens();
|
|
16657
|
-
this.setRefreshToken(n[0]), await this.getLoggedInAccounts(), this.$emit("ssoLibraryReady", this.$storage);
|
|
16656
|
+
this.setRefreshToken(n[0]), await this.getLoggedInAccounts(n), this.$emit("ssoLibraryReady", this.$storage);
|
|
16658
16657
|
},
|
|
16659
16658
|
ssoOutgoingEvent(n) {
|
|
16660
16659
|
this.$emit("ssoEvent", n);
|
|
@@ -16677,25 +16676,25 @@ const Su = { id: "ssoapp" }, Au = {
|
|
|
16677
16676
|
n && this.display === "npm" && this.init();
|
|
16678
16677
|
}
|
|
16679
16678
|
}
|
|
16680
|
-
}, Hr = /* @__PURE__ */ Object.assign(
|
|
16679
|
+
}, Hr = /* @__PURE__ */ Object.assign(qd, {
|
|
16681
16680
|
setup(n) {
|
|
16682
16681
|
return document.addEventListener("DOMContentLoaded", function() {
|
|
16683
16682
|
const e = document.createElement("script");
|
|
16684
|
-
e.src = `https://www.google.com/recaptcha/api.js?render=${
|
|
16685
|
-
}), (e, t) => (S(), P("div",
|
|
16686
|
-
e.display === "redirect" ? (S(), P("a",
|
|
16683
|
+
e.src = `https://www.google.com/recaptcha/api.js?render=${Id.VITE_GOOGLE_RECAPTCHA_SITE_KEY}`, document.head.appendChild(e);
|
|
16684
|
+
}), (e, t) => (S(), P("div", Sd, [
|
|
16685
|
+
e.display === "redirect" ? (S(), P("a", Ad, Pd)) : te("", !0),
|
|
16687
16686
|
e.display === "redirect" ? (S(), P("a", {
|
|
16688
16687
|
key: 1,
|
|
16689
16688
|
onClick: t[0] || (t[0] = (...r) => e.toggleLanguageModal && e.toggleLanguageModal(...r)),
|
|
16690
16689
|
class: "font-18 no-border pointer color-black",
|
|
16691
16690
|
style: { position: "absolute", right: "20px", top: "-10px", "z-index": "1" }
|
|
16692
16691
|
}, [
|
|
16693
|
-
y("span",
|
|
16694
|
-
])) :
|
|
16692
|
+
y("span", Md, z(e.appLanguage.toUpperCase()), 1)
|
|
16693
|
+
])) : te("", !0),
|
|
16695
16694
|
ke(bo),
|
|
16696
|
-
n.isModal ?
|
|
16697
|
-
n.isModal ?
|
|
16698
|
-
n.isModal ?
|
|
16695
|
+
n.isModal ? te("", !0) : (S(), qe(To, { key: 2 })),
|
|
16696
|
+
n.isModal ? te("", !0) : (S(), qe(Co, { key: 3 })),
|
|
16697
|
+
n.isModal ? te("", !0) : (S(), qe(Eo, { key: 4 })),
|
|
16699
16698
|
e.initialized && e.renderView === "AuthWelcome" ? (S(), qe(Jr, { key: 5 })) : e.initialized && e.renderView === "AuthLogin" ? (S(), qe(_o, {
|
|
16700
16699
|
key: 6,
|
|
16701
16700
|
isModal: n.isModal
|
|
@@ -16705,29 +16704,26 @@ const Su = { id: "ssoapp" }, Au = {
|
|
|
16705
16704
|
}, null, 8, ["isModal"])) : e.initialized && e.renderView === "AuthVerify" ? (S(), qe(yo, {
|
|
16706
16705
|
key: 8,
|
|
16707
16706
|
isModal: n.isModal
|
|
16708
|
-
}, null, 8, ["isModal"])) : e.initialized && e.renderView === "AuthReset" ? (S(), qe(ko, { key: 9 })) : e.initialized && e.renderView === "AuthCallback" ? (S(), qe(wo, { key: 10 })) : (S(), qe(Qo(Yo), {
|
|
16709
|
-
|
|
16710
|
-
|
|
16711
|
-
|
|
16712
|
-
y("div", Nu, [
|
|
16713
|
-
y("p", Lu, [
|
|
16714
|
-
y("span", Ou, z(e.ssoLang[e.appLanguage].error), 1),
|
|
16707
|
+
}, 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 })) : te("", !0),
|
|
16708
|
+
y("div", Nd, [
|
|
16709
|
+
y("p", Ld, [
|
|
16710
|
+
y("span", Od, z(e.ssoLang[e.appLanguage].error), 1),
|
|
16715
16711
|
y("a", {
|
|
16716
16712
|
onClick: t[1] || (t[1] = (...r) => e.closeSnacks && e.closeSnacks(...r)),
|
|
16717
16713
|
style: { position: "absolute", right: "10px", top: "10px", width: "50px", height: "50px" }
|
|
16718
|
-
},
|
|
16714
|
+
}, Ud)
|
|
16719
16715
|
]),
|
|
16720
|
-
y("p",
|
|
16721
|
-
y("span",
|
|
16716
|
+
y("p", xd, [
|
|
16717
|
+
y("span", Bd, z(e.ssoLang[e.appLanguage].success), 1),
|
|
16722
16718
|
y("a", {
|
|
16723
16719
|
onClick: t[2] || (t[2] = (...r) => e.closeSnacks && e.closeSnacks(...r)),
|
|
16724
16720
|
style: { position: "absolute", right: "10px", top: "10px", width: "50px", height: "50px" }
|
|
16725
|
-
},
|
|
16721
|
+
}, Hd)
|
|
16726
16722
|
])
|
|
16727
16723
|
])
|
|
16728
16724
|
]));
|
|
16729
16725
|
}
|
|
16730
|
-
}),
|
|
16726
|
+
}), Zd = {
|
|
16731
16727
|
TapniAuth: Hr,
|
|
16732
16728
|
AuthMixin: ze,
|
|
16733
16729
|
install: (n, e) => {
|
|
@@ -16735,5 +16731,5 @@ const Su = { id: "ssoapp" }, Au = {
|
|
|
16735
16731
|
}
|
|
16736
16732
|
};
|
|
16737
16733
|
export {
|
|
16738
|
-
|
|
16734
|
+
Zd as default
|
|
16739
16735
|
};
|