@tapni/auth 1.0.31 → 1.0.32
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/.vite/manifest.json +12 -12
- package/dist/{Apps-DyqTyifK.js → Apps-Cv7avCHq.js} +1 -1
- package/dist/{Billing-lPnJ1Xhe.js → Billing-omz6Qf60.js} +1 -1
- package/dist/{CustomApp-Bqp5EHVn.js → CustomApp-BHP2lUPX.js} +1 -1
- package/dist/{General-BPsKKx1X.js → General-BjfncFzK.js} +1 -1
- package/dist/{QR-hOamVvk4.js → QR-CRJQNQr7.js} +1 -1
- package/dist/TapniAuth.es.js +1 -1
- package/dist/TapniAuth.umd.js +2 -2
- package/dist/{install-0ubEwhSL.js → install-DBv1zzk3.js} +6 -5
- package/package.json +1 -1
- package/src/mixins/saml.mixin.js +6 -4
|
@@ -1390,7 +1390,7 @@ function aa(n, e, t, r, o, i) {
|
|
|
1390
1390
|
const ro = /* @__PURE__ */ pn(Zi, [["render", aa], ["__scopeId", "data-v-cb61958b"]]), sa = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1391
1391
|
__proto__: null,
|
|
1392
1392
|
default: ro
|
|
1393
|
-
}, Symbol.toStringTag, { value: "Module" })), ca = "1.0.
|
|
1393
|
+
}, Symbol.toStringTag, { value: "Module" })), ca = "1.0.32", ar = {
|
|
1394
1394
|
getMe() {
|
|
1395
1395
|
return le().get("/users/me");
|
|
1396
1396
|
},
|
|
@@ -5824,7 +5824,7 @@ Tanıştığınız herkesi etkileyin 😎 <br> Kendinize bir tane ayırın 👇`
|
|
|
5824
5824
|
app_region: "지역",
|
|
5825
5825
|
app_region_p: "맞춤형 결제 및 지원을 위해 지역을 선택하세요"
|
|
5826
5826
|
}
|
|
5827
|
-
}, ko = () => Promise.resolve().then(() => sa), ua = () => Promise.resolve().then(() => uc), da = () => Promise.resolve().then(() => rl), pa = () => Promise.resolve().then(() => Qu), ha = () => Promise.resolve().then(() => Pc), fa = () => Promise.resolve().then(() => vl), ma = () => Promise.resolve().then(() => Zu), ga = () => import("./QR-
|
|
5827
|
+
}, ko = () => Promise.resolve().then(() => sa), ua = () => Promise.resolve().then(() => uc), da = () => Promise.resolve().then(() => rl), pa = () => Promise.resolve().then(() => Qu), ha = () => Promise.resolve().then(() => Pc), fa = () => Promise.resolve().then(() => vl), ma = () => Promise.resolve().then(() => Zu), ga = () => import("./QR-CRJQNQr7.js"), _a = () => Promise.resolve().then(() => vu), va = () => import("./Apps-Cv7avCHq.js"), ya = () => import("./Billing-omz6Qf60.js"), wa = () => import("./CustomApp-BHP2lUPX.js"), ba = () => import("./General-BjfncFzK.js"), ka = [
|
|
5828
5828
|
{
|
|
5829
5829
|
path: "/welcome",
|
|
5830
5830
|
name: "AuthWelcome",
|
|
@@ -15479,10 +15479,11 @@ const Ps = Er("MsAuthPlugin", {
|
|
|
15479
15479
|
}
|
|
15480
15480
|
},
|
|
15481
15481
|
async samlLogin(n) {
|
|
15482
|
-
console.log("SAMLLL2", n), this.code_verifier = $n.generateRandomString(28), localStorage.setItem("pkce_code_verifier", this.code_verifier), this.code_challenge = await $n.pkceChallengeFromVerifier(this.code_verifier);
|
|
15482
|
+
console.log("SAMLLL2", n), this.code_verifier = $n.generateRandomString(28), localStorage.setItem("pkce_code_verifier", this.code_verifier), console.log("SAMLLL2.1"), this.code_challenge = await $n.pkceChallengeFromVerifier(this.code_verifier), console.log("SAMLLL2.2");
|
|
15483
15483
|
const e = Hn.getPlatform();
|
|
15484
|
+
console.log("SAMLLL2.3");
|
|
15484
15485
|
let t = `code_challenge=${this.code_challenge}&platform=${e}&redirect_uri=${location.origin + "/app/callback/saml"}&realm=${this.realm}&display=${this.display}`, r = btoa(t);
|
|
15485
|
-
n = `${n}&RelayState=${r}`;
|
|
15486
|
+
console.log("SAMLLL2.4"), n = `${n}&RelayState=${r}`;
|
|
15486
15487
|
let o = this;
|
|
15487
15488
|
window.addEventListener(
|
|
15488
15489
|
"message",
|
|
@@ -15497,7 +15498,7 @@ const Ps = Er("MsAuthPlugin", {
|
|
|
15497
15498
|
}
|
|
15498
15499
|
},
|
|
15499
15500
|
{ once: !0 }
|
|
15500
|
-
), this.isNative ? (console.log("SAMLLL3"), this.popupWindow = await dr.open({ url: n, presentationStyle: "popover" }), console.log("SAMLLL4")) : (this.checkInterval = setInterval(() => {
|
|
15501
|
+
), console.log("SAMLLL2.5"), console.log("SAMLLL2.6-NATIVE" + this.isNative), this.isNative ? (console.log("SAMLLL3"), this.popupWindow = await dr.open({ url: n, presentationStyle: "popover" }), console.log("SAMLLL4")) : (this.checkInterval = setInterval(() => {
|
|
15501
15502
|
var s;
|
|
15502
15503
|
const i = localStorage.getItem("auth_code"), a = localStorage.getItem("pkce_code_verifier");
|
|
15503
15504
|
i && (clearInterval(this.checkInterval), localStorage.removeItem("auth_code"), localStorage.removeItem("pkce_code_verifier"), (s = window.parent) == null || s.postMessage({ code: i, state: this.$route.query.state, code_verifier: a }, "*"), a && (this.display === "npm" || this.display === "redirect") && this.exchangeAuthCode({ code: i, code_verifier: a }));
|
package/package.json
CHANGED
package/src/mixins/saml.mixin.js
CHANGED
|
@@ -35,16 +35,16 @@ export default {
|
|
|
35
35
|
// Create and store a new PKCE code_verifier (the plaintext random secret)
|
|
36
36
|
this.code_verifier = UtilService.generateRandomString(28);
|
|
37
37
|
localStorage.setItem("pkce_code_verifier", this.code_verifier);
|
|
38
|
-
|
|
38
|
+
console.log('SAMLLL2.1');
|
|
39
39
|
// Hash and base64-urlencode the secret to use as the challenge
|
|
40
40
|
this.code_challenge = await UtilService.pkceChallengeFromVerifier(this.code_verifier);
|
|
41
|
-
|
|
41
|
+
console.log('SAMLLL2.2');
|
|
42
42
|
const platform = Capacitor.getPlatform();
|
|
43
|
-
|
|
43
|
+
console.log('SAMLLL2.3');
|
|
44
44
|
// append public key as relayState
|
|
45
45
|
let dataString = `code_challenge=${this.code_challenge}&platform=${platform}&redirect_uri=${location.origin + '/app/callback/saml'}&realm=${this.realm}&display=${this.display}`;
|
|
46
46
|
let relayState = btoa(dataString);
|
|
47
|
-
|
|
47
|
+
console.log('SAMLLL2.4');
|
|
48
48
|
loginUrl = `${loginUrl}&RelayState=${relayState}`
|
|
49
49
|
|
|
50
50
|
let self = this;
|
|
@@ -67,6 +67,8 @@ export default {
|
|
|
67
67
|
},
|
|
68
68
|
{ once: true }
|
|
69
69
|
);
|
|
70
|
+
console.log('SAMLLL2.5');
|
|
71
|
+
console.log('SAMLLL2.6-NATIVE' + this.isNative);
|
|
70
72
|
|
|
71
73
|
if (this.isNative) {
|
|
72
74
|
console.log('SAMLLL3');
|