@tapni/auth 1.0.42 → 1.0.43
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-D4yRLf_Y.js → Apps-B7BLbpS7.js} +1 -1
- package/dist/{Billing-gFL96tI5.js → Billing-Di-Jf-5Z.js} +1 -1
- package/dist/{CustomApp-CC3Btm4e.js → CustomApp-CYjyyuvA.js} +1 -1
- package/dist/{General-B7XQtRUE.js → General-CPmJVJFr.js} +1 -1
- package/dist/{QR-wtpRmd5w.js → QR--5t6sgEH.js} +1 -1
- package/dist/TapniAuth.es.js +1 -1
- package/dist/TapniAuth.umd.js +3 -3
- package/dist/{install-C7MI8p5M.js → install-U2lp1-aZ.js} +6 -7
- package/package.json +2 -2
- package/src/mixins/saml.mixin.js +2 -2
- package/src/store/auth.js +0 -1
- package/src/views/Login.vue +0 -1
|
@@ -1391,7 +1391,7 @@ function sa(n, e, t, r, o, i) {
|
|
|
1391
1391
|
const ro = /* @__PURE__ */ pn(ea, [["render", sa], ["__scopeId", "data-v-cb61958b"]]), ca = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1392
1392
|
__proto__: null,
|
|
1393
1393
|
default: ro
|
|
1394
|
-
}, Symbol.toStringTag, { value: "Module" })), la = "1.0.
|
|
1394
|
+
}, Symbol.toStringTag, { value: "Module" })), la = "1.0.43", ar = {
|
|
1395
1395
|
getMe() {
|
|
1396
1396
|
return le().get("/users/me");
|
|
1397
1397
|
},
|
|
@@ -5825,7 +5825,7 @@ Tanıştığınız herkesi etkileyin 😎 <br> Kendinize bir tane ayırın 👇`
|
|
|
5825
5825
|
app_region: "지역",
|
|
5826
5826
|
app_region_p: "맞춤형 결제 및 지원을 위해 지역을 선택하세요"
|
|
5827
5827
|
}
|
|
5828
|
-
}, ko = () => Promise.resolve().then(() => ca), da = () => Promise.resolve().then(() => mc), pa = () => Promise.resolve().then(() => cl), ha = () => Promise.resolve().then(() => Xu), fa = () => Promise.resolve().then(() => zc), ma = () => Promise.resolve().then(() => Cl), ga = () => Promise.resolve().then(() => od), _a = () => import("./QR
|
|
5828
|
+
}, ko = () => Promise.resolve().then(() => ca), da = () => Promise.resolve().then(() => mc), pa = () => Promise.resolve().then(() => cl), ha = () => Promise.resolve().then(() => Xu), fa = () => Promise.resolve().then(() => zc), ma = () => Promise.resolve().then(() => Cl), ga = () => Promise.resolve().then(() => od), _a = () => import("./QR--5t6sgEH.js"), va = () => Promise.resolve().then(() => Cu), ya = () => import("./Apps-B7BLbpS7.js"), wa = () => import("./Billing-Di-Jf-5Z.js"), ba = () => import("./CustomApp-CYjyyuvA.js"), ka = () => import("./General-CPmJVJFr.js"), Ca = [
|
|
5829
5829
|
{
|
|
5830
5830
|
path: "/welcome",
|
|
5831
5831
|
name: "AuthWelcome",
|
|
@@ -5925,7 +5925,7 @@ Tanıştığınız herkesi etkileyin 😎 <br> Kendinize bir tane ayırın 👇`
|
|
|
5925
5925
|
kr: ii.state
|
|
5926
5926
|
},
|
|
5927
5927
|
display: "npm",
|
|
5928
|
-
redirect_uri: "https://
|
|
5928
|
+
redirect_uri: "https://tapni.com/app/callback/auth",
|
|
5929
5929
|
response_type: "token",
|
|
5930
5930
|
state: "",
|
|
5931
5931
|
allowedOriginsAuth: [
|
|
@@ -5948,7 +5948,6 @@ Tanıştığınız herkesi etkileyin 😎 <br> Kendinize bir tane ayırın 👇`
|
|
|
5948
5948
|
"https://designer-dev.tapni.com",
|
|
5949
5949
|
"http://localhost:8082",
|
|
5950
5950
|
"http://localhost:7777",
|
|
5951
|
-
"http://localhost:7777",
|
|
5952
5951
|
"https://localhost:7777",
|
|
5953
5952
|
"http://localhost:8086",
|
|
5954
5953
|
"https://localhost:8085",
|
|
@@ -15519,7 +15518,7 @@ const Ms = Er("MsAuthPlugin", {
|
|
|
15519
15518
|
async samlLogin(n) {
|
|
15520
15519
|
this.code_verifier = $n.generateRandomString(28), localStorage.setItem("pkce_code_verifier", this.code_verifier), this.code_challenge = await $n.pkceChallengeFromVerifier(this.code_verifier);
|
|
15521
15520
|
const e = Hn.getPlatform();
|
|
15522
|
-
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);
|
|
15521
|
+
let t = `code_challenge=${this.code_challenge}&platform=${e}&redirect_uri=${location.origin + (this.display === "npm" ? "/app" : "") + "/callback/saml"}&realm=${this.realm}&display=${this.display}`, r = btoa(t);
|
|
15523
15522
|
n = `${n}&RelayState=${r}`;
|
|
15524
15523
|
let o = this;
|
|
15525
15524
|
window.addEventListener(
|
|
@@ -15539,7 +15538,7 @@ const Ms = Er("MsAuthPlugin", {
|
|
|
15539
15538
|
var s;
|
|
15540
15539
|
const i = localStorage.getItem("auth_code"), a = localStorage.getItem("pkce_code_verifier");
|
|
15541
15540
|
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 }));
|
|
15542
|
-
}, 500), this.popupWindow = window.open(window.location.origin + "/app/callback/redirect?uri=" + btoa(n), "popup", "width=600,height=600"));
|
|
15541
|
+
}, 500), this.popupWindow = window.open(window.location.origin + (this.display === "npm" ? "/app" : "") + "/callback/redirect?uri=" + btoa(n), "popup", "width=600,height=600"));
|
|
15543
15542
|
},
|
|
15544
15543
|
async handleSamlRedirect() {
|
|
15545
15544
|
var e;
|
|
@@ -15684,7 +15683,7 @@ const Ms = Er("MsAuthPlugin", {
|
|
|
15684
15683
|
async ssoLoginSubmit() {
|
|
15685
15684
|
this.loading = !0;
|
|
15686
15685
|
const n = await this.getCompanyBySSOEmail({ email: this.emailOrUsername });
|
|
15687
|
-
|
|
15686
|
+
this.loading = !1;
|
|
15688
15687
|
let e;
|
|
15689
15688
|
if (!(!n || n.error))
|
|
15690
15689
|
if (e = Object.keys(n.sso), e.length)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tapni/auth",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.43",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/TapniAuth.umd.js",
|
|
6
6
|
"module": "./dist/TapniAuth.es.js",
|
|
@@ -64,4 +64,4 @@
|
|
|
64
64
|
"vite": "^5.4.11",
|
|
65
65
|
"vite-plugin-node-polyfills": "^0.22.0"
|
|
66
66
|
}
|
|
67
|
-
}
|
|
67
|
+
}
|
package/src/mixins/saml.mixin.js
CHANGED
|
@@ -40,7 +40,7 @@ export default {
|
|
|
40
40
|
const platform = Capacitor.getPlatform();
|
|
41
41
|
|
|
42
42
|
// append public key as relayState
|
|
43
|
-
let dataString = `code_challenge=${this.code_challenge}&platform=${platform}&redirect_uri=${location.origin + '/app/callback/saml'}&realm=${this.realm}&display=${this.display}`;
|
|
43
|
+
let dataString = `code_challenge=${this.code_challenge}&platform=${platform}&redirect_uri=${location.origin + (this.display === 'npm' ? '/app' : '') + '/callback/saml'}&realm=${this.realm}&display=${this.display}`;
|
|
44
44
|
let relayState = btoa(dataString);
|
|
45
45
|
loginUrl = `${loginUrl}&RelayState=${relayState}`
|
|
46
46
|
|
|
@@ -87,7 +87,7 @@ export default {
|
|
|
87
87
|
}
|
|
88
88
|
}, 500);
|
|
89
89
|
|
|
90
|
-
this.popupWindow = window.open(window.location.origin + '/app/callback/redirect?uri=' + btoa(loginUrl), 'popup', 'width=600,height=600');
|
|
90
|
+
this.popupWindow = window.open(window.location.origin + (this.display === 'npm' ? '/app' : '') + '/callback/redirect?uri=' + btoa(loginUrl), 'popup', 'width=600,height=600');
|
|
91
91
|
}
|
|
92
92
|
},
|
|
93
93
|
async handleSamlRedirect() {
|
package/src/store/auth.js
CHANGED
package/src/views/Login.vue
CHANGED
|
@@ -355,7 +355,6 @@ export default {
|
|
|
355
355
|
async ssoLoginSubmit () {
|
|
356
356
|
this.loading = true;
|
|
357
357
|
const response = await this.getCompanyBySSOEmail({ email: this.emailOrUsername });
|
|
358
|
-
console.log('SAMLLL1', JSON.stringify(response));
|
|
359
358
|
this.loading = false;
|
|
360
359
|
let ssoTypes;
|
|
361
360
|
if (!response || response.error) return;
|