@tapni/auth 1.0.23 → 1.0.25
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-CDylX6XF.js → Apps-DRn32wko.js} +1 -1
- package/dist/{Billing-C7NEN6ly.js → Billing-DXzUPyml.js} +1 -1
- package/dist/{CustomApp-Bn5jb23U.js → CustomApp-BwG147po.js} +1 -1
- package/dist/{General-8V7ImNYJ.js → General-gY3lasGl.js} +1 -1
- package/dist/{QR-CAm_0ybY.js → QR-BX90Rc07.js} +1 -1
- package/dist/TapniAuth.es.js +1 -1
- package/dist/TapniAuth.umd.js +23 -23
- package/dist/{install-D44Xv90L.js → install-0j3SGM_o.js} +3425 -3646
- package/dist/style.css +1 -1
- package/package.json +2 -2
- package/src/App.vue +7 -8
- package/src/mixins/global.mixin.js +1 -1
- package/src/mixins/microsoft.mixin.js +1 -1
- package/src/mixins/okta.mixin.js +1 -1
- package/src/mixins/saml.mixin.js +2 -9
- package/src/services/UtilService.js +15 -15
- package/src/store/auth.js +390 -390
- package/src/store/locales/cn.js +33 -1
- package/src/store/locales/de.js +39 -1
- package/src/store/locales/es.js +34 -1
- package/src/store/locales/fr.js +34 -1
- package/src/store/locales/it.js +34 -1
- package/src/store/locales/kr.js +34 -1
- package/src/store/locales/sr.js +37 -1
- package/src/store/locales/tr.js +40 -1
- package/src/views/Account.vue +0 -2
- package/src/views/Security.vue +0 -1
- package/src/views/Welcome.vue +2 -7
- package/dist/blank.html +0 -31
- package/src/assets/index.css +0 -199
- package/src/components/DELETE_Language.vue +0 -168
- package/src/components/DELETE_LinkIcon.vue +0 -237
- package/src/components/DELETE_ModalOverlay.vue +0 -68
- package/src/components/DELETE_OTP.vue +0 -105
- package/src/components/DELETE_SSO.vue +0 -120
- package/src/components/DELETE_SSOPick.vue +0 -111
- package/src/mixins/DELETE_mfa-auth.mixin.js +0 -53
package/dist/style.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.app-store-icon[data-v-
|
|
1
|
+
.app-store-icon[data-v-893e16f3]{box-shadow:0 4px 10px #00000017;border-radius:12px}#codeInput[data-v-dea3e9ef],#emailInput[data-v-dea3e9ef]{text-align:center;padding-right:15%;font-size:17px}.firstRow img[data-v-6037b00e]{width:25px;height:25px;position:absolute;top:50%;right:0;transform:translate(-50%,-50%)}#emailInput[data-v-b19fad43]{text-align:center;padding-right:15%;font-size:17px}html *{font-family:Inter,sans-serif}#bodyId{padding-top:3%;max-width:667px!important;margin:1.5% auto auto;height:95%!important;border-radius:20px}.action-block-top .default-text,.action-block-top .default-text:after{border-radius:50%;width:10em!important;height:10em!important}.action-block-top .default-text{margin:10px auto;font-size:3px;position:relative;text-indent:-9999em;border-left:.5em solid #000000;border-top:.5em solid rgba(0,0,0,.2);border-right:.5em solid rgba(0,0,0,.2);border-bottom:.5em solid rgba(0,0,0,.2);-webkit-transform:translateZ(0);-ms-transform:translateZ(0);transform:translateZ(0);-webkit-animation:load8 1.1s infinite linear;animation:load8 1.1s infinite linear}@-webkit-keyframes load8{0%{-webkit-transform:rotate(0deg);transform:rotate(0)}to{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes load8{0%{-webkit-transform:rotate(0deg);transform:rotate(0)}to{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}.smartbanner-ios{background:linear-gradient(to bottom,#f4f4f4,#f4f4f4);box-shadow:0 0 #fff;border-bottom:1px solid #dddddd}.smartbanner-icon{border-radius:16px}.smartbanner-ios .smartbanner-button{font-size:13px;padding:9px 0;height:40px;border-radius:13px;background:#f4f4f4;color:#0a99d2;border:none;box-shadow:none;text-transform:uppercase}.snack-body{display:none;border-radius:40px;font-size:15px!important}#errorSnack{background-color:#fee3e3!important;border:2px solid #edd9d9!important;color:#000}#successSnack{background-color:#eff5eb!important;border:2px solid #e3ecd7!important;color:#000}.grecaptcha-badge{visibility:hidden}.header-logo{position:absolute;left:50%;transform:translate(-50%,-50%);margin-top:0;z-index:2}.header-logo-img{height:40px;margin-top:10px}@media (max-width: 768px){#bodyId{margin-top:0;border-radius:0;height:100%!important}.header-logo{margin-top:15px}}.withBackground[data-v-2f7f5584],.withBackground[data-v-4d3e1bec],.withBackground[data-v-36b27d1f]{height:50px}[data-v-9dc93691] .vue-select{padding:5px 0}[data-v-9dc93691] .vue-select .dropdown-icon{color:#1d1d1d;width:25px!important;height:25px!important}[data-v-9dc93691] .vue-select .menu-option:hover{background-color:#d9d9d9}[data-v-9dc93691] .vue-select .menu-option.focused{background-color:#f4f4f4}[data-v-9dc93691] .vue-select .menu-option{border-bottom:1px solid #D9D9D9;font-size:15px;color:#151515}[data-v-9dc93691] .vue-select .menu-option:last-child{border-bottom:none}[data-v-9dc93691] .vue-select .menu{border-radius:10px;border:none}[data-v-9dc93691] .vue-select .control.focused{border:none;box-shadow:none}[data-v-9dc93691] .vue-select .control{min-height:54px!important;background-color:#f4f4f4;border:none;border-radius:10px}[data-v-9dc93691] .vue-select .menu-option.selected{background-color:#e4e4e4}[data-v-9dc93691] .vue-select .indicators-container{padding:5px 15px!important}[data-v-9dc93691] .vue-select .value-container{padding:5px 15px}[data-v-9dc93691] .vue-select .menu-option{background-color:#f4f4f4}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tapni/auth",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.25",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/TapniAuth.umd.js",
|
|
6
6
|
"module": "./dist/TapniAuth.es.js",
|
|
@@ -63,4 +63,4 @@
|
|
|
63
63
|
"vite": "^5.4.11",
|
|
64
64
|
"vite-plugin-node-polyfills": "^0.22.0"
|
|
65
65
|
}
|
|
66
|
-
}
|
|
66
|
+
}
|
package/src/App.vue
CHANGED
|
@@ -42,7 +42,7 @@ document.addEventListener('DOMContentLoaded', function() {
|
|
|
42
42
|
height: 50px;
|
|
43
43
|
"
|
|
44
44
|
>
|
|
45
|
-
<img
|
|
45
|
+
<img
|
|
46
46
|
src="https://cdn.tapni.co/icons/notification-close.png"
|
|
47
47
|
style="width: 100%;"
|
|
48
48
|
/>
|
|
@@ -79,14 +79,11 @@ import AuthVerify from "@/views/Verify.vue";
|
|
|
79
79
|
import AuthSecurity from "@/views/Security.vue";
|
|
80
80
|
import AuthReset from "@/views/Reset.vue";
|
|
81
81
|
import AuthCallback from "@/views/Callback.vue";
|
|
82
|
-
import ModalOverlay from "@/components/DELETE_ModalOverlay.vue";
|
|
83
|
-
import SSO from "@/components/DELETE_SSO.vue";
|
|
84
|
-
import SSOPick from "@/components/DELETE_SSOPick.vue";
|
|
85
82
|
import {EventBus} from "./store/event-bus.js";
|
|
86
83
|
import AuthMixin from "@/mixins/auth.mixin.js";
|
|
87
|
-
import Language from "@/components/DELETE_Language.vue";
|
|
88
84
|
import ReactiveStorage from '@tapni/capacitor-reactive-localstorage-vue3'
|
|
89
85
|
import store from './store/auth.js';
|
|
86
|
+
import UtilService from './services/UtilService.js';
|
|
90
87
|
|
|
91
88
|
export default {
|
|
92
89
|
store,
|
|
@@ -99,9 +96,7 @@ export default {
|
|
|
99
96
|
}
|
|
100
97
|
},
|
|
101
98
|
components: {
|
|
102
|
-
|
|
103
|
-
SSOPick,
|
|
104
|
-
SSO, ModalOverlay, AuthCallback, AuthReset, AuthVerify, AuthSecurity, AuthRegister, AuthLogin, AuthAccount, AuthWelcome
|
|
99
|
+
AuthCallback, AuthReset, AuthVerify, AuthSecurity, AuthRegister, AuthLogin, AuthAccount, AuthWelcome
|
|
105
100
|
},
|
|
106
101
|
props: {
|
|
107
102
|
viewProp: {
|
|
@@ -145,6 +140,10 @@ export default {
|
|
|
145
140
|
EventBus.$on('switchAccount',(data) => this.switchAccount(data))
|
|
146
141
|
EventBus.$on('setToken',(data) => this.setToken(data))
|
|
147
142
|
EventBus.$on('setStorageItem',(data) => this.setStorageItem(data))
|
|
143
|
+
|
|
144
|
+
if (import.meta.env.VITE_APP_COMPARE_LANGUAGE_KEYS === "true") {
|
|
145
|
+
UtilService.compareLangKeys();
|
|
146
|
+
}
|
|
148
147
|
},
|
|
149
148
|
methods: {
|
|
150
149
|
async init () {
|
|
@@ -110,7 +110,7 @@ export default {
|
|
|
110
110
|
try {
|
|
111
111
|
return await window.grecaptcha.execute(import.meta.env.VITE_APP_GOOGLE_RECAPTCHA_SITE_KEY, {action: action});
|
|
112
112
|
} catch (err){
|
|
113
|
-
console.
|
|
113
|
+
console.error('grecaptcha_error', err)
|
|
114
114
|
return null
|
|
115
115
|
}
|
|
116
116
|
},
|
package/src/mixins/okta.mixin.js
CHANGED
|
@@ -89,7 +89,7 @@ export default {
|
|
|
89
89
|
//if (response && response.data && response.data.url) {
|
|
90
90
|
let code;
|
|
91
91
|
window.addEventListener("message", async (message)=> {
|
|
92
|
-
if (!this.allowedOriginsAuth.includes(message.origin)) return console.
|
|
92
|
+
if (!this.allowedOriginsAuth.includes(message.origin)) return console.error('Origin is not allowed!');
|
|
93
93
|
if(message.data.type === 'okta') {
|
|
94
94
|
code = message.data.code;
|
|
95
95
|
await self.exchangeCode({domain: data.domain, code, clientID: data.clientID});
|
package/src/mixins/saml.mixin.js
CHANGED
|
@@ -26,7 +26,7 @@ export default {
|
|
|
26
26
|
try {
|
|
27
27
|
window.close()
|
|
28
28
|
} catch (e) {
|
|
29
|
-
console.
|
|
29
|
+
console.error('Window close error', e);
|
|
30
30
|
}
|
|
31
31
|
},
|
|
32
32
|
async samlLogin(loginUrl) {
|
|
@@ -50,7 +50,7 @@ export default {
|
|
|
50
50
|
window.addEventListener(
|
|
51
51
|
'message',
|
|
52
52
|
async (message) => {
|
|
53
|
-
if (!this.allowedOriginsAuth.includes(message.origin)) return console.
|
|
53
|
+
if (!this.allowedOriginsAuth.includes(message.origin)) return console.error('Origin is not allowed! ' + message.origin);
|
|
54
54
|
const code = message.data.code;
|
|
55
55
|
const pkce = localStorage.getItem('pkce_code_verifier');
|
|
56
56
|
if (code) {
|
|
@@ -90,13 +90,6 @@ export default {
|
|
|
90
90
|
|
|
91
91
|
this.popupWindow = window.open(window.location.origin + '/callback/redirect?uri=' + btoa(loginUrl), 'popup', 'width=600,height=600');
|
|
92
92
|
}
|
|
93
|
-
|
|
94
|
-
if (this.popupWindow) {
|
|
95
|
-
this.popupWindow.addEventListener('beforeunload', () => {
|
|
96
|
-
console.log('popup window closed');
|
|
97
|
-
})
|
|
98
|
-
}
|
|
99
|
-
|
|
100
93
|
},
|
|
101
94
|
async handleSamlRedirect() {
|
|
102
95
|
let code;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import enLocale from '../store/locales/en';
|
|
2
|
-
import deLocale from '../store/locales/de';
|
|
3
|
-
import esLocale from '../store/locales/es';
|
|
4
|
-
import krLocale from '../store/locales/kr';
|
|
5
|
-
import itLocale from '../store/locales/it';
|
|
6
|
-
import frLocale from '../store/locales/fr';
|
|
7
|
-
import srLocale from '../store/locales/sr';
|
|
1
|
+
import enLocale from '../store/locales/en.js';
|
|
2
|
+
import deLocale from '../store/locales/de.js';
|
|
3
|
+
import esLocale from '../store/locales/es.js';
|
|
4
|
+
import krLocale from '../store/locales/kr.js';
|
|
5
|
+
import itLocale from '../store/locales/it.js';
|
|
6
|
+
import frLocale from '../store/locales/fr.js';
|
|
7
|
+
import srLocale from '../store/locales/sr.js';
|
|
8
8
|
import trLocale from '../store/locales/tr';
|
|
9
9
|
|
|
10
10
|
export default {
|
|
@@ -35,14 +35,14 @@ export default {
|
|
|
35
35
|
return null;
|
|
36
36
|
},
|
|
37
37
|
compareLangKeys() {
|
|
38
|
-
const en = Object.keys(enLocale.
|
|
39
|
-
const de = Object.keys(deLocale.
|
|
40
|
-
const es = Object.keys(esLocale.
|
|
41
|
-
const kr = Object.keys(krLocale.
|
|
42
|
-
const it = Object.keys(itLocale.
|
|
43
|
-
const fr = Object.keys(frLocale.
|
|
44
|
-
const sr = Object.keys(srLocale.
|
|
45
|
-
const tr = Object.keys(trLocale.
|
|
38
|
+
const en = Object.keys(enLocale.state);
|
|
39
|
+
const de = Object.keys(deLocale.state);
|
|
40
|
+
const es = Object.keys(esLocale.state);
|
|
41
|
+
const kr = Object.keys(krLocale.state);
|
|
42
|
+
const it = Object.keys(itLocale.state);
|
|
43
|
+
const fr = Object.keys(frLocale.state);
|
|
44
|
+
const sr = Object.keys(srLocale.state);
|
|
45
|
+
const tr = Object.keys(trLocale.state);
|
|
46
46
|
|
|
47
47
|
// Compare en and de
|
|
48
48
|
console.log(
|