Select to view content in your preferred language

Experience Builder + ArcGIS Online + Enterprise

207
2
11-01-2024 12:45 AM
ŁukaszWiszniewski
Emerging Contributor

Hello,
I have ArcGIS Online where is created a public WebMap. This WebMap contains a public Map Image Layer. This Map Image Layer points to a public feature layer hosted on separate Enterprise Server.
ArcGIS Online has generated credentials (including Client ID) that can be used with Experience Builder Development Edition.
From here I have two scenarios where I have trouble.

Scenario 1.
I have run Experience Builder on my localhost with client ID generated in ArcGIS Online. In the app I have a map (mentioned WebMap) and a custom widget. Custom widget can read feature layer picked from the map but before that it always makes a request to the server where is hosted picked layer. This request uses IdentityManager.getCredentials() from ESRI JS API. When this request is sent, pops up a dialog for sign in to the enterprise portal - https://serverURL.com/portal( item). It happens even though the feature layer is public.
My question is why it happens and how to avoid sign in popup? I would like to mention that in security settings of the Enterpise in Allow portal access was added ArcGIS Online url. It didn't help.

ukaszWiszniewski_1-1730445143971.png

Scenario 2.

I have run Experience Builder on my localhost with client ID generated in ArcGIS Online. I have custom widget and map widget. I setup a WebMap from available in ArcGIS Online which contains the same feature layer hosted on the same Enterpise server as mentioned in scenario no.1 with one difference that this feature layer is shared only in my organization. During adding this map to the map widget pops up a dialog:

ukaszWiszniewski_3-1730445695584.png

Why do I need a client ID from Enterprise even though I have registered ExB in AGOL?
How can I avoid it?
Can I use organization shared feature layer without this client ID?

0 Kudos
2 Replies
A_Wyn_Jones
Esri Contributor

Can you view the layer as expected in the map on Experience Builder dev edition when the "proxy layer" is shared publicly? is this problem specific to the custom widget?

 

If you're having issues with the layer in the map as well, you can check these points:

for your client ID registered in ArcGIS Online - have you added localhost as a redirect url? If so, try changing this to https://mymachine.mydomain.com:portnumber

You'll have to change how you access Experience builder developer edition to this URL too.

 

Ensure your ArcGIS Enterprise certificates are up to date and valid. 

 

Your ArcGIS Enterprise may have security settings enabled which would prevent consumption of apps/maps/data. Have a look at these settings:

https://enterprise.arcgis.com/en/portal/latest/administer/windows/restrict-cross-domain-requests-to-...

https://enterprise.arcgis.com/en/server/latest/administer/windows/restricting-cross-domain-requests-...

 

Hope this helps

"We've boosted the Anti-Mass Spectrometer to 105 percent. Bit of a gamble, but we need the extra resolution."
0 Kudos
ŁukaszWiszniewski
Emerging Contributor

Thank you for you answer!
proxy layer is shared publicly and I can access to it in the incognito mode without logging in.

ArcGIS Online has registered localhost redirections

CORS is also set 

ukaszWiszniewski_0-1730465963692.png


I still have the same issue.

0 Kudos