Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Infinite redirection - iframe-request-id #7619

Closed
VGBenjamin opened this issue Jun 8, 2020 · 12 comments
Closed

Infinite redirection - iframe-request-id #7619

VGBenjamin opened this issue Jun 8, 2020 · 12 comments

Comments

@VGBenjamin
Copy link

VGBenjamin commented Jun 8, 2020

Hello,

Current behavior:

When I reach my site I am redirected to the Microsoft SSO. Then redirection url is:
Here is the test I do:

describe('My test', function() {
    it("Test", function() {        
        cy.visit('https://xxx.azurewebsites.net/')
    })
})

Here is the result:

https://xxx.azurewebsites.net/ ->
302: https://xxx.azurewebsites.net/ExternalAuthentication/RequestSignIn?ReturnUrl=%2f ->
302: https://login.microsoftonline.com/23607e6f-fd24-4c0b-9e41-c306ddc8797d/oauth2/authorize?client_id=0fc318c4-3278-4202-987c-50e28572997f&response_type=code%20id_token&scope=openid%20email&state=OpenIdConnect.AuthenticationProperties%3DdoobUiEYSeE8bSExgmxZzeY1Oe-YVhxeZ5uDeMP8gcSAjxdpUZdoo7KKhSgIpCyRcAlDegiAVCN2xJY2JcAihQX7Zdsa07Ui31ugjkw3Wqha5Ap7duFIYngrC-cQCD7-hr3kTzOBly5ROPcDksBm82wfBDpXuC5oam3PK16fHjQ&response_mode=form_post&nonce=637271965613375015.MTY0NGI1YWItZTYzMC00MmNhLTg5YzQtZmM2MjhmMTI2OTUxNTMwNWQ4NmYtY2E0ZC00MzEyLWFkN2MtMjIwZGIxNmQxYzAw&x-client-SKU=ID_NET461&x-client-ver=5.3.0.0

But when he execute the redirection the parameter "iframe-request-id" is added a lot of times into the url like this:

https://login.microsoftonline.com/23607e6f-fd24-4c0b-9e41-c306ddc8797d/oauth2/authorize?client_id=0fc318c4-3278-4202-987c-50e28572997f&response_type=code%20id_token&scope=openid%20email&state=OpenIdConnect.AuthenticationProperties%3DdoobUiEYSeE8bSExgmxZzeY1Oe-YVhxeZ5uDeMP8gcSAjxdpUZdoo7KKhSgIpCyRcAlDegiAVCN2xJY2JcAihQX7Zdsa07Ui31ugjkw3Wqha5Ap7duFIYngrC-cQCD7-hr3kTzOBly5ROPcDksBm82wfBDpXuC5oam3PK16fHjQ&response_mode=form_post&nonce=637271965613375015.MTY0NGI1YWItZTYzMC00MmNhLTg5YzQtZmM2MjhmMTI2OTUxNTMwNWQ4NmYtY2E0ZC00MzEyLWFkN2MtMjIwZGIxNmQxYzAw&x-client-SKU=ID_NET461&x-client-ver=5.3.0.0&sso_reload=true&iframe-request-id=2110c8d5-1b5f-40b9-9d4b-9b739e254500&iframe-request-id=f8d21cc8-d148-4642-ba48-d2635e0d4900&iframe-request-id=19191f2a-3226-441b-be90-3c3aebfa2400&iframe-request-id=f6601a14-1e86-42e7-bc1e-0b89873d2500&iframe-request-id=f6601a14-1e86-42e7-bc1e-0b89993d2500&iframe-request-id=19191f2a-3226-441b-be90-3c3a0afb2400&iframe-request-id=7ed73dd1-cd74-4b1c-960d-9396ab942500&iframe-request-id=c37b638c-8f47-4faa-b77e-19d0e0c42100&iframe-request-id=e218aa1a-6b44-422d-8e61-a2602d2a2500&iframe-request-id=36079590-dbcf-4328-a2ea-ce6806cc2400&iframe-request-id=53ae748c-2fbc-47e5-85c2-39a895cf2300&iframe-request-id=fd4ab547-6539-4035-9674-6b1399af4b00&iframe-request-id=55d896c8-4c7b-4fdc-8069-02c158314a00&iframe-request-id=29ba60ad-8951-41d0-b508-68638c962200&iframe-request-id=15cfae6e-6089-434c-9013-f9c49d464800&iframe-request-id=17eb00d7-da47-4d10-ad1d-ee18d0432100&iframe-request-id=1bdd0fac-c618-48e0-943d-037438322200&iframe-request-id=703cc2e7-9f1e-4f69-999e-b3b176fe2100&iframe-request-id=98636631-4c90-418a-a51e-a5db16fa2400&iframe-request-id=72b76507-e14c-4efb-866f-3099759e4a00&iframe-request-id=9d73c809-c8a1-4913-a7e4-dd175aa62300&iframe-request-id=c143bb6d-6aa0-4cbb-9071-2ee2fb914600&iframe-request-id=118dbaa0-9be1-4f3a-9e32-553d73042200&iframe-request-id=17eb00d7-da47-4d10-ad1d-ee184f442100&iframe-request-id=f9daed9d-8c8a-46c4-b4b6-c881b5132400&iframe-request-id=03ef5887-6347-44b4-9e88-9e8db7704500&iframe-request-id=471d9b4d-b12d-422a-8be7-79d8afa42000&iframe-request-id=9d73c809-c8a1-4913-a7e4-dd17c7a62300&iframe-request-id=f327100a-a2cf-4d07-a133-878690d52300&iframe-request-id=f4ab63c0-0a55-4184-bbb8-5c9df5ef2400&iframe-request-id=f327100a-a2cf-4d07-a133-8786afd52300&iframe-request-id=19191f2a-3226-441b-be90-3c3af5fb2400&iframe-request-id=53ae748c-2fbc-47e5-85c2-39a8f8d02300&iframe-request-id=c511406a-9d2f-4c4e-b398-8a57fe422200&iframe-request-id=17eb00d7-da47-4d10-ad1d-ee18f4442100&iframe-request-id=4c0b9edc-444f-4fe7-8e35-a6da5d882300&iframe-request-id=c143bb6d-6aa0-4cbb-9071-2ee2b9934600&iframe-request-id=98636631-4c90-418a-a51e-a5db38fb2400&iframe-request-id=0c9b24d2-cd62-4443-9691-fdf707922100&iframe-request-id=f30eba9a-b9d0-4e1b-839e-d7a901ac2400&iframe-request-id=03ef5887-6347-44b4-9e88-9e8d85724500&iframe-request-id=03ef5887-6347-44b4-9e88-9e8d9f724500&iframe-request-id=b2143b17-814a-45ff-9b36-31c6fe5e2200&iframe-request-id=9de5bbd4-91b7-4471-bc76-602756662300&iframe-request-id=565c635b-2e76-4de7-be3a-ab3594174800&iframe-request-id=918d966d-098c-44dd-879f-0a663b584e00&iframe-request-id=5b5cd7aa-3659-485b-a409-00d53a6e2300&iframe-request-id=4b24ce6d-1575-4855-beaa-a2078ccb2600&iframe-request-id=c143bb6d-6aa0-4cbb-9071-2ee236954600&iframe-request-id=4b24ce6d-1575-4855-beaa-a207b0cb2600&iframe-request-id=1b50bd75-414b-4565-84d8-2ebc0b042400&iframe-request-id=5b5cd7aa-3659-485b-a409-00d59c6e2300&iframe-request-id=ee2931ba-96f3-495e-a71a-0258c6dd2500&iframe-request-id=31c37004-23c2-4a1f-9c0f-f70403d92400&iframe-request-id=118dbaa0-9be1-4f3a-9e32-553d70062200&iframe-request-id=fd4ab547-6539-4035-9674-6b1394b44b00&iframe-request-id=72b76507-e14c-4efb-866f-3099c0a24a00&iframe-request-id=9de5bbd4-91b7-4471-bc76-60272b672300&iframe-request-id=159033ab-70ea-4505-adf0-0245493f2500&iframe-request-id=d72aaa1e-947c-47f3-909d-66e16f1b2100&iframe-request-id=36079590-dbcf-4328-a2ea-ce68c4ce2400&iframe-request-id=796a4ea8-e60d-4e4b-88e1-a941a15d4500&iframe-request-id=25279ce2-a08f-4a6d-8a9a-54550db42000&iframe-request-id=687a4853-671d-48a3-941d-c8733b022600&iframe-request-id=2110c8d5-1b5f-40b9-9d4b-9b73352c4500&iframe-request-id=21f23f8c-816b-40a5-a04b-5ea37aa52300&iframe-request-id=ad39e6e8-fc1d-4f9c-af58-ba1a38ba2500&iframe-request-id=0c9b24d2-cd62-4443-9691-fdf713932100&iframe-request-id=c31018c5-1ced-4391-b4db-5d68c1122100&iframe-request-id=98636631-4c90-418a-a51e-a5db0ffd2400&iframe-request-id=703cc2e7-9f1e-4f69-999e-b3b120012200&iframe-request-id=8295f167-5bfa-47f5-89c1-ae297f3b4a00&iframe-request-id=21c9addd-2078-4596-a75a-dc31f82a2500&iframe-request-id=8295f167-5bfa-47f5-89c1-ae29c33b4a00&iframe-request-id=fd4ab547-6539-4035-9674-6b13f7b64b00&iframe-request-id=d79ab296-2a17-4906-b061-3612fb132600&iframe-request-id=f9daed9d-8c8a-46c4-b4b6-c88156162400&iframe-request-id=467c117f-fcaf-477c-84f3-ea45b56c2200&iframe-request-id=22b25878-437c-4542-a247-f5fc98f52400&iframe-request-id=1cceec53-acb6-49ae-917b-ac2890f52200&iframe-request-id=565c635b-2e76-4de7-be3a-ab352c1b4800&iframe-request-id=8201b6e0-abe6-4990-ae8b-a918cae82200&iframe-request-id=d72aaa1e-947c-47f3-909d-66e1971c2100&iframe-request-id=3426097d-3d42-4add-8377-8729ba822000&iframe-request-id=c37b638c-8f47-4faa-b77e-19d01ac92100&iframe-request-id=36e588f5-3749-4819-a262-aad710b94800&iframe-request-id=7ed73dd1-cd74-4b1c-960d-93965d992500&iframe-request-id=471d9b4d-b12d-422a-8be7-79d8d7a72000&iframe-request-id=be2a2384-2fc1-4d22-8538-92a3c1412200&iframe-request-id=ec6376de-1f4e-48fd-818a-f5bc173d4a00&iframe-request-id=f9daed9d-8c8a-46c4-b4b6-c881ef162400&iframe-request-id=918d966d-098c-44dd-879f-0a66bc5b4e00&iframe-request-id=62fcffb3-cb52-492a-b0f0-a5b54aeb2100&iframe-request-id=74e07568-33b4-4aa1-acaa-9ac415782300&iframe-request-id=ee2931ba-96f3-495e-a71a-025845e02500&iframe-request-id=af5cc0d6-6e3e-4b47-bfec-67a4fbc02100&iframe-request-id=9d73c809-c8a1-4913-a7e4-dd1789aa2300&iframe-request-id=d446f3b4-080c-4c1d-910f-e5b07e1e2100&iframe-request-id=7ed73dd1-cd74-4b1c-960d-93961a9a2500&iframe-request-id=04d89448-bed5-4f8f-9416-7862488c2100&iframe-request-id=e8b0c534-54cb-4df4-ad2b-17b1c77f2400&iframe-request-id=06225faa-2977-43f6-8817-be80d7002400&iframe-request-id=53ae748c-2fbc-47e5-85c2-39a864d42300&iframe-request-id=b308fa71-f451-4c7e-8e73-42a8b9d62600&iframe-request-id=dd7c5e6c-f5df-4272-a257-44bb7a682200&iframe-request-id=31c37004-23c2-4a1f-9c0f-f704b9da2400&iframe-request-id=72b76507-e14c-4efb-866f-3099dfa74a00&iframe-request-id=e14ff635-8803-4f00-8c8d-bce2d75e4a00&iframe-request-id=62fcffb3-cb52-492a-b0f0-a5b549ec2100&iframe-request-id=62fcffb3-cb52-492a-b0f0-a5b55cec2100&iframe-request-id=f47b4a22-0382-41a0-be95-e36243ae2400&iframe-request-id=025bdc1a-ac1d-48a1-805d-c25c8cec2100&iframe-request-id=c37b638c-8f47-4faa-b77e-19d006cb2100&iframe-request-id=918d966d-098c-44dd-879f-0a66a25e4e00&iframe-request-id=f327100a-a2cf-4d07-a133-878693da2300&iframe-request-id=f9b1305d-d6d0-4ec7-843c-1398d64a2300&iframe-request-id=fe8cd32f-f219-4c8a-8caa-331f991f2200&iframe-request-id=b689af28-7302-4fb7-afc5-884f03a02500&iframe-request-id=620a77b0-ccb4-4cc9-98d2-e140d8c62400&iframe-request-id=687a4853-671d-48a3-941d-c8730a052600&iframe-request-id=c37b638c-8f47-4faa-b77e-19d09bcb2100&iframe-request-id=bcbc957d-4e4a-4915-8e26-ae1b22db2300&iframe-request-id=78d5fd24-f953-4e8a-adb8-86cbe4312300&iframe-request-id=5b5cd7aa-3659-485b-a409-00d53c732300&iframe-request-id=17eb00d7-da47-4d10-ad1d-ee18654a2100&iframe-request-id=9d73c809-c8a1-4913-a7e4-dd17f7ac2300&iframe-request-id=2d6058c6-d9bd-4628-9d4f-af31ad2d2500&iframe-request-id=5b5cd7aa-3659-485b-a409-00d585732300&iframe-request-id=f8d21cc8-d148-4642-ba48-d2637e1c4900&iframe-request-id=fd4ab547-6539-4035-9674-6b1327be4b00&iframe-request-id=7ac71a9a-fc21-4b85-b9ed-f4c7bffb1f00&iframe-request-id=620a77b0-ccb4-4cc9-98d2-e140acc72400&iframe-request-id=687a4853-671d-48a3-941d-c873e4052600&iframe-request-id=75b48176-b00f-4053-92b8-2a42cf632300&iframe-request-id=a10efbda-1cda-4319-a5d9-9f9df5fa4600&iframe-request-id=1bdd0fac-c618-48e0-943d-037457382200&iframe-request-id=f8d21cc8-d148-4642-ba48-d263821d4900&iframe-request-id=7ed73dd1-cd74-4b1c-960d-9396c79c2500&iframe-request-id=7050e7a9-7f49-4e4d-9c01-2bd23c572500&iframe-request-id=f47b4a22-0382-41a0-be95-e36210b02400&iframe-request-id=36079590-dbcf-4328-a2ea-ce6817d32400&iframe-request-id=81cc5179-bf9b-4447-9643-66d09c572300&iframe-request-id=18746c26-a12f-4338-9ff5-4c8752d62100&iframe-request-id=873636c7-5548-451f-a223-49f819dc2200&iframe-request-id=02aa3bdb-8348-4e2c-ae53-3907bb0b2200&iframe-request-id=15cfae6e-6089-434c-9013-f9c433564800&iframe-request-id=a10efbda-1cda-4319-a5d9-9f9d3ffc4600&iframe-request-id=36079590-dbcf-4328-a2ea-ce685fd32400&iframe-request-id=703cc2e7-9f1e-4f69-999e-b3b146052200&iframe-request-id=2c760c0d-03d6-419a-9074-a10171c42100&iframe-request-id=d446f3b4-080c-4c1d-910f-e5b031222100&iframe-request-id=ccf5c200-b961-4751-97f1-0eb718662100&iframe-request-id=9a5bcde2-70ae-43e2-8d28-efde1bec2100&iframe-request-id=565c635b-2e76-4de7-be3a-ab35a5234800&iframe-request-id=2110c8d5-1b5f-40b9-9d4b-9b7363354500&iframe-request-id=b689af28-7302-4fb7-afc5-884f69a22500&iframe-request-id=04d89448-bed5-4f8f-9416-786215902100&iframe-request-id=f8d21cc8-d148-4642-ba48-d263771f4900&iframe-request-id=918d966d-098c-44dd-879f-0a662a644e00&iframe-request-id=25279ce2-a08f-4a6d-8a9a-545528b82000&iframe-request-id=fd4ab547-6539-4035-9674-6b13a9c14b00&iframe-request-id=c08f81f8-01a8-4374-ba96-e31f47f22400&iframe-request-id=78d5fd24-f953-4e8a-adb8-86cb24342300&iframe-request-id=a10efbda-1cda-4319-a5d9-9f9ddafd4600&iframe-request-id=aff17f59-eadd-4d94-84c3-b1c3df522300&iframe-request-id=620a77b0-ccb4-4cc9-98d2-e14060c92400&iframe-request-id=b2143b17-814a-45ff-9b36-31c6e7632200&iframe-request-id=555314ca-486b-4578-91c5-1754a2622200&iframe-request-id=687a4853-671d-48a3-941d-c8738d072600&iframe-request-id=69dd4beb-fbd5-4790-9b5a-19db6d712600&iframe-request-id=ad39e6e8-fc1d-4f9c-af58-ba1a18bf2500&iframe-request-id=75b48176-b00f-4053-92b8-2a42a5652300&iframe-request-id=18746c26-a12f-4338-9ff5-4c878cd72100&iframe-request-id=c08f81f8-01a8-4374-ba96-e31fb0f22400&iframe-request-id=c8a14b69-6786-493d-b952-6a4c623c2100&iframe-request-id=2a1f5885-b6f6-45f8-912b-91f1eaa82300&iframe-request-id=19191f2a-3226-441b-be90-3c3a7b032500&iframe-request-id=15cfae6e-6089-434c-9013-f9c4d4584800&iframe-request-id=21f23f8c-816b-40a5-a04b-5ea349ab2300&iframe-request-id=796a4ea8-e60d-4e4b-88e1-a941c7684500&iframe-request-id=918d966d-098c-44dd-879f-0a665a654e00&iframe-request-id=36e588f5-3749-4819-a262-aad7d8c24800&iframe-request-id=ad39e6e8-fc1d-4f9c-af58-ba1a71bf2500&iframe-request-id=f8f5c33f-2a1c-450c-b1d0-851f03422400&iframe-request-id=f9b1305d-d6d0-4ec7-843c-1398014e2300&iframe-request-id=ad39e6e8-fc1d-4f9c-af58-ba1a8fbf2500&iframe-request-id=ec6376de-1f4e-48fd-818a-f5bcbb464a00&iframe-request-id=a9c2409e-6e91-4d6d-ac91-1f165cc92100&iframe-request-id=5fe85a50-8537-4c2b-810f-3b668cca4900&iframe-request-id=bcbc957d-4e4a-4915-8e26-ae1b66de2300&iframe-request-id=4b24ce6d-1575-4855-beaa-a207a5d22600&iframe-request-id=169852a8-37b7-492b-b4f8-acbcdcc92400&iframe-request-id=c6d7eef8-8356-4831-9260-19db54d52400&iframe-request-id=2e02f94b-7c5d-43d8-bc81-96223df72200&iframe-request-id=7ac71a9a-fc21-4b85-b9ed-f4c73ffe1f00&iframe-request-id=565c635b-2e76-4de7-be3a-ab35d6254800&iframe-request-id=50e02f58-7600-44fd-ac70-3d292cca2200&iframe-request-id=688c511f-42d0-400f-acbc-5fd340da2000&iframe-request-id=159033ab-70ea-4505-adf0-0245c0452500&iframe-request-id=f5b98b83-2aaf-45ae-b96c-2e094c7f2300&iframe-request-id=a6fed54c-9841-47ea-8d60-165401742400&iframe-request-id=03ef5887-6347-44b4-9e88-9e8d78814500&iframe-request-id=fd4ab547-6539-4035-9674-6b1381c44b00&iframe-request-id=118dbaa0-9be1-4f3a-9e32-553de00a2200&iframe-request-id=387be16d-c922-497e-97de-725d60062700&iframe-request-id=5f900d14-3a09-47af-902d-bfd153ef2300&iframe-request-id=96954203-9f85-471e-bf52-65a598db2500&iframe-request-id=703cc2e7-9f1e-4f69-999e-b3b138072200&iframe-request-id=159033ab-70ea-4505-adf0-024520462500&iframe-request-id=e218aa1a-6b44-422d-8e61-a26068342500&iframe-request-id=7ac71a9a-fc21-4b85-b9ed-f4c7a4fe1f00&iframe-request-id=81481020-f2d7-4e38-a333-354a05602500&iframe-request-id=fd4ab547-6539-4035-9674-6b1332c54b00&iframe-request-id=c37b638c-8f47-4faa-b77e-19d038cf2100&iframe-request-id=471d9b4d-b12d-422a-8be7-79d802ad2000&iframe-request-id=b2143b17-814a-45ff-9b36-31c622652200&iframe-request-id=8100015b-5a63-4449-a105-ff547ffe2400&iframe-request-id=36e588f5-3749-4819-a262-aad798c54800&iframe-request-id=55d896c8-4c7b-4fdc-8069-02c1d7444a00&iframe-request-id=03ef5887-6347-44b4-9e88-9e8d87824500&iframe-request-id=64e08d81-2b5a-4b93-99f1-50673dc24e00&iframe-request-id=9acd2632-c16b-4adf-be08-c8a023bb2300&iframe-request-id=8295f167-5bfa-47f5-89c1-ae2911494a00&iframe-request-id=1b50bd75-414b-4565-84d8-2ebc1c0c2400&iframe-request-id=5b5cd7aa-3659-485b-a409-00d521782300&iframe-request-id=8df228c8-1f60-4501-ab6a-05ad74202500&iframe-request-id=19191f2a-3226-441b-be90-3c3a01052500&iframe-request-id=703cc2e7-9f1e-4f69-999e-b3b1c7072200&iframe-request-id=31c37004-23c2-4a1f-9c0f-f7047add2400&iframe-request-id=36e588f5-3749-4819-a262-aad79ac64800&iframe-request-id=f064d3c3-a121-4616-b0a1-07624d3b2800&iframe-request-id=03ef5887-6347-44b4-9e88-9e8d7b834500&iframe-request-id=74e07568-33b4-4aa1-acaa-9ac4697e2300&iframe-request-id=c7b0aaca-cb61-4767-9688-1991d22c2200&iframe-request-id=60bffd28-35fe-446b-9976-a31fa0452400&iframe-request-id=aed88e00-4ce7-4afd-b193-b3301b5f2400&iframe-request-id=36079590-dbcf-4328-a2ea-ce6814d62400&iframe-request-id=03ef5887-6347-44b4-9e88-9e8df5834500&iframe-request-id=92ffcc31-333c-4671-b090-91d5d2a32100&iframe-request-id=f6601a14-1e86-42e7-bc1e-0b896f482500&iframe-request-id=31c37004-23c2-4a1f-9c0f-f704cfdd2400&iframe-request-id=e218aa1a-6b44-422d-8e61-a2607a352500&iframe-request-id=5fe85a50-8537-4c2b-810f-3b6690cd4900&iframe-request-id=7050e7a9-7f49-4e4d-9c01-2bd2005b2500&iframe-request-id=c511406a-9d2f-4c4e-b398-8a57004a2200&iframe-request-id=5b5cd7aa-3659-485b-a409-00d5c6782300&iframe-request-id=3e0c499c-99c2-4955-8c52-996058012500&iframe-request-id=7050e7a9-7f49-4e4d-9c01-2bd2255b2500&iframe-request-id=b2143b17-814a-45ff-9b36-31c613662200&iframe-request-id=ad57c76d-223e-4966-9194-91c411642100&iframe-request-id=19191f2a-3226-441b-be90-3c3aaa052500&iframe-request-id=2c760c0d-03d6-419a-9074-a10174c72100&iframe-request-id=de934f17-8aac-42b8-8b40-89bb9c432300&iframe-request-id=9acd2632-c16b-4adf-be08-c8a023bc2300&iframe-request-id=cb6707bb-2a76-405a-b035-868a8bb72300&iframe-request-id=04ebbf20-d4ca-469e-8e73-1e4502aa2100&iframe-request-id=823b6c5f-e13a-4caa-87f6-eef249262600&iframe-request-id=f8d21cc8-d148-4642-ba48-d26361254900&iframe-request-id=c511406a-9d2f-4c4e-b398-8a57824a2200&iframe-request-id=69c07b40-a49e-4261-a556-b18a617a2300&iframe-request-id=18746c26-a12f-4338-9ff5-4c875eda2100&iframe-request-id=59448121-1025-4ae9-ba61-52a0b8952200&iframe-request-id=2110c8d5-1b5f-40b9-9d4b-9b73023c4500&iframe-request-id=15cfae6e-6089-434c-9013-f9c4775e4800&iframe-request-id=b689af28-7302-4fb7-afc5-884fdfa52500&iframe-request-id=03ef5887-6347-44b4-9e88-9e8d7d864500&iframe-request-id=2110c8d5-1b5f-40b9-9d4b-9b73fc3c4500&iframe-request-id=4c0b9edc-444f-4fe7-8e35-a6da86922300&iframe-request-id=a6fed54c-9841-47ea-8d60-165495762400&iframe-request-id=ccf5c200-b961-4751-97f1-0eb7b36a2100&iframe-request-id=98636631-4c90-418a-a51e-a5db1f072500&iframe-request-id=62fcffb3-cb52-492a-b0f0-a5b571f32100&iframe-request-id=caf1ce06-f01b-4aa4-9528-1585f0134f00&iframe-request-id=620a77b0-ccb4-4cc9-98d2-e140cfcd2400&iframe-request-id=a6fed54c-9841-47ea-8d60-165418772400&iframe-request-id=f8d21cc8-d148-4642-ba48-d263c6284900&iframe-request-id=92ffcc31-333c-4671-b090-91d529a62100&iframe-request-id=435c002a-cee3-42b9-a023-ff8117f02400&iframe-request-id=44197ff1-9a64-4680-af4d-c708c1702400&iframe-request-id=36e588f5-3749-4819-a262-aad7c9cb4800&iframe-request-id=78d5fd24-f953-4e8a-adb8-86cb71382300&iframe-request-id=fd4ab547-6539-4035-9674-6b1369cb4b00&iframe-request-id=de934f17-8aac-42b8-8b40-89bbd9452300&iframe-request-id=873636c7-5548-451f-a223-49f88ae22200&iframe-request-id=64e08d81-2b5a-4b93-99f1-50672cc94e00&iframe-request-id=118dbaa0-9be1-4f3a-9e32-553df40e2200&iframe-request-id=8295f167-5bfa-47f5-89c1-ae29ce504a00&iframe-request-id=a9c2409e-6e91-4d6d-ac91-1f1607ce2100&iframe-request-id=ec6376de-1f4e-48fd-818a-f5bcc44f4a00&iframe-request-id=66202194-07e1-483c-9640-3e8f54642400&iframe-request-id=4b24ce6d-1575-4855-beaa-a20740d82600&iframe-request-id=565c635b-2e76-4de7-be3a-ab35c82e4800&iframe-request-id=2c760c0d-03d6-419a-9074-a10139ca2100&iframe-request-id=f8f5c33f-2a1c-450c-b1d0-851f30472400&iframe-request-id=471d9b4d-b12d-422a-8be7-79d88eb12000&iframe-request-id=9d73c809-c8a1-4913-a7e4-dd179bb42300&iframe-request-id=f920903e-5b7f-4add-838c-94b020f12600&iframe-request-id=025bdc1a-ac1d-48a1-805d-c25cccf52100&iframe-request-id=4b24ce6d-1575-4855-beaa-a20719d92600&iframe-request-id=03ef5887-6347-44b4-9e88-9e8d458d4500&iframe-request-id=511e72f1-3bea-48ea-bad3-ba77a3962500&iframe-request-id=c143bb6d-6aa0-4cbb-9071-2ee2a7ad4600&iframe-request-id=796a4ea8-e60d-4e4b-88e1-a9417f744500&iframe-request-id=f8f5c33f-2a1c-450c-b1d0-851f6e482400&iframe-request-id=471d9b4d-b12d-422a-8be7-79d8a1b22000&iframe-request-id=c143bb6d-6aa0-4cbb-9071-2ee264ae4600&iframe-request-id=8295f167-5bfa-47f5-89c1-ae2927554a00&iframe-request-id=b689af28-7302-4fb7-afc5-884fabaa2500&iframe-request-id=b689af28-7302-4fb7-afc5-884fcaaa2500&iframe-request-id=4c0b9edc-444f-4fe7-8e35-a6da46962300&iframe-request-id=5de56627-cebc-4f0b-b1d9-6ec6177d2300&iframe-request-id=03ef5887-6347-44b4-9e88-9e8d2a904500&iframe-request-id=31c37004-23c2-4a1f-9c0f-f704dfe32400&iframe-request-id=f1741bb2-3dc4-483e-954b-f4738f9e2000&iframe-request-id=6d97efc0-16df-44f7-81fd-8ccbed6b2300&iframe-request-id=72b76507-e14c-4efb-866f-3099d8c24a00&iframe-request-id=8100015b-5a63-4449-a105-ff54d5062500&iframe-request-id=c31018c5-1ced-4391-b4db-5d68f71f2100&iframe-request-id=d9c7f804-f241-4a12-bcf3-274cfb242300&iframe-request-id=471d9b4d-b12d-422a-8be7-79d889b42000&iframe-request-id=be43d34f-2b1f-4882-970f-d72ddb982500&iframe-request-id=69c07b40-a49e-4261-a556-b18aa3802300&iframe-request-id=3a90d30c-5019-4f48-a80d-c38943fa2300&iframe-request-id=a10efbda-1cda-4319-a5d9-9f9d82104700&iframe-request-id=74e07568-33b4-4aa1-acaa-9ac4fc862300&iframe-request-id=f8d21cc8-d148-4642-ba48-d263e1334900&iframe-request-id=5de56627-cebc-4f0b-b1d9-6ec6317f2300&iframe-request-id=c143bb6d-6aa0-4cbb-9071-2ee2ccb44600&iframe-request-id=caf1ce06-f01b-4aa4-9528-15850e214f00&iframe-request-id=ccf5c200-b961-4751-97f1-0eb75c722100&iframe-request-id=118dbaa0-9be1-4f3a-9e32-553d17142200&iframe-request-id=1bdd0fac-c618-48e0-943d-037463432200&iframe-request-id=025bdc1a-ac1d-48a1-805d-c25cdffa2100&iframe-request-id=7050e7a9-7f49-4e4d-9c01-2bd215652500&iframe-request-id=4c0b9edc-444f-4fe7-8e35-a6da109a2300&iframe-request-id=9d73c809-c8a1-4913-a7e4-dd175ab92300&iframe-request-id=e14ff635-8803-4f00-8c8d-bce2b97d4a00&iframe-request-id=19191f2a-3226-441b-be90-3c3a2b102500&iframe-request-id=b308fa71-f451-4c7e-8e73-42a8e6e62600&iframe-request-id=15cfae6e-6089-434c-9013-f9c49f704800&iframe-request-id=a80270db-70c0-46e1-a989-245b4cec2500&iframe-request-id=9acd2632-c16b-4adf-be08-c8a0f5c52300&iframe-request-id=d446f3b4-080c-4c1d-910f-e5b0b32f2100&iframe-request-id=72b76507-e14c-4efb-866f-30997cca4a00&iframe-request-id=78d5fd24-f953-4e8a-adb8-86cbf3402300&iframe-request-id=9d73c809-c8a1-4913-a7e4-dd1791ba2300&iframe-request-id=31c37004-23c2-4a1f-9c0f-f704c4e82400&iframe-request-id=620a77b0-ccb4-4cc9-98d2-e1409dd62400&iframe-request-id=5fe85a50-8537-4c2b-810f-3b66c3e24900&iframe-request-id=9acd2632-c16b-4adf-be08-c8a01fc72300&iframe-request-id=387be16d-c922-497e-97de-725df0112700&iframe-request-id=19191f2a-3226-441b-be90-3c3a40122500&iframe-request-id=04ebbf20-d4ca-469e-8e73-1e45e3b42100&iframe-request-id=1e74dc06-efcf-4c96-b4f3-6c750afa2200&iframe-request-id=1cceec53-acb6-49ae-917b-ac2830072300&iframe-request-id=f4ab63c0-0a55-4184-bbb8-5c9dc4062500&iframe-request-id=0c9b24d2-cd62-4443-9691-fdf7dba32100&iframe-request-id=36e588f5-3749-4819-a262-aad716df4800&iframe-request-id=4b24ce6d-1575-4855-beaa-a20779e12600&iframe-request-id=9a5bcde2-70ae-43e2-8d28-efdea4fb2100&iframe-request-id=4b24ce6d-1575-4855-beaa-a207aee12600&iframe-request-id=f327100a-a2cf-4d07-a133-878675eb2300&iframe-request-id=96954203-9f85-471e-bf52-65a559e92500

I have also tried the same script manually and also with pupeteers but it doesn't do the same behavior.

Desired behavior:

Do not add the iframe-request-id more than once

Test code to reproduce

describe('My test', function() {
    it("Infinite loop", function() {
        // Act
        cy.visit('https://login.microsoftonline.com/23607e6f-fd24-4c0b-9e41-c306ddc8797d/oauth2/authorize?client_id=0fc318c4-3278-4202-987c-50e28572997f&response_type=code%20id_token&scope=openid%20email&state=OpenIdConnect.AuthenticationProperties%3DOatbR0i7VI4e6Bqo1RW58TICukayFI3ru8zYqP5ZQ-ImwkrykGttkoqoNRuCG0vrWIcL_Wcy7dVsXX_IScX6gMJb87hjSF6p6q69bBq4DaEdDLs65MglMQoTin1MENV7lLpJa7-xONMh7cvNfro-RJDidS8d77u_m9PmxtzFFxI&response_mode=form_post&nonce=637271967926669562.Y2Y1MDljYzktOWU1MC00NGQ3LWJkMTMtN2QwMTc3NGY3MWQzZDhmNDIyZmYtOTFiYy00MDlkLWJlMjMtMmE3NTEzODNmOTBl&x-client-SKU=ID_NET461&x-client-ver=5.3.0.0')
    })
})

Versions

Cypress: 4.7.0
operating system: Windows 10
browser: Chrome 83

@jennifer-shehane
Copy link
Member

The iframe-request-id is not something that is added by Cypress, this is behavior that is being done my microsoft when run through Cypress. Likely it is not expecting to be run within an iframe in the manner that Cypress runs it.

I would suggest looking into other ways to test the login through your application as explained in this doc: https://on.cypress.io/best-practices#Visiting-external-sites

@cypress-bot cypress-bot bot added the stage: needs investigating Someone from Cypress needs to look at this label Jun 9, 2020
@VGBenjamin
Copy link
Author

Ok thank you I will investigate it deeper on thursday with the link you have provided. The only strange thing is the fact that nor the manual procedure or the pupeteer procedure do it.

@TonyHernandezAtMS
Copy link

@VGBenjamin - You'll have to use Puppeteer as a Cypress task.

https://gist.github.com/TonyHernandezAtMS/706b8ea977ee0aac3b7fb8317bc699cb

@joe-schoepfer
Copy link

@VGBenjamin - I have exactly the same problem.
Have you found a solution for the problem?
If so, what did you do?

@cypress-bot cypress-bot bot added stage: backlog and removed stage: needs investigating Someone from Cypress needs to look at this labels Apr 29, 2022
@manoj-mukherjee-maersk
Copy link

cy.origin also override the cypress test runner tab with azure ad login but after that not able to type.

@scarsam
Copy link

scarsam commented Jan 11, 2023

I'm having the same problem, has anyone got it to work with the latest version of Cypress? I'm currently using a custom Puppeteer workflow at the moment.

@JackTilleyCode
Copy link

Same issue here, would love to know if there is a solution

@steoj
Copy link

steoj commented Apr 13, 2023

Having same issue. Works like a charm on logging in manually but cypress keeps adding iframe-request-id until too long url. Would really like to see a solution to this.
Need to add that we are trying to log in via oauth2-proxy container, so token will never be available to cypress...

@nagash77
Copy link
Contributor

If folks haven't read the guide on using cy.origin I would suggest checking that out. We also have guides on authenticating with Azure AD that might be helpful.

This issue is very old so I am going to close this issue. If folks are still experiencing this problem and have a reproducible example in a more recent version of Cypress please open a new issue and we will be happy to investigate.

@nagash77 nagash77 closed this as not planned Won't fix, can't repro, duplicate, stale Apr 13, 2023
@Andy2003
Copy link

Andy2003 commented May 5, 2023

@VGBenjamin - You'll have to use Puppeteer as a Cypress task.

https://gist.github.com/TonyHernandezAtMS/706b8ea977ee0aac3b7fb8317bc699cb

With this approach I could manage to get my tests running!

@adysurfer
Copy link

This could also work:

cy.window().then((win) => {
win.location.href = 'your-url';
});

@MS-IT-Software
Copy link

In my case a missing
experimentalModifyObstructiveThirdPartyCode: true
in cypress.config.ts caused the error.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests