@tapni/auth 1.0.42 → 1.0.44

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tapni/auth",
3
- "version": "1.0.42",
3
+ "version": "1.0.44",
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/App.vue CHANGED
@@ -14,10 +14,6 @@ document.addEventListener('DOMContentLoaded', function() {
14
14
  <template>
15
15
  <div id="ssoapp">
16
16
  <a v-if="display === 'redirect' || renderView.includes('Auth')" href="/" class="header-logo"><img src="https://cdn.tapni.co/images/logo-dark.png"class="header-logo-img"></a>
17
- <ModalOverlay />
18
- <Language v-if="!isModal" />
19
- <SSO v-if="!isModal" />
20
- <SSOPick v-if="!isModal" />
21
17
 
22
18
  <AuthWelcome v-if="initialized && renderView === 'AuthWelcome'" />
23
19
  <AuthLogin v-else-if="initialized && renderView === 'AuthLogin'" :isModal="isModal" />
@@ -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
@@ -64,12 +64,13 @@ export default {
64
64
  "https://designer-dev.tapni.com",
65
65
  "http://localhost:8082",
66
66
  "http://localhost:7777",
67
- "http://localhost:7777",
68
67
  "https://localhost:7777",
69
68
  "http://localhost:8086",
70
69
  "https://localhost:8085",
71
70
  "http://localhost:8085",
72
71
  "capacitor://localhost",
72
+ "http://localhost",
73
+ "https://localhost",
73
74
  ],
74
75
  },
75
76
  mutations: {
@@ -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;