Hello
i have an Exp builder Dev App that needs to connect to Mapservices from 2 Servers federated with 2 different portals.
Both portals use SAML logins.
My WebMap is on Portal2 and references Datas from AGS1 (federated with Portal1) and AGS2 (federated with Portal2)
When i start my webapp, i get a first dialog to connect to Portal2
![agailing_2-1628000686101.png agailing_2-1628000686101.png](https://community.esri.com/t5/image/serverpage/image-id/20036i05E3FDF761AD76BF/image-size/medium?v=v2&px=400)
then an SAML login page asking for a permission
![agailing_1-1628000620315.png agailing_1-1628000620315.png](https://community.esri.com/t5/image/serverpage/image-id/20035i94184C8D7CD477AA/image-size/medium?v=v2&px=400)
then a window asking to connect to portal1
![agailing_4-1628000951234.png agailing_4-1628000951234.png](https://community.esri.com/t5/image/serverpage/image-id/20038i0E99D3197BEAD9DC/image-size/medium?v=v2&px=400)
At this point the experience is not really user-friendly, but it seems to work ... the problem is that a 4th (!!!!) form is showing up at the same time and asking for a user and a password on portal1, bypassing SAML Option (although internal login is disabled on Portal1).
![4th form.png 4th form.png](https://community.esri.com/t5/image/serverpage/image-id/20040i2EC26364A7A7B237/image-size/medium?v=v2&px=400)
If i dismiss this form , the ArcGIS Server 1 Layer is not in my app ... if I create an internal login and us it, it works...
in fact the third form was the rigtht one, but it doesnt have any effect. the 4th came simultaneously, ad it seems that the app uses the wrong one...
we tried this en 2 different platefoms (one from a custommer, with ADFS as SAML provider, and one as a sandbox on AWS, with okta) both have the same buggy behavior
The integrated ArcGIS Enterprise Builder works well, only apps from the dev edition have this pb.
So is it possible to connect to 2 ferderated AGE on from the same exp builder dev app?