valtech-components 4.0.61 → 4.0.62
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/esm2022/lib/services/auth/oauth-callback.component.mjs +22 -11
- package/esm2022/lib/services/auth/oauth.service.mjs +5 -4
- package/esm2022/lib/version.mjs +2 -2
- package/fesm2022/valtech-components.mjs +26 -14
- package/fesm2022/valtech-components.mjs.map +1 -1
- package/lib/services/auth/oauth-callback.component.d.ts +12 -4
- package/lib/version.d.ts +1 -1
- package/package.json +1 -1
|
@@ -41,10 +41,18 @@ export declare class OAuthCallbackComponent implements OnInit {
|
|
|
41
41
|
ngOnInit(): void;
|
|
42
42
|
/**
|
|
43
43
|
* Indica si este callback corre como la VENTANA PRINCIPAL (flujo redirect),
|
|
44
|
-
* no como popup.
|
|
45
|
-
*
|
|
46
|
-
*
|
|
47
|
-
*
|
|
44
|
+
* no como popup.
|
|
45
|
+
*
|
|
46
|
+
* NO usamos window.name ni window.opener como indicadores primarios:
|
|
47
|
+
* - Chrome/Firefox borran window.name al navegar cross-origin (privacidad),
|
|
48
|
+
* por lo que ya no vale para el flujo OAuth que pasa por Google/MS.
|
|
49
|
+
* - window.opener queda null cuando el proveedor tiene COOP:same-origin
|
|
50
|
+
* (Google lo usa), que sever la referencia en el bounce.
|
|
51
|
+
*
|
|
52
|
+
* Indicador confiable: `popup=true` en la URL. OAuthService lo inyecta en
|
|
53
|
+
* el redirect_uri antes del /start; el backend lo reenvía intacto en el
|
|
54
|
+
* redirect final vía appendParams → sobrevive todo el round-trip sin
|
|
55
|
+
* depender de estado de la ventana del navegador.
|
|
48
56
|
*/
|
|
49
57
|
private isMainWindow;
|
|
50
58
|
/**
|
package/lib/version.d.ts
CHANGED