@bigso/auth-sdk 0.4.2 → 0.4.4
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/index.cjs +7 -3
- package/dist/index.js +7 -3
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -183,8 +183,12 @@ var BigsoAuth = class extends EventEmitter {
|
|
|
183
183
|
this.debug("JWS v\xE1lido, payload:", decoded);
|
|
184
184
|
this.closeUI();
|
|
185
185
|
cleanup();
|
|
186
|
-
|
|
187
|
-
|
|
186
|
+
const result = {
|
|
187
|
+
...decoded,
|
|
188
|
+
signed_payload: payload.signed_payload
|
|
189
|
+
};
|
|
190
|
+
this.emit("success", result);
|
|
191
|
+
resolve(result);
|
|
188
192
|
} catch (err) {
|
|
189
193
|
this.debug("Error en sso-success:", err);
|
|
190
194
|
this.closeUI();
|
|
@@ -260,7 +264,7 @@ var BigsoAuth = class extends EventEmitter {
|
|
|
260
264
|
}
|
|
261
265
|
this.iframe = document.createElement("iframe");
|
|
262
266
|
this.iframe.className = "sso-frame";
|
|
263
|
-
this.iframe.src = `${this.options.ssoOrigin}/auth/sign-in?v=2.3&client_id=${this.options.clientId}
|
|
267
|
+
this.iframe.src = `${this.options.ssoOrigin}/auth/sign-in?v=2.3&client_id=${this.options.clientId}`;
|
|
264
268
|
this.iframe.setAttribute("title", "SSO Login");
|
|
265
269
|
this.overlayEl.appendChild(this.iframe);
|
|
266
270
|
this.debug("Iframe creado", this.iframe.src);
|
package/dist/index.js
CHANGED
|
@@ -157,8 +157,12 @@ var BigsoAuth = class extends EventEmitter {
|
|
|
157
157
|
this.debug("JWS v\xE1lido, payload:", decoded);
|
|
158
158
|
this.closeUI();
|
|
159
159
|
cleanup();
|
|
160
|
-
|
|
161
|
-
|
|
160
|
+
const result = {
|
|
161
|
+
...decoded,
|
|
162
|
+
signed_payload: payload.signed_payload
|
|
163
|
+
};
|
|
164
|
+
this.emit("success", result);
|
|
165
|
+
resolve(result);
|
|
162
166
|
} catch (err) {
|
|
163
167
|
this.debug("Error en sso-success:", err);
|
|
164
168
|
this.closeUI();
|
|
@@ -234,7 +238,7 @@ var BigsoAuth = class extends EventEmitter {
|
|
|
234
238
|
}
|
|
235
239
|
this.iframe = document.createElement("iframe");
|
|
236
240
|
this.iframe.className = "sso-frame";
|
|
237
|
-
this.iframe.src = `${this.options.ssoOrigin}/auth/sign-in?v=2.3&client_id=${this.options.clientId}
|
|
241
|
+
this.iframe.src = `${this.options.ssoOrigin}/auth/sign-in?v=2.3&client_id=${this.options.clientId}`;
|
|
238
242
|
this.iframe.setAttribute("title", "SSO Login");
|
|
239
243
|
this.overlayEl.appendChild(this.iframe);
|
|
240
244
|
this.debug("Iframe creado", this.iframe.src);
|