Share authentication with embed widget

185
4
04-04-2024 02:14 AM
Saxina
by
New Contributor II

I am trying to embed a secured arcgis dashboard in my EXB application(dev edition),
I am passing in the below url to the embed widget. But the authentication is not shared and the dashboard is asking for login again.

https://myarcgisorgportal.com/portal/apps/dashboards/123803221e8eb45148c2ef41f032740xy?arcgis-auth-o...

Saxina_0-1712222011872.png

 

Any help is much appreciated. Thanks!

0 Kudos
4 Replies
WeiYing1
Esri Contributor

hi @Saxina ,

Your EXB app is created with dev edition and deployed to the same domain https://myarcgisorgportal.com/ right? 

0 Kudos
Saxina
by
New Contributor II

Hi @WeiYing1 ,

Yes my app is created with dev edition, I am currently testing the development version of my application
(https://localhost:3002/).

The arcgis org portal(https://myarcgisorgportal.com/ ) and my app portal( https://myappportal.com/ ) are not same domains

0 Kudos
WeiYing1
Esri Contributor

The "arcgis-auth-origin" and "arcgis-auth-portal" parameters are used for cases of crossing organizations when the apps' domain is "arcgis.com". 
If your ExB app and embedded app are from same self-domain organization , you don't need those parameter. Could you have a try by removing the parameters? 

0 Kudos
Saxina
by
New Contributor II

When I tested this case (ExB app and embedded app are from same self-domain organization - not using the extra queryparams), the authentication is shared and there is no 2nd login prompt. But for cross domain the authentication is not shared eventhough I used "arcgis-auth-origin" and "arcgis-auth-portal" params.

0 Kudos