@tapni/auth 0.0.170 → 0.0.172
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/README.md +2 -0
- package/dist/.vite/manifest.json +18 -10
- package/dist/.well-known/assetlinks.json +10 -12
- package/dist/.well-known/microsoft-identity-association.json +5 -5
- package/dist/{Account-6F9eRo1R.js → Account-BVGvxZ85.js} +31 -32
- package/dist/{QR-2Izy5Dj4.js → QR-DwjajyG2.js} +3 -3
- package/dist/TapniAuth.es.js +1 -1
- package/dist/TapniAuth.umd.js +9 -9
- package/dist/blank.html +31 -0
- package/dist/{install-co2F1hxN.js → install-B8fBS6C4.js} +752 -996
- package/dist/site.webmanifest +11 -1
- package/dist/style.css +1 -1
- package/dist/{web-NrPZl3qD.js → web-XbruGdlD.js} +2 -5
- package/package.json +64 -55
- package/src/.prettierrc.json +16 -0
- package/src/App.vue +249 -265
- package/src/components/Language.vue +66 -143
- package/src/components/LinkIcon.vue +174 -225
- package/src/components/ModalOverlay.vue +47 -50
- package/src/components/OTP.vue +64 -94
- package/src/components/SSO.vue +80 -111
- package/src/components/SSOPick.vue +93 -148
- package/src/eslint.config.js +15 -0
- package/src/install.js +9 -10
- package/src/main.js +54 -57
- package/src/mixins/apple.mixin.js +56 -54
- package/src/mixins/auth.mixin.js +21 -74
- package/src/mixins/facebook.mixin.js +67 -66
- package/src/mixins/global.mixin.js +107 -109
- package/src/mixins/google.mixin.js +53 -54
- package/src/mixins/mfa-auth.mixin.js +68 -68
- package/src/mixins/microsoft.mixin.js +67 -75
- package/src/mixins/okta.mixin.js +50 -57
- package/src/mixins/qr-auth.mixin.js +111 -107
- package/src/mixins/saml.mixin.js +97 -48
- package/src/router/index.js +6 -6
- package/src/routes.js +60 -66
- package/src/services/Api.js +55 -57
- package/src/services/AuthService.js +75 -75
- package/src/services/CompanyService.js +10 -10
- package/src/services/DeviceService.js +3 -3
- package/src/services/UserService.js +45 -45
- package/src/services/UtilService.js +256 -218
- package/src/store/auth.js +471 -543
- package/src/store/constants.js +1 -1
- package/src/store/event-bus.js +22 -22
- package/src/store/locales/cn.js +442 -458
- package/src/store/locales/de.js +438 -517
- package/src/store/locales/en.js +449 -510
- package/src/store/locales/es.js +442 -524
- package/src/store/locales/fr.js +442 -516
- package/src/store/locales/it.js +442 -514
- package/src/store/locales/kr.js +442 -491
- package/src/store/locales/lang.js +43 -43
- package/src/store/locales/sr.js +439 -492
- package/src/store/locales/tr.js +436 -487
- package/src/store/store.js +6 -6
- package/src/views/Account.vue +169 -207
- package/src/views/Callback.vue +36 -33
- package/src/views/Login.vue +220 -392
- package/src/views/MFA.vue +89 -103
- package/src/views/QR.vue +25 -28
- package/src/views/Register.vue +201 -205
- package/src/views/Reset.vue +132 -135
- package/src/views/Verify.vue +153 -151
- package/src/views/Welcome.vue +61 -60
- /package/dist/{web-L3jORB19.js → web-AXRKjAOB.js} +0 -0
- /package/dist/{web-5VtGcKeU.js → web-IFGkBi0t.js} +0 -0
- /package/dist/{web-AImUTDQQ.js → web-LIfHmYL2.js} +0 -0
|
@@ -1,168 +1,91 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
>
|
|
12
|
-
<i class="font-17 fa color-black">
|
|
13
|
-
<img
|
|
14
|
-
src="https://cdn.tapni.co/icons/down-arrow.png"
|
|
15
|
-
class="fa responsive-image"
|
|
16
|
-
style="width: 45%"
|
|
17
|
-
/>
|
|
18
|
-
</i>
|
|
19
|
-
</a>
|
|
20
|
-
<h3 class="bold center-text color-black small-bottom">
|
|
21
|
-
{{ ssoLang[appLanguage].app_language }}
|
|
22
|
-
</h3>
|
|
2
|
+
<div class="menu-wrapper menu-light menu-white menu-modal center-text activate-page" :class="{ 'active-menu': toggle }" style="height: auto; max-height: 92vh; margin-top: -172.5px">
|
|
3
|
+
<a @click="close" class="color-black pull-right pointer" style="margin-top: 5px; position: absolute; right: 5px">
|
|
4
|
+
<i class="font-17 fa color-black">
|
|
5
|
+
<img src="https://cdn.tapni.co/icons/down-arrow.png" class="fa responsive-image" style="width: 45%" />
|
|
6
|
+
</i>
|
|
7
|
+
</a>
|
|
8
|
+
<h3 class="bold center-text color-black small-bottom">
|
|
9
|
+
{{ ssoLang[appLanguage].app_language }}
|
|
10
|
+
</h3>
|
|
23
11
|
|
|
24
|
-
|
|
25
|
-
@click.native="updateLanguage('en')"
|
|
26
|
-
:link-style="'link-list'"
|
|
27
|
-
:data="{ type: 'lang/en', text: ssoLang[this.appLanguage].english }"
|
|
28
|
-
:editing="false"
|
|
29
|
-
:class="{ 'add-button': true }"
|
|
30
|
-
:customLinkStyle="{ linkIcon: { display: 'none' }}"
|
|
31
|
-
/>
|
|
12
|
+
<LinkIcon @click.native="updateLanguage('en')" :link-style="'link-list'" :data="{ type: 'lang/en', text: ssoLang[this.appLanguage].english }" :editing="false" :class="{ 'add-button': true }" :customLinkStyle="{ linkIcon: { display: 'none' } }" />
|
|
32
13
|
|
|
33
|
-
|
|
34
|
-
@click.native="updateLanguage('es')"
|
|
35
|
-
:link-style="'link-list'"
|
|
36
|
-
:data="{ type: 'lang/es', text: ssoLang[this.appLanguage].spanish }"
|
|
37
|
-
:editing="false"
|
|
38
|
-
:class="{ 'add-button': true }"
|
|
39
|
-
:customLinkStyle="{ linkIcon: { display: 'none' }}"
|
|
40
|
-
/>
|
|
14
|
+
<LinkIcon @click.native="updateLanguage('es')" :link-style="'link-list'" :data="{ type: 'lang/es', text: ssoLang[this.appLanguage].spanish }" :editing="false" :class="{ 'add-button': true }" :customLinkStyle="{ linkIcon: { display: 'none' } }" />
|
|
41
15
|
|
|
42
|
-
|
|
43
|
-
@click.native="updateLanguage('de')"
|
|
44
|
-
:link-style="'link-list'"
|
|
45
|
-
:data="{ type: 'lang/de', text: ssoLang[this.appLanguage].german }"
|
|
46
|
-
:editing="false"
|
|
47
|
-
:class="{ 'add-button': true }"
|
|
48
|
-
:customLinkStyle="{ linkIcon: { display: 'none' }}"
|
|
49
|
-
/>
|
|
16
|
+
<LinkIcon @click.native="updateLanguage('de')" :link-style="'link-list'" :data="{ type: 'lang/de', text: ssoLang[this.appLanguage].german }" :editing="false" :class="{ 'add-button': true }" :customLinkStyle="{ linkIcon: { display: 'none' } }" />
|
|
50
17
|
|
|
51
|
-
|
|
52
|
-
@click.native="updateLanguage('it')"
|
|
53
|
-
:link-style="'link-list'"
|
|
54
|
-
:data="{ type: 'lang/it', text: ssoLang[this.appLanguage].italian }"
|
|
55
|
-
:editing="false"
|
|
56
|
-
:class="{ 'add-button': true }"
|
|
57
|
-
:customLinkStyle="{ linkIcon: { display: 'none' }}"
|
|
58
|
-
/>
|
|
18
|
+
<LinkIcon @click.native="updateLanguage('it')" :link-style="'link-list'" :data="{ type: 'lang/it', text: ssoLang[this.appLanguage].italian }" :editing="false" :class="{ 'add-button': true }" :customLinkStyle="{ linkIcon: { display: 'none' } }" />
|
|
59
19
|
|
|
60
|
-
|
|
61
|
-
@click.native="updateLanguage('fr')"
|
|
62
|
-
:link-style="'link-list'"
|
|
63
|
-
:data="{ type: 'lang/fr', text: ssoLang[this.appLanguage].french }"
|
|
64
|
-
:editing="false"
|
|
65
|
-
:class="{ 'add-button': true }"
|
|
66
|
-
:customLinkStyle="{ linkIcon: { display: 'none' }}"
|
|
67
|
-
/>
|
|
20
|
+
<LinkIcon @click.native="updateLanguage('fr')" :link-style="'link-list'" :data="{ type: 'lang/fr', text: ssoLang[this.appLanguage].french }" :editing="false" :class="{ 'add-button': true }" :customLinkStyle="{ linkIcon: { display: 'none' } }" />
|
|
68
21
|
|
|
69
|
-
|
|
70
|
-
@click.native="updateLanguage('kr')"
|
|
71
|
-
:link-style="'link-list'"
|
|
72
|
-
:data="{ type: 'lang/kr', text: ssoLang[this.appLanguage].korean }"
|
|
73
|
-
:editing="false"
|
|
74
|
-
:class="{ 'add-button': true }"
|
|
75
|
-
:customLinkStyle="{ linkIcon: { display: 'none' }}"
|
|
76
|
-
/>
|
|
22
|
+
<LinkIcon @click.native="updateLanguage('kr')" :link-style="'link-list'" :data="{ type: 'lang/kr', text: ssoLang[this.appLanguage].korean }" :editing="false" :class="{ 'add-button': true }" :customLinkStyle="{ linkIcon: { display: 'none' } }" />
|
|
77
23
|
|
|
78
|
-
|
|
79
|
-
@click.native="updateLanguage('sr')"
|
|
80
|
-
:link-style="'link-list'"
|
|
81
|
-
:data="{ type: 'lang/sr', text: ssoLang[this.appLanguage].serbian }"
|
|
82
|
-
:editing="false"
|
|
83
|
-
:class="{ 'add-button': true }"
|
|
84
|
-
:customLinkStyle="{ linkIcon: { display: 'none' }}"
|
|
85
|
-
/>
|
|
24
|
+
<LinkIcon @click.native="updateLanguage('sr')" :link-style="'link-list'" :data="{ type: 'lang/sr', text: ssoLang[this.appLanguage].serbian }" :editing="false" :class="{ 'add-button': true }" :customLinkStyle="{ linkIcon: { display: 'none' } }" />
|
|
86
25
|
|
|
87
|
-
|
|
88
|
-
@click.native="updateLanguage('tr')"
|
|
89
|
-
:link-style="'link-list'"
|
|
90
|
-
:data="{ type: 'lang/tr', text: ssoLang[this.appLanguage].turkish }"
|
|
91
|
-
:editing="false"
|
|
92
|
-
:class="{ 'add-button': true }"
|
|
93
|
-
:customLinkStyle="{ linkIcon: { display: 'none' }}"
|
|
94
|
-
/>
|
|
26
|
+
<LinkIcon @click.native="updateLanguage('tr')" :link-style="'link-list'" :data="{ type: 'lang/tr', text: ssoLang[this.appLanguage].turkish }" :editing="false" :class="{ 'add-button': true }" :customLinkStyle="{ linkIcon: { display: 'none' } }" />
|
|
95
27
|
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
:link-style="'link-list'"
|
|
99
|
-
:data="{ type: 'lang/cn', text: ssoLang[this.appLanguage].chinese }"
|
|
100
|
-
:editing="false"
|
|
101
|
-
:class="{ 'add-button': true }"
|
|
102
|
-
:customLinkStyle="{ linkIcon: { display: 'none' }}"
|
|
103
|
-
/>
|
|
104
|
-
</div>
|
|
28
|
+
<LinkIcon @click.native="updateLanguage('cn')" :link-style="'link-list'" :data="{ type: 'lang/cn', text: ssoLang[this.appLanguage].chinese }" :editing="false" :class="{ 'add-button': true }" :customLinkStyle="{ linkIcon: { display: 'none' } }" />
|
|
29
|
+
</div>
|
|
105
30
|
</template>
|
|
106
31
|
|
|
107
32
|
<script>
|
|
108
|
-
import { EventBus } from
|
|
109
|
-
import LinkIcon from
|
|
110
|
-
import UtilService from
|
|
111
|
-
import CONSTANTS from
|
|
112
|
-
import { Device } from
|
|
113
|
-
import AuthMixin from
|
|
33
|
+
import { EventBus } from '../store/event-bus.js';
|
|
34
|
+
import LinkIcon from './LinkIcon.vue';
|
|
35
|
+
import UtilService from '../services/UtilService.js';
|
|
36
|
+
import CONSTANTS from '../store/constants.js';
|
|
37
|
+
import { Device } from '@capacitor/device';
|
|
38
|
+
import AuthMixin from '../mixins/auth.mixin.js';
|
|
114
39
|
|
|
115
40
|
export default {
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
41
|
+
name: 'Language',
|
|
42
|
+
mixins: [AuthMixin],
|
|
43
|
+
components: { LinkIcon },
|
|
44
|
+
data() {
|
|
45
|
+
return {
|
|
46
|
+
toggle: false
|
|
47
|
+
};
|
|
48
|
+
},
|
|
49
|
+
async mounted() {
|
|
50
|
+
EventBus.$on('toggleSSOLanguageModal', this.toggleModal);
|
|
51
|
+
EventBus.$on('closeModal', () => {
|
|
52
|
+
this.toggle = false;
|
|
53
|
+
});
|
|
129
54
|
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
},
|
|
154
|
-
},
|
|
55
|
+
let lang = this.isNative ? await Device.getLanguageCode() : UtilService.getFirstBrowserLanguage();
|
|
56
|
+
if (lang && CONSTANTS.SUPPORTED_LANGUAGES.includes(lang)) {
|
|
57
|
+
this.updateLanguage(lang);
|
|
58
|
+
}
|
|
59
|
+
},
|
|
60
|
+
beforeDestroy() {
|
|
61
|
+
EventBus['_events']['toggleSSOLanguageModal'].pop();
|
|
62
|
+
},
|
|
63
|
+
methods: {
|
|
64
|
+
forceClose() {
|
|
65
|
+
EventBus.$emit('closeModal');
|
|
66
|
+
},
|
|
67
|
+
close() {
|
|
68
|
+
this.forceClose();
|
|
69
|
+
},
|
|
70
|
+
async updateLanguage(lang) {
|
|
71
|
+
this.updateLang(lang);
|
|
72
|
+
EventBus.$emit('closeModal');
|
|
73
|
+
},
|
|
74
|
+
toggleModal() {
|
|
75
|
+
this.toggle = !this.toggle;
|
|
76
|
+
}
|
|
77
|
+
}
|
|
155
78
|
};
|
|
156
79
|
</script>
|
|
157
80
|
|
|
158
81
|
<style scoped>
|
|
159
82
|
.user-img {
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
83
|
+
margin: 0 auto;
|
|
84
|
+
margin-top: 2px;
|
|
85
|
+
width: 65px;
|
|
163
86
|
}
|
|
164
87
|
input {
|
|
165
|
-
|
|
166
|
-
|
|
88
|
+
margin: 0 auto;
|
|
89
|
+
height: 25px;
|
|
167
90
|
}
|
|
168
91
|
</style>
|